Class AuctionAdapter
java.lang.Object
com.tnsai.coordination.negotiation.adapter.AuctionAdapter
- All Implemented Interfaces:
NegotiationProtocol
Adapter that wraps the existing
Auction as a NegotiationProtocol.
Maps Coordination.NegotiationType auction variants to Auction.Type
and converts AuctionResult to NegotiationOutcome.
- 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.voidsetBidStrategy(BidStrategy bidStrategy) Sets the bid strategy used for auction execution.
-
Constructor Details
-
AuctionAdapter
public AuctionAdapter() -
AuctionAdapter
-
-
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
-
setBidStrategy
Sets the bid strategy used for auction execution.
-