public class Group3 extends AbstractNegotiationParty
deadlines, rand, timeline, utilitySpace
Constructor and Description |
---|
Group3() |
Modifier and Type | Method and Description |
---|---|
Action |
chooseAction(java.util.List<java.lang.Class<? extends Action>> validActions)
When this function 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.
|
java.lang.String |
getDescription() |
double |
getMaxValue(java.util.List<java.lang.Double> values) |
void |
init(AbstractUtilitySpace utilSpace,
Deadline deadline,
TimeLineInfo timeline,
long randomSeed,
AgentID agentID)
This is the first call made to a NegotiationParty after its
instantiation.
|
void |
receiveMessage(java.lang.Object sender,
Action action) |
generateRandomBid, getNumberOfParties, getPartyId, getProtocol, getRandomValue, getTimeLine, getUtility, getUtilitySpace, getUtilityWithDiscount, receiveMessage, toString
public void receiveMessage(java.lang.Object sender, Action action)
public java.lang.String getDescription()
getDescription
in interface NegotiationParty
getDescription
in class AbstractNegotiationParty
public void init(AbstractUtilitySpace utilSpace, Deadline deadline, TimeLineInfo timeline, long randomSeed, AgentID agentID)
NegotiationParty
init
in interface NegotiationParty
init
in class AbstractNegotiationParty
utilSpace
- (a copy of/readonly version of) the
AbstractUtilitySpace
to be used for this session.timeline
- The TimeLineInfo
about current session.agentID
- the AgentID
.public Action chooseAction(java.util.List<java.lang.Class<? extends Action>> validActions)
NegotiationParty
validActions
- List of all actions possible.Action
.public double getMaxValue(java.util.List<java.lang.Double> values)