|
maliput
|
A group of RightOfWayRule instances and their states.
It models coupling between these rules due to, for example, spatial co-location at intersections.
#include <include/maliput/api/rules/phase.h>
Public Types | |
| using | Id = TypeSpecificIdentifier< Phase > |
| Unique identifier for a Phase. More... | |
Public Member Functions | |
| MALIPUT_DEFAULT_COPY_AND_MOVE_AND_ASSIGN (Phase) | |
| Phase (const Id &id, const RuleStates &rule_states, const DiscreteValueRuleStates &discrete_value_rule_states, std::optional< BulbStates > bulb_states=std::nullopt) | |
| Constructs a Phase. More... | |
| const Id & | id () const |
| Returns the phase's identifier. More... | |
| const RuleStates & | rule_states () const |
| Returns the phase's RightOfWayRule instances and their states. More... | |
| const DiscreteValueRuleStates & | discrete_value_rule_states () const |
| Returns the phase's DiscreteValueRule instances and their states. More... | |
| const std::optional< BulbStates > & | bulb_states () const |
| Returns the phase's bulb states. More... | |
| using Id = TypeSpecificIdentifier<Phase> |
Unique identifier for a Phase.
| Phase | ( | const Id & | id, |
| const RuleStates & | rule_states, | ||
| const DiscreteValueRuleStates & | discrete_value_rule_states, | ||
| std::optional< BulbStates > | bulb_states = std::nullopt |
||
| ) |
Constructs a Phase.
| id | the unique ID of the phase (in the RightOfWayRulePhaseRing) |
| rule_states | the RightOfWayRules and their states when the phase is applied, e.g., to an intersection. |
| discrete_value_rule_states | the DiscreteValueRules and their states when the phase is applied, e.g., to an intersection. Referenced rule type must be RightOfWayRuleType(). |
| bulb_states | the states of the bulbs when this phase is applied, e.g., to an intersection. |
rules_states and discrete_value_rule_states should reflect the same information. Rules should be duplicated while the transition from one type to the other happens. | const std::optional<BulbStates>& bulb_states | ( | ) | const |
Returns the phase's bulb states.
| const DiscreteValueRuleStates& discrete_value_rule_states | ( | ) | const |
Returns the phase's DiscreteValueRule instances and their states.
| const Id& id | ( | ) | const |
Returns the phase's identifier.
| MALIPUT_DEFAULT_COPY_AND_MOVE_AND_ASSIGN | ( | Phase | ) |
| const RuleStates& rule_states | ( | ) | const |
Returns the phase's RightOfWayRule instances and their states.