Jadex 0.96

jadex.planlib
Class NegotiationRecord

java.lang.Object
  extended by jadex.planlib.NegotiationRecord

public class NegotiationRecord
extends Object

The negotiation record has the purpose to store all information about one negotiation round e.g. in an iterated contract net or auction protocol.


Constructor Summary
NegotiationRecord(Object cfp, Object cfp_info, AgentIdentifier[] participants)
          Create a new negotiation record.
 
Method Summary
 Object getCFP()
          Get the call for proposal (sent to participants).
 Object getCFPInfo()
          Get the cfp info (i.e. local meta information).
 long getEndtime()
          Get the end time.
 AgentIdentifier[] getParticipants()
          Get all participants.
 ParticipantProposal getProposal(AgentIdentifier participant)
          Get the proposal for the participant.
 ParticipantProposal[] getProposals()
          Get the participant proposals.
 long getStarttime()
          Get the start time.
 void setCFP(Object cfp)
          Set the call for proposal (sent to participants).
 void setCFPInfo(Object cfp_info)
          Set the cfp info (i.e. local meta information).
 void setEndtime(long endtime)
          Set the end time.
 void setStarttime(long starttime)
          Set the start time.
 String toString()
          Get the string representation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NegotiationRecord

public NegotiationRecord(Object cfp,
                         Object cfp_info,
                         AgentIdentifier[] participants)
Create a new negotiation record.

Parameters:
cfp - The call for proposal object.
cfp_info - The cfp info (local meta information).
participants - The participants agent identifiers.
Method Detail

getCFP

public Object getCFP()
Get the call for proposal (sent to participants).

Returns:
The call for proposal.

setCFP

public void setCFP(Object cfp)
Set the call for proposal (sent to participants).

Parameters:
cfp - The call for proposal.

getCFPInfo

public Object getCFPInfo()
Get the cfp info (i.e. local meta information).

Returns:
The call for proposal info.

setCFPInfo

public void setCFPInfo(Object cfp_info)
Set the cfp info (i.e. local meta information).

Parameters:
cfp_info - The cfp_info to set.

getStarttime

public long getStarttime()
Get the start time.

Returns:
The starttime.

setStarttime

public void setStarttime(long starttime)
Set the start time.

Parameters:
starttime - The start time to set.

getEndtime

public long getEndtime()
Get the end time.

Returns:
The endtime.

setEndtime

public void setEndtime(long endtime)
Set the end time.

Parameters:
endtime - The end time to set.

getProposals

public ParticipantProposal[] getProposals()
Get the participant proposals.


getParticipants

public AgentIdentifier[] getParticipants()
Get all participants.

Returns:
The participants.

getProposal

public ParticipantProposal getProposal(AgentIdentifier participant)
Get the proposal for the participant.

Parameters:
participant - The participants agent identifier.
Returns:
The participant proposal.

toString

public String toString()
Get the string representation.

Overrides:
toString in class Object
Returns:
The string representation.

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.