public class ICNPHandler extends java.lang.Object implements IProposalEvaluator, IQueryNextroundInfo
IQueryNextroundInfo.NextroundInfo
Modifier and Type | Field and Description |
---|---|
protected IProposalEvaluator |
proposal_evaluator
The proposal evaluator.
|
protected IQueryNextroundInfo |
query_nextround_info
The query nextround info.
|
Constructor and Description |
---|
ICNPHandler(IProposalEvaluator proposal_evaluator,
IQueryNextroundInfo query_nextround_info)
Create an ICNPHandler using the given implementations.
|
Modifier and Type | Method and Description |
---|---|
ParticipantProposal[] |
evaluateProposals(java.lang.Object cfp,
java.lang.Object cfp_info,
NegotiationRecord[] history,
ParticipantProposal[] proposals)
Evaluate the given proposals and determine winning proposals.
|
boolean |
queryNextroundInfo(IQueryNextroundInfo.NextroundInfo info,
NegotiationRecord[] history,
ParticipantProposal[] proposals)
Collect information for next negotiation round.
|
protected IProposalEvaluator proposal_evaluator
protected IQueryNextroundInfo query_nextround_info
public ICNPHandler(IProposalEvaluator proposal_evaluator, IQueryNextroundInfo query_nextround_info)
proposal_evaluator
- The proposal evaluator.query_nextround_info
- The query nextround info.public ParticipantProposal[] evaluateProposals(java.lang.Object cfp, java.lang.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.public boolean queryNextroundInfo(IQueryNextroundInfo.NextroundInfo info, NegotiationRecord[] history, ParticipantProposal[] proposals)
queryNextroundInfo
in interface IQueryNextroundInfo
info
- The nextround info object, which might be altered.history
- The history of negotiation rounds.proposals
- The received proposals.