Qudi
|
Represents a task that creates the necessary conditions for a different task and reverses its own actions afterwards. More...
Public Member Functions | |
def | __init__ (self, name, runner, references, config, kwargs) |
Create a PrePostTask. More... | |
def | log (self) |
Returns a logger object. | |
def | onchangestate (self, e) |
Fysom callback for all state transitions. More... | |
def | preExecute (self) |
This method contains any action that should be done before some task. More... | |
def | postExecute (self) |
This method needs to undo any actions in preExecute() after a task has been finished. More... | |
Public Attributes | |
lock | |
name | |
runner | |
ref | |
config | |
Represents a task that creates the necessary conditions for a different task and reverses its own actions afterwards.
def generic_task.PrePostTask.__init__ | ( | self, | |
name, | |||
runner, | |||
references, | |||
config, | |||
kwargs | |||
) |
Create a PrePostTask.
str | name: unique name of the task |
object | runner: TaskRunner that manages this task |
dict | references: contains references to all required modules |
dict | config: configuration parameter dictionary |
def generic_task.PrePostTask.onchangestate | ( | self, | |
e | |||
) |
Fysom callback for all state transitions.
object | e: Fysom state transition description |
This just emits a signal so external components can react.
def generic_task.PrePostTask.postExecute | ( | self | ) |
This method needs to undo any actions in preExecute() after a task has been finished.
It needs to be overwritten in every subclass.
def generic_task.PrePostTask.preExecute | ( | self | ) |
This method contains any action that should be done before some task.
It needs to be overwritten in every subclass.