public class SimpleMediatorBasedProtocol extends MediatorProtocol
Protocol:
OfferForVoting
VoteForOfferAcceptance to accept/reject
InformVotingResult
InformVotingResult that contains a
Vote.ACCEPT as the current agreement. If no such vote exists, it is
assumed no agreement has been reached yet.isAborted| Constructor and Description |
|---|
SimpleMediatorBasedProtocol() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<NegotiationParty,java.util.List<NegotiationParty>> |
getActionListeners(java.util.List<NegotiationParty> parties)
Get a map of parties that are listening to each other's response
|
Bid |
getCurrentAgreement(Session session,
java.util.List<NegotiationParty> parties)
Returns the last offer for voting as the current agreement.
|
Round |
getRoundStructure(java.util.List<NegotiationParty> parties,
Session session)
Get the structure of the current round.
|
getMediator, getNonMediatorsafterSession, applyAction, beforeSession, checkOffer, endNegotiation, endNegotiation, exclude, getNumberOfAgreeingParties, includeOnly, isFinished, listenToAll, listenToNonepublic Round getRoundStructure(java.util.List<NegotiationParty> parties, Session session)
MultilateralProtocolNegotiationParty and the
complete Session which can be used to diversify the round
structure at some point during the session.getRoundStructure in interface MultilateralProtocolgetRoundStructure in class DefaultMultilateralProtocolparties - The parties currently participatingsession - The complete session historypublic java.util.Map<NegotiationParty,java.util.List<NegotiationParty>> getActionListeners(java.util.List<NegotiationParty> parties)
DefaultMultilateralProtocolgetActionListeners in interface MultilateralProtocolgetActionListeners in class DefaultMultilateralProtocolparties - The parties involved in the current negotiationNegotiationParty that is responding to
a NegotiationParty.chooseAction(java.util.List) event,
and the value is a list of NegotiationParty that are
listening to that key party's response.public Bid getCurrentAgreement(Session session, java.util.List<NegotiationParty> parties)
getCurrentAgreement in interface MultilateralProtocolgetCurrentAgreement in class DefaultMultilateralProtocolsession - The complete session history up to this pointparties - The parties involved in the current negotiationVote.ACCEPT), or null if no agreement
yet.