A command script belongs to a command (which can also be a creator in a factory) and is executed whenever the command is called.
Table 7.3. Command script selector
| Production | Syntax | Links |
|---|---|---|
command_script_selector | command_id | the section called “Command script” |
As we can see from the above syntax, a command script selector is simply the command's identifier which is explicitly defined in the source code.
All input and output arguments are explicitly defined in the source code. The following table shows where they are defined, depending on the kind of command:
Table 7.4. Definition of command/creator input and output arguments.
| Kind of command | Arguments defined in |
|---|---|
| public object command | type |
| creator | factory |
| private factory command | factory |
| public or private service command | service |
The following table shows where the instructions of a command script are defined, depending on the kind of command:
Table 7.5. Definition of command/creator instructions.
| Kind of command | Instructions defined in |
|---|---|
| public object command | factory |
| creator | factory |
| private factory command | factory |
| public or private service command | service |
see: