Class 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 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.
      • 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.
      • 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 class java.lang.Object
        Returns:
        The string representation.