public class NegotiationPartyInternal
extends java.lang.Object
Constructor and Description |
---|
NegotiationPartyInternal(PartyRepItem partyRepItem,
ProfileRepItem profileRepItem,
Session session,
AgentID agentID)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
AgentID |
getAgentId()
Gets the party id for this party.
|
NegotiationParty |
getParty()
Get the agent implementation.
|
AgentID |
getPartyId()
Gets the agent's unique id
Each agent should contain a (unique) id.
|
Session |
getSession()
Get the session that this party is using.
|
Timeline |
getTimeLine()
Gets the timeline for this agent.
|
double |
getUtility(Bid bid)
Gets the 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.
|
java.lang.String |
toString() |
public NegotiationPartyInternal(PartyRepItem partyRepItem, ProfileRepItem profileRepItem, Session session, AgentID agentID) throws RepositoryException, NegotiatorException
partyRepItem
- profileRepItem
- session
- agentID
- the agentId to use, or null if auto ID is ok. 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"]) or it has the
format "ClassName@HashCode" if multiple agents of the same
type can exists. You could also use the random hash used in
the agent to identify it (making it easier to reproduce
results).RepositoryException
NegotiatorException
public AgentID getAgentId()
public NegotiationParty getParty()
public double getUtility(Bid bid)
bid
- The bid to get the utility forpublic double getUtilityWithDiscount(Bid bid)
bid
- The bid to get the utility ofpublic UtilitySpace getUtilitySpace()
public Timeline getTimeLine()
public AgentID getPartyId()
public java.lang.String toString()
toString
in class java.lang.Object