public class ProposalEvaluator extends Object implements IProposalEvaluator
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.
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
ParticipantProposal[] |
evaluateProposals(Object cfp,
Object cfp_info,
NegotiationRecord[] history,
ParticipantProposal[] proposals)
Evaluate the given proposals and determine winning proposals.
|
public static final String EVALUATION_INACCEPTABLE
public static final String EVALUATION_ACCEPTABLE
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.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.Copyright © 2012. All Rights Reserved.