concepts.pdsketch.operator.MacroOperator#

class MacroOperator[source]#

Bases: OperatorBase

Methods

pddl_str()

Return the PDDL representation of the operator.

Attributes

is_axiom

Whether the operator is an axiom.

is_macro

Whether this operator is a macro operator.

is_primitive

Whether this operator is a primitive operator (instead of a macro operator or a sub operator in a macro).

nr_arguments

The number of arguments of the operator.

name

The name of the macro operator.

arguments

The list of arguments of the macro operator.

sub_operators

The list of sub operators of the macro operator.

__call__(*args)[source]#

Ground the operator with a list of arguments.

Return type:

OperatorApplier

__init__(name, arguments, sub_operators)[source]#
Parameters:
__new__(**kwargs)#
pddl_str()[source]#

Return the PDDL representation of the operator.

Return type:

str

arguments: Tuple[Variable]#

The list of arguments of the macro operator.

property is_axiom: bool#

Whether the operator is an axiom.

property is_macro: bool#

Whether this 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).

name: str#

The name of the macro operator.

property nr_arguments: int#

The number of arguments of the operator.

sub_operators: Tuple[OperatorApplier]#

The list of sub operators of the macro operator.