public class ICNPHandler extends Object implements IProposalEvaluator, IQueryNextroundInfo
IQueryNextroundInfo.NextroundInfo
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(Object cfp,
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.
|
public ICNPHandler(IProposalEvaluator proposal_evaluator, IQueryNextroundInfo query_nextround_info)
proposal_evaluator
- The proposal evaluator.query_nextround_info
- The query nextround info.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.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.Copyright © 2013. All Rights Reserved.