public class Group15 extends AbstractNegotiationParty
deadlines, rand, timeline, utilitySpace
Constructor and Description |
---|
Group15() |
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() |
Action |
getFirstBid() |
java.util.List<BidDetails> |
getPossibleBids() |
java.lang.Class<? extends MultilateralProtocolAdapter> |
getProtocol()
Get the protocol that this party supports.
|
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 |
lowerMinUtility()
Lowers the minimum utility that we want to offer by a constant
|
double |
measureAverageRoundTime() |
void |
receiveMessage(AgentID sender,
Action action)
This method is called when another
NegotiationParty chose an
Action . |
generateRandomBid, getNumberOfParties, getPartyId, getRandomValue, getTimeLine, getUtility, getUtilitySpace, getUtilityWithDiscount, toString
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
- : Either a list containing both accept and offer or only
offer.public void lowerMinUtility()
public Action getFirstBid() throws java.lang.Exception
java.lang.Exception
public java.util.List<BidDetails> getPossibleBids()
public double measureAverageRoundTime()
public void receiveMessage(AgentID sender, Action action)
NegotiationParty
NegotiationParty
chose an
Action
.receiveMessage
in interface NegotiationParty
receiveMessage
in class AbstractNegotiationParty
sender
- The party that did the action.action
- The action that party did.public java.lang.String getDescription()
getDescription
in interface NegotiationParty
getDescription
in class AbstractNegotiationParty
public java.lang.Class<? extends MultilateralProtocolAdapter> getProtocol()
NegotiationParty
getProtocol
in interface NegotiationParty
getProtocol
in class AbstractNegotiationParty
MultilateralProtocol
, usually
StackedAlternatingOffersProtocol
.