Jadex 0.96

jadex.planlib
Class ICNPHandler

java.lang.Object
  extended by jadex.planlib.ICNPHandler
All Implemented Interfaces:
IProposalEvaluator, IQueryNextroundInfo

public class ICNPHandler
extends Object
implements IProposalEvaluator, IQueryNextroundInfo

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.planlib.IQueryNextroundInfo
IQueryNextroundInfo.NextroundInfo
 
Constructor Summary
ICNPHandler(IProposalEvaluator proposal_evaluator, IQueryNextroundInfo query_nextround_info)
          Create an ICNPHandler using the given implementations.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ICNPHandler

public ICNPHandler(IProposalEvaluator proposal_evaluator,
                   IQueryNextroundInfo query_nextround_info)
Create an ICNPHandler using the given implementations.

Parameters:
proposal_evaluator - The proposal evaluator.
query_nextround_info - The query nextround info.
Method Detail

evaluateProposals

public ParticipantProposal[] evaluateProposals(Object cfp,
                                               Object cfp_info,
                                               NegotiationRecord[] history,
                                               ParticipantProposal[] proposals)
Evaluate the given proposals and determine winning proposals.

Specified by:
evaluateProposals in interface IProposalEvaluator
Parameters:
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.
Returns:
The acceptable proposals, sorted by preference (best proposal first).

queryNextroundInfo

public boolean queryNextroundInfo(IQueryNextroundInfo.NextroundInfo info,
                                  NegotiationRecord[] history,
                                  ParticipantProposal[] proposals)
Collect information for next negotiation round.

Specified by:
queryNextroundInfo in interface IQueryNextroundInfo
Parameters:
info - The nextround info object, which might be altered.
history - The history of negotiation rounds.
proposals - The received proposals.
Returns:
True, if another negotiation round should be performed.

Jadex 0.96

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.