Package jadex.bdi.planlib.protocols
Class NegotiationRecord
- java.lang.Object
-
- jadex.bdi.planlib.protocols.NegotiationRecord
-
public class NegotiationRecord extends java.lang.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.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Object
cfp
The cfp sent to the participants.protected java.lang.Object
cfp_info
The cfp_info kept locally.protected long
endtime
The end time.protected ParticipantProposal[]
proposals
The participant proposals.protected long
starttime
The 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.Object
getCFP()
Get the call for proposal (sent to participants).java.lang.Object
getCFPInfo()
Get the cfp info (i.e.long
getEndtime()
Get the end time.IComponentIdentifier[]
getParticipants()
Get all participants.ParticipantProposal
getProposal(IComponentIdentifier participant)
Get the proposal for the participant.ParticipantProposal[]
getProposals()
Get the participant proposals.long
getStarttime()
Get the start time.void
setCFP(java.lang.Object cfp)
Set the call for proposal (sent to participants).void
setCFPInfo(java.lang.Object cfp_info)
Set the cfp info (i.e.void
setEndtime(long endtime)
Set the end time.void
setStarttime(long starttime)
Set the start time.java.lang.String
toString()
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:
toString
in classjava.lang.Object
- Returns:
- The string representation.
-
-