concepts.dm.pdsketch.operator.Operator#
- class Operator[source]#
Bases:
OperatorBase
The operator definition in a planning domain.
Methods
pddl_str
()Return the PDDL representation of the operator.
rename
(new_name[, is_primitive])Rename the operator.
Attributes
The names of the arguments of the operator.
The types of the arguments of the operator.
Whether this operator is an axiom.
Whether the operator is a macro operator.
Whether this operator is a primitive operator (instead of a macro operator or a sub operator in a macro).
The number of arguments of the operator.
The name of the operator.
The list of arguments of the operator.
The list of preconditions of the operator.
The list of effects of the operator.
The controller function of the operator.
Whether this operator is a template.
The name of the operator that this operator extends.
- __init__(name, arguments, preconditions, effects, controller=None, is_primitive=True, is_axiom=False, is_template=False, extends=None)[source]#
- __new__(**kwargs)#
- property argument_types: Tuple[ObjectType | ValueType, ...]#
The types of the arguments of the operator.
- controller: Implementation | None#
The controller function of the operator.
- property is_macro#
Whether the operator is a macro operator.
- property is_primitive: bool#
Whether this operator is a primitive operator (instead of a macro operator or a sub operator in a macro).
- preconditions: Tuple[Precondition]#
The list of preconditions of the operator.