public class NegotiationPartyInternal
extends java.lang.Object
Constructor and Description |
---|
NegotiationPartyInternal(PartyRepItem partyRepItem,
ProfileRepItem profileRepItem,
Session session,
AgentID agentID)
Creates a new
NegotiationParty from repository items and
initializes it. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
AgentID |
getID() |
NegotiationParty |
getParty() |
Session |
getSession()
Get the session that this party is using.
|
Timeline |
getTimeLine()
Gets the timeline for this agent.
|
double |
getUtility(Bid bid)
Gets the (undiscounted) utility for the given bid.
|
UtilitySpace |
getUtilitySpace()
Gets the agent's utility space.
|
double |
getUtilityWithDiscount(Bid bid)
Gets the agents utility for a given bid, taking into account a discount
factor if present.
|
int |
hashCode() |
boolean |
isMediator() |
java.lang.String |
toString() |
public NegotiationPartyInternal(PartyRepItem partyRepItem, ProfileRepItem profileRepItem, Session session, AgentID agentID) throws RepositoryException, NegotiatorException
NegotiationParty
from repository items and
initializes it.partyRepItem
- the party referenceprofileRepItem
- the profile to use for this partysession
- the session in which this runsagentID
- the unique agentId to use, or null. If null, a unique ID will
be generated. For all default implementations, this has either
the format "ClassName" if only one such an agent exists (in
case of mediator for example [mediator always has the name
"mediator"]), "Party N" or it has the format "ClassName@N"
with N a unique integer if multiple agents of the same type
can exists.RepositoryException
NegotiatorException
public NegotiationParty getParty()
public double getUtility(Bid bid)
bid
- The bid to get the utility forpublic double getUtilityWithDiscount(Bid bid)
bid
- The bid to check.public UtilitySpace getUtilitySpace()
public Timeline getTimeLine()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean isMediator()
Mediator
.public AgentID getID()