Class BilateralNegotiation
java.lang.Object
com.tnsai.coordination.negotiation.bilateral.BilateralNegotiation
- All Implemented Interfaces:
NegotiationProtocol
Bilateral negotiation protocol - two-party offer/counter-offer exchange.
Parties take turns making offers. Each party uses the configured
ConcessionStrategy to compute their next offer. Agreement is
reached when an offer is at or below the other party's current position.
- Since:
- 0.0.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.tnsai.annotations.Coordination.NegotiationTypegetType()Returns the negotiation type this protocol handles.negotiate(List<com.tnsai.agents.Agent> parties, NegotiationConfig config) Executes the negotiation between the given parties.
-
Constructor Details
-
BilateralNegotiation
public BilateralNegotiation()
-
-
Method Details
-
negotiate
Description copied from interface:NegotiationProtocolExecutes the negotiation between the given parties.- Specified by:
negotiatein interfaceNegotiationProtocol- Parameters:
parties- the agents participating in negotiationconfig- negotiation configuration- Returns:
- the negotiation outcome
-
getType
public com.tnsai.annotations.Coordination.NegotiationType getType()Description copied from interface:NegotiationProtocolReturns the negotiation type this protocol handles.- Specified by:
getTypein interfaceNegotiationProtocol- Returns:
- the supported negotiation type
-