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 Summary
Fields 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 Summary
Constructors Constructor Description NegotiationRecord(java.lang.Object cfp, java.lang.Object cfp_info, IComponentIdentifier[] participants, long starttime)Create a new negotiation record.
-
Method Summary
All 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
-
cfp
protected java.lang.Object cfp
The cfp sent to the participants.
-
cfp_info
protected java.lang.Object cfp_info
The cfp_info kept locally.
-
proposals
protected ParticipantProposal[] proposals
The participant proposals.
-
starttime
protected long starttime
The start time.
-
endtime
protected long endtime
The end time.
-
-
Constructor Detail
-
NegotiationRecord
public 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
-
getCFP
public java.lang.Object getCFP()
Get the call for proposal (sent to participants).- Returns:
- The call for proposal.
-
setCFP
public void setCFP(java.lang.Object cfp)
Set the call for proposal (sent to participants).- Parameters:
cfp- The call for proposal.
-
getCFPInfo
public java.lang.Object getCFPInfo()
Get the cfp info (i.e. local meta information).- Returns:
- The call for proposal info.
-
setCFPInfo
public void setCFPInfo(java.lang.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 IComponentIdentifier[] getParticipants()
Get all participants.- Returns:
- The participants.
-
getProposal
public ParticipantProposal getProposal(IComponentIdentifier participant)
Get the proposal for the participant.- Parameters:
participant- The participants agent identifier.- Returns:
- The participant proposal.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toStringin classjava.lang.Object- Returns:
- The string representation.
-
-