Package | Description |
---|---|
negotiator.analysis | |
negotiator.events | |
negotiator.exceptions | |
negotiator.gui.progress | |
negotiator.logging | |
negotiator.protocol | |
negotiator.session | |
negotiator.tournament |
Modifier and Type | Method and Description |
---|---|
UtilitySpace[] |
MultilateralAnalysis.getUtilitySpaces(java.util.List<NegotiationPartyInternal> parties) |
Constructor and Description |
---|
MultilateralAnalysis(Session session,
java.util.List<NegotiationPartyInternal> parties,
MultilateralProtocol protocol) |
Constructor and Description |
---|
AgreementEvent(java.lang.Object source,
Session s,
MultilateralProtocol pr,
java.util.List<NegotiationPartyInternal> pa,
double time) |
Modifier and Type | Field and Description |
---|---|
protected NegotiationPartyInternal |
NegotiationPartyTimeoutException.instigator |
Modifier and Type | Method and Description |
---|---|
NegotiationPartyInternal |
NegotiationPartyTimeoutException.getInstigator() |
Constructor and Description |
---|
NegotiationPartyTimeoutException(NegotiationPartyInternal instigator) |
NegotiationPartyTimeoutException(NegotiationPartyInternal instigator,
java.lang.String message) |
NegotiationPartyTimeoutException(NegotiationPartyInternal instigator,
java.lang.String message,
java.lang.Throwable cause) |
NegotiationPartyTimeoutException(NegotiationPartyInternal instigator,
java.lang.Throwable cause) |
Constructor and Description |
---|
MultipartyProgressUI(java.util.ArrayList<java.lang.String> partyInfo,
SessionManager mgr,
java.util.List<NegotiationPartyInternal> parties)
Creates new form ProgressUI2
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
CsvLogger.getDefaultSessionLog(Session session,
MultilateralProtocol protocol,
java.util.List<NegotiationPartyInternal> parties,
double runTime)
Log default session information.
|
static java.util.List<java.lang.Double> |
CsvLogger.getUtils(java.util.List<NegotiationPartyInternal> parties,
Bid agreement) |
void |
SessionLogger.logBid(Session session,
java.util.List<NegotiationPartyInternal> parties,
boolean agree)
Log the sessions most recent action as an offer.
|
static java.lang.String |
CsvLogger.logSingleSession(Session session,
MultilateralProtocol protocol,
java.util.List<NegotiationPartyInternal> parties,
double runTime) |
Modifier and Type | Method and Description |
---|---|
static NegotiationPartyInternal |
MediatorProtocol.getMediator(java.util.List<NegotiationPartyInternal> parties)
Returns the first mediator from a list of parties
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<NegotiationPartyInternal> |
MultilateralProtocolAdapter.exclude(java.util.Collection<NegotiationPartyInternal> negotiationParties,
java.lang.Class negotiationPartyClass)
Filters the list by including only the type of negotiation parties.
|
java.util.Map<NegotiationPartyInternal,java.util.List<NegotiationPartyInternal>> |
StackedAlternatingOffersProtocol.getActionListeners(java.util.List<NegotiationPartyInternal> parties)
Get a map of parties that are listening to each other.
|
java.util.Map<NegotiationPartyInternal,java.util.List<NegotiationPartyInternal>> |
StackedAlternatingOffersProtocol.getActionListeners(java.util.List<NegotiationPartyInternal> parties)
Get a map of parties that are listening to each other.
|
java.util.Map<NegotiationPartyInternal,java.util.List<NegotiationPartyInternal>> |
SimpleMediatorBasedProtocol.getActionListeners(java.util.List<NegotiationPartyInternal> parties)
Get a map of parties that are listening to each other's response
|
java.util.Map<NegotiationPartyInternal,java.util.List<NegotiationPartyInternal>> |
SimpleMediatorBasedProtocol.getActionListeners(java.util.List<NegotiationPartyInternal> parties)
Get a map of parties that are listening to each other's response
|
java.util.Map<NegotiationPartyInternal,java.util.List<NegotiationPartyInternal>> |
MultilateralProtocolAdapter.getActionListeners(java.util.List<NegotiationPartyInternal> parties)
Get a map of parties that are listening to each other's response
|
java.util.Map<NegotiationPartyInternal,java.util.List<NegotiationPartyInternal>> |
MultilateralProtocolAdapter.getActionListeners(java.util.List<NegotiationPartyInternal> parties)
Get a map of parties that are listening to each other's response
|
java.util.Map<NegotiationPartyInternal,java.util.List<NegotiationPartyInternal>> |
MultilateralProtocol.getActionListeners(java.util.List<NegotiationPartyInternal> parties)
Get a map of parties that are listening to each other's response
|
java.util.Map<NegotiationPartyInternal,java.util.List<NegotiationPartyInternal>> |
MultilateralProtocol.getActionListeners(java.util.List<NegotiationPartyInternal> parties)
Get a map of parties that are listening to each other's response
|
java.util.Map<NegotiationPartyInternal,java.util.List<NegotiationPartyInternal>> |
MediatorFeedbackProtocol.getActionListeners(java.util.List<NegotiationPartyInternal> parties)
Get a map of parties that are listening to each other's response
|
java.util.Map<NegotiationPartyInternal,java.util.List<NegotiationPartyInternal>> |
MediatorFeedbackProtocol.getActionListeners(java.util.List<NegotiationPartyInternal> parties)
Get a map of parties that are listening to each other's response
|
java.util.Map<NegotiationPartyInternal,java.util.List<NegotiationPartyInternal>> |
AlternatingOfferConsensusProtocol.getActionListeners(java.util.List<NegotiationPartyInternal> parties)
Get a map of parties that are listening to each other's response
|
java.util.Map<NegotiationPartyInternal,java.util.List<NegotiationPartyInternal>> |
AlternatingOfferConsensusProtocol.getActionListeners(java.util.List<NegotiationPartyInternal> parties)
Get a map of parties that are listening to each other's response
|
static java.util.List<NegotiationPartyInternal> |
MediatorProtocol.getNonMediators(java.util.List<NegotiationPartyInternal> parties)
Get the non-mediator parties.
|
java.util.Collection<NegotiationPartyInternal> |
MultilateralProtocolAdapter.includeOnly(java.util.Collection<NegotiationPartyInternal> negotiationParties,
java.lang.Class negotiationPartyClass)
Filters the list by including only the type of negotiation parties.
|
Modifier and Type | Method and Description |
---|---|
Turn |
AlternatingOfferConsensusProtocol.createTurn(NegotiationPartyInternal party,
java.lang.Class<? extends Action> class1)
factory function.
|
Turn |
AlternatingOfferConsensusProtocol.createTurn(NegotiationPartyInternal votingParty,
java.util.Collection<java.lang.Class<? extends Action>> acceptOrReject)
factory function.
|
Modifier and Type | Method and Description |
---|---|
void |
MultilateralProtocolAdapter.afterSession(Session session,
java.util.List<NegotiationPartyInternal> parties)
This will get called just after ending the session.
|
void |
MultilateralProtocol.afterSession(Session session,
java.util.List<NegotiationPartyInternal> parties)
This will get called just after ending the session.
|
void |
StackedAlternatingOffersProtocol.beforeSession(Session session,
java.util.List<NegotiationPartyInternal> parties) |
void |
MultilateralProtocolAdapter.beforeSession(Session session,
java.util.List<NegotiationPartyInternal> parties)
This will get called just before the session starts.
|
void |
MultilateralProtocol.beforeSession(Session session,
java.util.List<NegotiationPartyInternal> parties)
This will get called just before the session starts.
|
void |
MediatorFeedbackProtocol.beforeSession(Session session,
java.util.List<NegotiationPartyInternal> parties)
Before each session we'd like to inform the mediator of the number of
parties
|
java.util.Collection<NegotiationPartyInternal> |
MultilateralProtocolAdapter.exclude(java.util.Collection<NegotiationPartyInternal> negotiationParties,
java.lang.Class negotiationPartyClass)
Filters the list by including only the type of negotiation parties.
|
java.util.Map<NegotiationPartyInternal,java.util.List<NegotiationPartyInternal>> |
StackedAlternatingOffersProtocol.getActionListeners(java.util.List<NegotiationPartyInternal> parties)
Get a map of parties that are listening to each other.
|
java.util.Map<NegotiationPartyInternal,java.util.List<NegotiationPartyInternal>> |
SimpleMediatorBasedProtocol.getActionListeners(java.util.List<NegotiationPartyInternal> parties)
Get a map of parties that are listening to each other's response
|
java.util.Map<NegotiationPartyInternal,java.util.List<NegotiationPartyInternal>> |
MultilateralProtocolAdapter.getActionListeners(java.util.List<NegotiationPartyInternal> parties)
Get a map of parties that are listening to each other's response
|
java.util.Map<NegotiationPartyInternal,java.util.List<NegotiationPartyInternal>> |
MultilateralProtocol.getActionListeners(java.util.List<NegotiationPartyInternal> parties)
Get a map of parties that are listening to each other's response
|
java.util.Map<NegotiationPartyInternal,java.util.List<NegotiationPartyInternal>> |
MediatorFeedbackProtocol.getActionListeners(java.util.List<NegotiationPartyInternal> parties)
Get a map of parties that are listening to each other's response
|
java.util.Map<NegotiationPartyInternal,java.util.List<NegotiationPartyInternal>> |
AlternatingOfferConsensusProtocol.getActionListeners(java.util.List<NegotiationPartyInternal> parties)
Get a map of parties that are listening to each other's response
|
Bid |
StackedAlternatingOffersProtocol.getCurrentAgreement(Session session,
java.util.List<NegotiationPartyInternal> parties)
Will return the current agreement.
|
Bid |
SimpleMediatorBasedProtocol.getCurrentAgreement(Session session,
java.util.List<NegotiationPartyInternal> parties)
Returns the last offer for voting as the current agreement.
|
Bid |
MultilateralProtocolAdapter.getCurrentAgreement(Session session,
java.util.List<NegotiationPartyInternal> parties)
This method should return the current agreement.
|
Bid |
MultilateralProtocol.getCurrentAgreement(Session session,
java.util.List<NegotiationPartyInternal> parties)
This method should return the current agreement.
|
Bid |
MediatorFeedbackProtocol.getCurrentAgreement(Session session,
java.util.List<NegotiationPartyInternal> parties)
Returns the most recent agreement found by the mediator.
|
Bid |
AlternatingOfferMajorityVotingProtocol.getCurrentAgreement(Session session,
java.util.List<NegotiationPartyInternal> parties)
Gets the most recent agreement.
|
Bid |
AlternatingOfferConsensusProtocol.getCurrentAgreement(Session session,
java.util.List<NegotiationPartyInternal> parties)
Gets the current agreement if any.
|
static NegotiationPartyInternal |
MediatorProtocol.getMediator(java.util.List<NegotiationPartyInternal> parties)
Returns the first mediator from a list of parties
|
static java.util.List<NegotiationPartyInternal> |
MediatorProtocol.getNonMediators(java.util.List<NegotiationPartyInternal> parties)
Get the non-mediator parties.
|
int |
StackedAlternatingOffersProtocol.getNumberOfAgreeingParties(Session session,
java.util.List<NegotiationPartyInternal> parties) |
int |
MultilateralProtocolAdapter.getNumberOfAgreeingParties(Session session,
java.util.List<NegotiationPartyInternal> parties)
Gets the number of parties that currently agree to the offer.
|
int |
MultilateralProtocol.getNumberOfAgreeingParties(Session session,
java.util.List<NegotiationPartyInternal> parties)
Gets the number of parties that currently agree to the offer.
|
int |
AlternatingOfferMajorityVotingProtocol.getNumberOfAgreeingParties(Session session,
java.util.List<NegotiationPartyInternal> parties)
Gets the number of parties that currently agree to the offer.
|
int |
AlternatingOfferConsensusProtocol.getNumberOfAgreeingParties(Session session,
java.util.List<NegotiationPartyInternal> parties)
Gets the maximum number of vote this protocol found.
|
Round |
StackedAlternatingOffersProtocol.getRoundStructure(java.util.List<NegotiationPartyInternal> parties,
Session session)
Defines the round structure.
|
Round |
SimpleMediatorBasedProtocol.getRoundStructure(java.util.List<NegotiationPartyInternal> parties,
Session session)
Get the structure of the current round.
|
Round |
MultilateralProtocolAdapter.getRoundStructure(java.util.List<NegotiationPartyInternal> parties,
Session session)
Get the structure of the current round.
|
Round |
MultilateralProtocol.getRoundStructure(java.util.List<NegotiationPartyInternal> parties,
Session session)
Get the structure of the current round.
|
Round |
MediatorFeedbackProtocol.getRoundStructure(java.util.List<NegotiationPartyInternal> parties,
Session session)
Get the structure of the current round.
|
Round |
AlternatingOfferMajorityVotingProtocol.getRoundStructure(java.util.List<NegotiationPartyInternal> parties,
Session session)
Get the structure of the current round.
|
Round |
AlternatingOfferConsensusProtocol.getRoundStructure(java.util.List<NegotiationPartyInternal> parties,
Session session)
Get the round structure used by this algorithm.
|
java.util.Collection<NegotiationPartyInternal> |
MultilateralProtocolAdapter.includeOnly(java.util.Collection<NegotiationPartyInternal> negotiationParties,
java.lang.Class negotiationPartyClass)
Filters the list by including only the type of negotiation parties.
|
boolean |
StackedAlternatingOffersProtocol.isFinished(Session session,
java.util.List<NegotiationPartyInternal> parties)
If all agents accept the most recent offer, then this negotiation ends.
|
boolean |
MultilateralProtocolAdapter.isFinished(Session session,
java.util.List<NegotiationPartyInternal> parties)
Check if the protocol is done or still busy.
|
boolean |
MultilateralProtocol.isFinished(Session session,
java.util.List<NegotiationPartyInternal> parties)
Check if the protocol is done or still busy.
|
boolean |
MediatorFeedbackProtocol.isFinished(Session session,
java.util.List<NegotiationPartyInternal> parties)
Check if the protocol is done or still busy.
|
boolean |
AlternatingOfferMajorityVotingProtocol.isFinished(Session session,
java.util.List<NegotiationPartyInternal> parties)
Check if the protocol is done or still busy.
|
boolean |
AlternatingOfferConsensusProtocol.isFinished(Session session,
java.util.List<NegotiationPartyInternal> parties)
Check if the protocol is done or still busy.
|
Modifier and Type | Method and Description |
---|---|
NegotiationPartyInternal |
InvalidActionError.getInstigator()
Gets the party that did an invalid action
|
NegotiationPartyInternal |
Turn.getParty()
Get the party which should execute this turn
|
Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
TournamentManager.runSingleSession(java.util.List<NegotiationPartyInternal> parties,
ExecutorWithTimeout executor)
Run a single session for the given parties (protocol and session are also
used, but extracted from the tournament manager's configuration
|
Constructor and Description |
---|
InvalidActionError(NegotiationPartyInternal instigator)
Initializes a new instance of the
InvalidActionError class. |
Turn(NegotiationPartyInternal party)
Initializes a new instance of the turn class.
|
Turn(NegotiationPartyInternal party,
java.lang.Class<? extends Action>... validActions)
Initializes a new instance of the turn class.
|
Turn(NegotiationPartyInternal party,
java.util.Collection<java.lang.Class<? extends Action>> validActions)
Initializes a new instance of the turn class.
|
Constructor and Description |
---|
SessionManager(java.util.List<NegotiationPartyInternal> parties,
MultilateralProtocol protocol,
Session session,
ExecutorWithTimeout exec)
Initializes a new instance of the
SessionManager object. |
Modifier and Type | Method and Description |
---|---|
static NegotiationPartyInternal |
TournamentGenerator.createFrom(PartyRepItem partyRepItem,
Domain domain,
UTILITYSPACETYPE type,
Session session)
Creates a new Party from repository items
|
protected static NegotiationPartyInternal |
TournamentGenerator.generateMediator(PartyRepItem mediatorRepItem,
ProfileRepItem mediatorProfileRepItem,
ProfileRepItem alternativeProfileRepItem,
Session session)
Generates a mediator Party from the given information
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<NegotiationPartyInternal> |
TournamentGenerator.generateSessionParties(java.util.List<java.lang.Integer> partyIndices,
java.util.List<PartyRepItem> partyRepItems,
java.util.List<ProfileRepItem> profileRepItems,
java.util.List<AgentID> partyIds,
int mediatorIndex,
PartyRepItem mediatorRepItem,
ProfileRepItem mediatorProfileRepItem,
Session session)
Generate the list of parties in the given session
|
static java.util.List<NegotiationPartyInternal> |
TournamentGenerator.generateSessionParties(java.util.List<PartyRepItem> partyRepItems,
java.util.List<ProfileRepItem> profileRepItems,
java.util.List<AgentID> partyIds,
int mediatorIndex,
PartyRepItem mediatorRepItem,
ProfileRepItem mediatorProfileRepItem,
Session session)
Generate the list of parties in the given session
|
java.util.List<NegotiationPartyInternal> |
TournamentGenerator.next()
returns next list of negotiating parties for the next session.
|