known as state More...
Public Member Functions | |
| def | __init__ |
| def | __repr__ |
| def | __str__ |
| def | add |
| def | get |
| def | get_value |
| def | initialize_worldstate |
| def | print_dict |
Private Member Functions | |
| def | _update_value |
Private Attributes | |
| _state_name | |
Static Private Attributes | |
| dictionary | _conditions_dict = {} |
known as state
The object that makes any kind of robot or system state available. This class, at least its static part, is a multiton: * For each state_name only one instance is allowed to be in the _conditions_dict mapping. * If there is no mapping for a get(state_name) call an assertion is triggered, as creating a new instance makes no sense here. self._state_name: id name of condition, must not be changed
| def rgoap.common.Condition.__init__ | ( | self, | |
| state_name | |||
| ) |
| def rgoap.common.Condition.__repr__ | ( | self | ) |
| def rgoap.common.Condition.__str__ | ( | self | ) |
| def rgoap.common.Condition._update_value | ( | self, | |
| worldstate | |||
| ) | [private] |
| def rgoap.common.Condition.add | ( | cls, | |
| condition | |||
| ) |
| def rgoap.common.Condition.get | ( | cls, | |
| state_name | |||
| ) |
| def rgoap.common.Condition.get_value | ( | self | ) |
| def rgoap.common.Condition.initialize_worldstate | ( | cls, | |
| worldstate | |||
| ) |
| def rgoap.common.Condition.print_dict | ( | cls | ) |
dictionary rgoap::common.Condition::_conditions_dict = {} [static, private] |
rgoap::common.Condition::_state_name [private] |