Class CentralizedNegotiation::Agent
Defined in File CentralizedNegotiation.hpp
Nested Relationships
This class is a nested type of Class CentralizedNegotiation.
Class Documentation
-
class Agent
Public Functions
Constructor
- Parameters:
id – [in] This agent’s ID within the schedule database. If multiple agents are given the same ID in a negotiation, then a runtime exception will be thrown.
starts – [in] The starting condition for this agent.
goal – [in] The goal for this agent.
planner – [in] The single-agent planner used for this agent. Each agent can have its own planner or they can share planners. If this is set to nullptr when the negotiation begins, then a runtime exception will be thrown.
options – [in] Options to use for the negotiator of this agent. If nullopt is provided, then the default options of the SimpleNegotiator will be used.
Constructor
The planner will use whichever starting condition provides the optimal plan.
- Parameters:
id – [in] This agent’s ID within the schedule database. If multiple agents are given the same ID in a negotiation, then a runtime exception will be thrown.
starts – [in] One or more starting conditions for this agent. If no starting conditions are provided before the negotiation begins, then a runtime exception will be thrown.
goal – [in] The goal for this agent.
planner – [in] The single-agent planner used for this agent. Each agent can have its own planner or they can share planners. If this is set to nullptr when the negotiation begins, then a runtime exception will be thrown.
options – [in] Options to use for the negotiator of this agent. If nullopt is provided, then the default options of the SimpleNegotiator will be used.
-
schedule::ParticipantId id() const
Get the ID for this agent.
-
Agent &id(schedule::ParticipantId value)
Set the ID for this agent.
-
const std::shared_ptr<const Planner> &planner() const
Get the planner for this agent.
Set the planner for this agent.
-
const std::optional<SimpleNegotiator::Options> &options() const
Get the options for this agent.
-
Agent &options(std::optional<SimpleNegotiator::Options> value)
Set the options for this agent.