public abstract class AbstractTimeDependentNegotiationParty extends AbstractNegotiationParty
deadlines, rand, timeline, utilitySpace
Constructor and Description |
---|
AbstractTimeDependentNegotiationParty() |
Modifier and Type | Method and Description |
---|---|
Action |
chooseAction(java.util.List<java.lang.Class<? extends Action>> possibleActions)
When this class is called, it is expected that the Party chooses one of
the actions from the possible action list and returns an instance of the
chosen action.
|
double |
f(double t)
From [1]:
A wide range of time dependent functions can be defined by varying the
way in which f(t) is computed.
|
abstract double |
getE()
Depending on the value of e, extreme sets show clearly different patterns
of behaviour [1]:
1.
|
protected Bid |
getNextBid()
Get the next bid we should do
|
double |
getTargetUtility()
Gets the target utility for the next bid
|
void |
init(UtilitySpace utilSpace,
Deadline deadline,
TimeLineInfo timeline,
long randomSeed,
AgentID id)
This is the first call made to a NegotiationParty after its
instantiation.
|
void |
receiveMessage(AgentID sender,
Action arguments)
This method is called when an observable action is performed.
|
generateRandomBid, getDescription, getNumberOfParties, getPartyId, getProtocol, getRandomValue, getTimeLine, getUtility, getUtilitySpace, getUtilityWithDiscount, toString
public AbstractTimeDependentNegotiationParty()
public void init(UtilitySpace utilSpace, Deadline deadline, TimeLineInfo timeline, long randomSeed, AgentID id)
NegotiationParty
init
in interface NegotiationParty
init
in class AbstractNegotiationParty
utilSpace
- (a copy of/readonly version of) the UtilitySpace
to be
used for this session.timeline
- The TimeLineInfo
about current session.id
- the AgentID
.public Action chooseAction(java.util.List<java.lang.Class<? extends Action>> possibleActions)
NegotiationParty
is in the
MultilateralProtocol.getRoundStructure(java.util.List, negotiator.session.Session)
.possibleActions
- List of all actions possible.protected Bid getNextBid()
public void receiveMessage(AgentID sender, Action arguments)
MultilateralProtocol.getActionListeners(java.util.List)
receiveMessage
in interface NegotiationParty
receiveMessage
in class AbstractNegotiationParty
sender
- The initiator of the actionarguments
- The action performedpublic double getTargetUtility()
public double f(double t)
public abstract double getE()