Skip to content

Action

Action

Bases: ABC

Extension contract for a deferred Tcl command in a model process.

Ordinary scripts should use model.actions. Subclass this base when implementing a reusable command not covered by those factories; implement to_tcl() without launching the solver. ProcessManager retains actions directly rather than through a manager-owned weak reference.

Methods:

Name Description
to_tcl

Return the Tcl text inserted at this action's process position.

Methods:

to_tcl abstractmethod

to_tcl() -> str

Return the Tcl text inserted at this action's process position.

Returns:

Name Type Description
str str

Command text, potentially containing multiple lines. Rendering

str

a command must not be confused with executing its solver effects.