|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.bdi.planlib.protocols.ICNPHandler
public class ICNPHandler
A helper class that handles a receiver side goals of the iterated contract net protocol by delegating to some implementation of the corresponding interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jadex.bdi.planlib.protocols.IQueryNextroundInfo |
|---|
IQueryNextroundInfo.NextroundInfo |
| Field Summary | |
|---|---|
protected IProposalEvaluator |
proposal_evaluator
The proposal evaluator. |
protected IQueryNextroundInfo |
query_nextround_info
The query nextround info. |
| Constructor Summary | |
|---|---|
ICNPHandler(IProposalEvaluator proposal_evaluator,
IQueryNextroundInfo query_nextround_info)
Create an ICNPHandler using the given implementations. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IProposalEvaluator proposal_evaluator
protected IQueryNextroundInfo query_nextround_info
| Constructor Detail |
|---|
public ICNPHandler(IProposalEvaluator proposal_evaluator,
IQueryNextroundInfo query_nextround_info)
proposal_evaluator - The proposal evaluator.query_nextround_info - The query nextround info.| Method Detail |
|---|
public ParticipantProposal[] evaluateProposals(java.lang.Object cfp,
java.lang.Object cfp_info,
NegotiationRecord[] history,
ParticipantProposal[] proposals)
evaluateProposals in interface IProposalEvaluatorcfp - 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 IQueryNextroundInfoinfo - The nextround info object, which might be altered.history - The history of negotiation rounds.proposals - The received proposals.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||