|
Jadex 0.96 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjadex.planlib.ProposalEvaluator
public class ProposalEvaluator
A default implementation of the proposal evaluator interface. The implementation determines acceptable proposals by comparing proposals or evaluations to a given limit value.
The evaluation process implemented in the evaluateProposals() method is distributed across three methods, which can be separately overwritten if needed, while reusing functionality of the other methods.
Field Summary | |
---|---|
static String |
EVALUATION_ACCEPTABLE
Evaluation value indicating an acceptable proposal that should be considered in further negotiation rounds. |
static String |
EVALUATION_INACCEPTABLE
Evaluation value indicating an inacceptable proposal that should be excluded. |
Constructor Summary | |
---|---|
ProposalEvaluator(Comparator evaluation_comparator,
Object evaluation_limit,
boolean ascending)
Create a default proposal evaluator with a given limit value. |
|
ProposalEvaluator(Object evaluation_limit,
boolean ascending)
Create a default proposal evaluator with a given limit value. |
Method Summary | |
---|---|
ParticipantProposal[] |
evaluateProposals(Object cfp,
Object cfp_info,
NegotiationRecord[] history,
ParticipantProposal[] proposals)
Evaluate the given proposals and determine winning proposals. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String EVALUATION_INACCEPTABLE
public static final String EVALUATION_ACCEPTABLE
Constructor Detail |
---|
public ProposalEvaluator(Object evaluation_limit, boolean ascending)
evaluation_limit
- The limit specifying which proposals are acceptable.ascending
- Sort order, which specifies that all evaluations below or equal (true)
or above or equal (false) to the limit are acceptable.public ProposalEvaluator(Comparator evaluation_comparator, Object evaluation_limit, boolean ascending)
evaluation_comparator
- A comparator used to compare proposal evaluations.evaluation_limit
- The limit specifying which proposals are acceptable.ascending
- Sort order, which specifies that all evaluations below or equal (true)
or above or equal (false) to the limit are acceptable.Method Detail |
---|
public ParticipantProposal[] evaluateProposals(Object cfp, Object cfp_info, NegotiationRecord[] history, ParticipantProposal[] proposals)
evaluateProposals
in interface IProposalEvaluator
cfp
- The original call-for-proposal object.cfp_info
- Local meta information associated to the interaction.history
- The history of negotiation rounds.proposals
- The received proposals.
|
Jadex 0.96 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.