Package com.tnsai.annotations
Annotation Interface Coordination.Negotiation
- Enclosing class:
Coordination
Negotiation protocol configuration.
Configures how an agent negotiates with other agents, including the protocol type, round limits, and concession behavior.
Usage
@Coordination(
role = CoordinationRole.PEER,
teams = {"sales"},
negotiation = @Coordination.Negotiation(
type = NegotiationType.BILATERAL,
maxRounds = 5,
reservationValue = 50.0,
concessionStrategy = "exponential"
)
)
public class BuyerRole extends Role { ... }
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionConcession strategy name.doubleStarting offer value (-1 = auto).intMaximum negotiation rounds.doubleMinimum acceptable value (walk-away point).Timeout as ISO-8601 duration (e.g.Negotiation protocol type.
-
Element Details
-
type
Negotiation protocol type.- Returns:
- the negotiation type
- Default:
NONE
-
maxRounds
int maxRoundsMaximum negotiation rounds.- Returns:
- max rounds
- Default:
10
-
timeout
String timeoutTimeout as ISO-8601 duration (e.g. "PT30S").- Returns:
- timeout duration string
- Default:
"PT30S"
-
reservationValue
double reservationValueMinimum acceptable value (walk-away point).- Returns:
- reservation value
- Default:
0.0
-
initialOffer
double initialOfferStarting offer value (-1 = auto).- Returns:
- initial offer value
- Default:
-1.0
-
concessionStrategy
String concessionStrategyConcession strategy name.Built-in strategies: "linear", "exponential", "tit_for_tat", "time_dependent".
- Returns:
- concession strategy name
- Default:
"linear"
-