public class NegotiationEndingParty extends AbstractNegotiationParty
deadlines, rand, timeline, utilitySpace
Constructor and Description |
---|
NegotiationEndingParty() |
Modifier and Type | Method and Description |
---|---|
Action |
chooseAction(java.util.List<java.lang.Class<? extends Action>> possibleActions)
If offer was proposed: Accept offer, otherwise: Propose random offer
|
void |
init(UtilitySpace utilitySpace,
Deadline deadlines,
TimeLineInfo timeline,
long randomSeed,
AgentID id)
Initializes a new instance of the
NegotiationEndingParty class. |
void |
receiveMessage(AgentID sender,
Action arguments)
We ignore any messages received.
|
generateRandomBid, getDescription, getNumberOfParties, getPartyId, getProtocol, getRandomValue, getTimeLine, getUtility, getUtilitySpace, getUtilityWithDiscount, toString
public void init(UtilitySpace utilitySpace, Deadline deadlines, TimeLineInfo timeline, long randomSeed, AgentID id)
NegotiationEndingParty
class.init
in interface NegotiationParty
init
in class AbstractNegotiationParty
utilitySpace
- The utility space used by this classdeadlines
- The deadlines for this sessiontimeline
- The time line (if time deadline) for this session, can be nullrandomSeed
- The seed that should be used for all randomization (to be
reproducible)id
- the AgentID
.public Action chooseAction(java.util.List<java.lang.Class<? extends Action>> possibleActions)
possibleActions
- List of all actions possible.public void receiveMessage(AgentID sender, Action arguments)
receiveMessage
in interface NegotiationParty
receiveMessage
in class AbstractNegotiationParty
sender
- The initiator of the actionarguments
- The action performed