It’s a event-name or any object with a event_name attribute that feeds a simple-machine.
This is how gobj communicate with each other: using events.
An instance of ginsfsm.gaplic.GAplic class or derived.
It’s the root, the grandfather,
the container of all gobj‘s’ running in the same thread or subprocess.
The gconfig-template is the argument to the ginsfsm.gconfig.GConfig class.
It’s a python dictionary.
The key is the parameter name, and the value is a list describing the parameter:
[type, default value, and description]
This is an example from ginsfsm.examples.ontimer:
ONTIMER_GCONFIG = { # type, default_value, flag, validate_function, desc
'seconds': [int, 2, 0, None, "Seconds to repeat the command."],
'verbose': [int, 0, 0, None, "Increase output verbosity."],
'command': [str, 'ls', 0, None, "Command to execute."],
}
See ginsfsm.gconfig for more details.
The simple-machine is the argument to the ginsfsm.smachine.SMachine class.
It’s a simple implementation of an Finite State Machines (FSM) using a python dictionary with three keys.
This is an example from ginsfsm.examples.ontimer:
ONTIMER_FSM = {
'event_list': ('EV_TIMEOUT',),
'state_list': ('ST_STATE',),
'machine': {
'ST_STATE':
(
('EV_TIMEOUT', ac_task, 'ST_STATE'),
),
}
}
See ginsfsm.smachine for more details.