public class NegotiationRecord
extends java.lang.Object
Modifier and Type | Field and 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 and Description |
---|
NegotiationRecord(java.lang.Object cfp,
java.lang.Object cfp_info,
IComponentIdentifier[] participants,
long starttime)
Create a new negotiation record.
|
Modifier and Type | Method and 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.
|
protected java.lang.Object cfp
protected java.lang.Object cfp_info
protected ParticipantProposal[] proposals
protected long starttime
protected long endtime
public NegotiationRecord(java.lang.Object cfp, java.lang.Object cfp_info, IComponentIdentifier[] participants, long starttime)
cfp
- The call for proposal object.cfp_info
- The cfp info (local meta information).participants
- The participants agent identifiers.public java.lang.Object getCFP()
public void setCFP(java.lang.Object cfp)
cfp
- The call for proposal.public java.lang.Object getCFPInfo()
public void setCFPInfo(java.lang.Object cfp_info)
cfp_info
- The cfp_info to set.public long getStarttime()
public void setStarttime(long starttime)
starttime
- The start time to set.public long getEndtime()
public void setEndtime(long endtime)
endtime
- The end time to set.public ParticipantProposal[] getProposals()
public IComponentIdentifier[] getParticipants()
public ParticipantProposal getProposal(IComponentIdentifier participant)
participant
- The participants agent identifier.public java.lang.String toString()
toString
in class java.lang.Object