Package | Description |
---|---|
negotiator.analysis | |
negotiator.events | |
negotiator.logging | |
negotiator.parties | |
negotiator.protocol | |
negotiator.session | |
negotiator.tournament |
Constructor and Description |
---|
MultilateralAnalysis(Session session,
java.util.List<NegotiationPartyInternal> parties,
MultilateralProtocol protocol) |
Modifier and Type | Method and Description |
---|---|
Session |
MultipartySessionEndedEvent.getSession() |
Constructor and Description |
---|
AgreementEvent(java.lang.Object source,
Session s,
MultilateralProtocol pr,
java.util.List<NegotiationPartyInternal> pa,
double time) |
MultipartySessionEndedEvent(java.lang.Object source,
Session session,
Bid agreement,
java.util.List<NegotiationPartyInternal> parties) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
CsvLogger.getDefaultSessionLog(Session session,
MultilateralProtocol protocol,
java.util.List<NegotiationPartyInternal> partiesint,
double runTime)
Log default session information.
|
static java.lang.String |
CsvLogger.logSingleSession(Session session,
MultilateralProtocol protocol,
java.util.List<NegotiationPartyInternal> partiesint,
double runTime) |
Modifier and Type | Method and Description |
---|---|
Session |
NegotiationPartyInternal.getSession()
Get the session that this party is using.
|
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 |
---|---|
void |
MultilateralProtocol.afterSession(Session session,
java.util.List<NegotiationParty> parties)
This will get called just after ending the session.
|
void |
DefaultMultilateralProtocol.afterSession(Session session,
java.util.List<NegotiationParty> parties)
This will get called just after ending the session.
|
void |
MultilateralProtocol.applyAction(Action action,
Session session)
Apply the action according to the protocol.
|
void |
DefaultMultilateralProtocol.applyAction(Action action,
Session session)
Apply the action according to the protocol.
|
java.util.Map<NegotiationParty,java.util.List<Action>> |
StackedAlternatingOffersProtocol.beforeSession(Session session,
java.util.List<NegotiationParty> parties) |
java.util.Map<NegotiationParty,java.util.List<Action>> |
MultilateralProtocol.beforeSession(Session session,
java.util.List<NegotiationParty> parties)
Returns a list of Actions to be sent to
NegotiationParty.receiveMessage(AgentID, Action) . |
java.util.Map<NegotiationParty,java.util.List<Action>> |
DefaultMultilateralProtocol.beforeSession(Session session,
java.util.List<NegotiationParty> parties)
This will get called just before the session starts.
|
Bid |
StackedAlternatingOffersProtocol.getCurrentAgreement(Session session,
java.util.List<NegotiationParty> parties)
Will return the current agreement.
|
Bid |
SimpleMediatorBasedProtocol.getCurrentAgreement(Session session,
java.util.List<NegotiationParty> parties)
Returns the last offer for voting as the current agreement.
|
Bid |
MultilateralProtocol.getCurrentAgreement(Session session,
java.util.List<NegotiationParty> parties)
This method should return the current agreement.
|
Bid |
MediatorFeedbackBasedProtocol.getCurrentAgreement(Session session,
java.util.List<NegotiationParty> parties)
Returns the last offer that got accepted.
|
Bid |
DefaultMultilateralProtocol.getCurrentAgreement(Session session,
java.util.List<NegotiationParty> parties)
This method should return the current agreement.
|
Bid |
AlternatingMultipleOffersProtocol.getCurrentAgreement(Session session,
java.util.List<NegotiationParty> parties)
Gets the current agreement if any.
|
int |
StackedAlternatingOffersProtocol.getNumberOfAgreeingParties(Session session,
java.util.List<NegotiationParty> parties) |
int |
MultilateralProtocol.getNumberOfAgreeingParties(Session session,
java.util.List<NegotiationParty> parties)
Gets the number of parties that currently agree to the offer.
|
int |
DefaultMultilateralProtocol.getNumberOfAgreeingParties(Session session,
java.util.List<NegotiationParty> parties)
Gets the number of parties that currently agree to the offer.
|
int |
AlternatingMultipleOffersProtocol.getNumberOfAgreeingParties(Session session,
java.util.List<NegotiationParty> parties)
Gets the maximum number of vote this protocol found.
|
Round |
StackedAlternatingOffersProtocol.getRoundStructure(java.util.List<NegotiationParty> parties,
Session session)
Defines the round structure.
|
Round |
SimpleMediatorBasedProtocol.getRoundStructure(java.util.List<NegotiationParty> parties,
Session session) |
Round |
MultilateralProtocol.getRoundStructure(java.util.List<NegotiationParty> parties,
Session session)
Get the structure of the current round.
|
Round |
MediatorFeedbackBasedProtocol.getRoundStructure(java.util.List<NegotiationParty> parties,
Session session) |
Round |
DefaultMultilateralProtocol.getRoundStructure(java.util.List<NegotiationParty> parties,
Session session) |
Round |
AlternatingMultipleOffersProtocol.getRoundStructure(java.util.List<NegotiationParty> parties,
Session session)
Get the round structure used by this algorithm.
|
boolean |
StackedAlternatingOffersProtocol.isFinished(Session session,
java.util.List<NegotiationParty> parties)
If all agents accept the most recent offer, then this negotiation ends.
|
boolean |
MultilateralProtocol.isFinished(Session session,
java.util.List<NegotiationParty> parties)
Check if the protocol is done or still busy.
|
boolean |
DefaultMultilateralProtocol.isFinished(Session session,
java.util.List<NegotiationParty> parties) |
boolean |
AlternatingMultipleOffersProtocol.isFinished(Session session,
java.util.List<NegotiationParty> parties) |
boolean |
AlternatingMajorityConsensusProtocol.isFinished(Session session,
java.util.List<NegotiationParty> parties) |
protected boolean |
AlternatingMultipleOffersProtocol.isVotingRound(Session session)
Returns whether this is a voting round.
|
Modifier and Type | Method and Description |
---|---|
Session |
Session.copy() |
Modifier and Type | Method and Description |
---|---|
void |
SessionEventHandler.logSessionEnded(Session session,
Bid agreement,
java.util.List<NegotiationPartyInternal> parties)
General session log.
|
void |
SessionEventHandler.offered(java.util.List<NegotiationPartyInternal> parties,
Bid bid,
Bid agreed,
Session session)
some offer was placed.
|
Constructor and Description |
---|
SessionManager(java.util.List<NegotiationPartyInternal> theparties,
MultilateralProtocol protocol,
Session session,
ExecutorWithTimeout exec)
Initializes a new instance of the
SessionManager object. |
Modifier and Type | Method and Description |
---|---|
protected static NegotiationPartyInternal |
TournamentGenerator.generateMediator(PartyRepItem mediatorRepItem,
ProfileRepItem alternativeProfileRepItem,
Session session)
Generates a mediator Party from the given information
|
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,
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,
Session session)
Generate the list of parties in the given session, including mediator(s)
|