concepts.pdsketch.operator.MacroOperator#
- class MacroOperator[source]#
Bases:
OperatorBase
Methods
pddl_str
()Return the PDDL representation of the operator.
Attributes
Whether the operator is an axiom.
Whether this macro operator is an extended macro.
Whether this operator is a macro operator.
Whether this operator is a primitive operator.
The number of arguments of the operator.
The name of the macro operator.
The list of arguments of the macro operator.
The list of sub operators of the macro operator.
The list of preconditions of the macro operator (only used for extended macros).
The list of effects of the macro operator (only used for extended macros).
- __init__(name, arguments, sub_operators, preconditions=tuple(), effects=tuple())[source]#
- Parameters:
name (str)
sub_operators (Sequence[OperatorApplier])
preconditions (Sequence[Precondition])
- __new__(**kwargs)#
- effects: Tuple[Effect, ...]#
The list of effects of the macro operator (only used for extended macros).
- preconditions: Tuple[Precondition, ...]#
The list of preconditions of the macro operator (only used for extended macros).
- sub_operators: Tuple[OperatorApplier, ...]#
The list of sub operators of the macro operator.