Package jadex.bdi.planlib.protocols
Class NegotiationRecord
- java.lang.Object
- 
- jadex.bdi.planlib.protocols.NegotiationRecord
 
- 
 public class NegotiationRecord extends java.lang.ObjectThe negotiation record has the purpose to store all information about one negotiation round e.g. in an iterated contract net or auction protocol.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.ObjectcfpThe cfp sent to the participants.protected java.lang.Objectcfp_infoThe cfp_info kept locally.protected longendtimeThe end time.protected ParticipantProposal[]proposalsThe participant proposals.protected longstarttimeThe start time.
 - 
Constructor SummaryConstructors Constructor Description NegotiationRecord(java.lang.Object cfp, java.lang.Object cfp_info, IComponentIdentifier[] participants, long starttime)Create a new negotiation record.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetCFP()Get the call for proposal (sent to participants).java.lang.ObjectgetCFPInfo()Get the cfp info (i.e.longgetEndtime()Get the end time.IComponentIdentifier[]getParticipants()Get all participants.ParticipantProposalgetProposal(IComponentIdentifier participant)Get the proposal for the participant.ParticipantProposal[]getProposals()Get the participant proposals.longgetStarttime()Get the start time.voidsetCFP(java.lang.Object cfp)Set the call for proposal (sent to participants).voidsetCFPInfo(java.lang.Object cfp_info)Set the cfp info (i.e.voidsetEndtime(long endtime)Set the end time.voidsetStarttime(long starttime)Set the start time.java.lang.StringtoString()Get the string representation.
 
- 
- 
- 
Field Detail- 
cfpprotected java.lang.Object cfp The cfp sent to the participants.
 - 
cfp_infoprotected java.lang.Object cfp_info The cfp_info kept locally.
 - 
proposalsprotected ParticipantProposal[] proposals The participant proposals.
 - 
starttimeprotected long starttime The start time.
 - 
endtimeprotected long endtime The end time.
 
- 
 - 
Constructor Detail- 
NegotiationRecordpublic NegotiationRecord(java.lang.Object cfp, java.lang.Object cfp_info, IComponentIdentifier[] participants, long starttime)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- 
getCFPpublic java.lang.Object getCFP() Get the call for proposal (sent to participants).- Returns:
- The call for proposal.
 
 - 
setCFPpublic void setCFP(java.lang.Object cfp) Set the call for proposal (sent to participants).- Parameters:
- cfp- The call for proposal.
 
 - 
getCFPInfopublic java.lang.Object getCFPInfo() Get the cfp info (i.e. local meta information).- Returns:
- The call for proposal info.
 
 - 
setCFPInfopublic void setCFPInfo(java.lang.Object cfp_info) Set the cfp info (i.e. local meta information).- Parameters:
- cfp_info- The cfp_info to set.
 
 - 
getStarttimepublic long getStarttime() Get the start time.- Returns:
- The starttime.
 
 - 
setStarttimepublic void setStarttime(long starttime) Set the start time.- Parameters:
- starttime- The start time to set.
 
 - 
getEndtimepublic long getEndtime() Get the end time.- Returns:
- The endtime.
 
 - 
setEndtimepublic void setEndtime(long endtime) Set the end time.- Parameters:
- endtime- The end time to set.
 
 - 
getProposalspublic ParticipantProposal[] getProposals() Get the participant proposals.
 - 
getParticipantspublic IComponentIdentifier[] getParticipants() Get all participants.- Returns:
- The participants.
 
 - 
getProposalpublic ParticipantProposal getProposal(IComponentIdentifier participant) Get the proposal for the participant.- Parameters:
- participant- The participants agent identifier.
- Returns:
- The participant proposal.
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- The string representation.
 
 
- 
 
-