This class is the abstract base class for command classes that are processed by modes.
Constructor.
Argument | Type | Default | Description |
mode | AFXMode | Host mode. | |
method | String | Method. | |
objectName | String | '' | Object name. |
registerQuery | Bool | False | True if a query should be registered when the command is used for the GUI. |
Activates the command; active commands will be processed during command generation.
Deactivates the command; inactive commands will not be processed during command generation.
Returns the command string based on the current values of the active keywords.
Returns the expanded object name that has all the "%s"'s replaced by the current names.
Returns the keyword with the given name (returns 0 if none is found).
Argument | Type | Default | Description |
name | String | Keyword name. |
Returns the keyword at the given index (returns 0 if the index is out-of-bounds).
Argument | Type | Default | Description |
index | Int | Keyword index (0-based). |
Returns True if this command is going to be sent even if none of its keywords has been modified, otherwise returns False.
Sets the values of all keywords to their defaults.
Argument | Type | Default | Description |
ignoreUnspecified | Bool | False | Ignore setting the value if the default is unspecified. |
Sets the values of all keywords to their previous values.
Sets the command's method.
Argument | Type | Default | Description |
method | String | Method. |
Sets the object name.
Argument | Type | Default | Description |
objectName | String | Object name. |
Sets this command as required or optional; if True the command will always be sent, if False the command will be sent only if it has modified keywords or if it has no keywords.
Argument | Type | Default | Description |
val | Bool |