Command script

Usage

A command script belongs to a command (which can also be a creator in a factory) and is executed whenever the command is called.

Selector syntax

Table 7.3. Command script selector

ProductionSyntaxLinks
command_script_selectorcommand_idthe 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.

Input and output arguments

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 commandArguments defined in
public object commandtype
creatorfactory
private factory commandfactory
public or private service commandservice

Instructions

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 commandInstructions defined in
public object commandfactory
creatorfactory
private factory commandfactory
public or private service commandservice

Examples

see:

See also