COSMOS core  1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
Executive Agent program
Collaboration diagram for Executive Agent program:

This Agent manages the execution of commands within the COSMOS system. A single command queue is kept containing both time, and time and condition driven commands. Commands can be added or removed from this queue, either through direct requests or through command files.

Commands are represented as a eventstruc. If EVENT_FLAG_CONDITIONAL is set, the condition part of the eventstruc is evaluated as a COSMOS equation to determine whether the command should be executed. Either way, commands are only executed if their time has passed. Once a command has executed, it is either remove from the queue, or if EVENT_FLAG_REPEAT is set, it is disabled from executing until such time as the condition goes false again, after which it can once again execute.

Any execution of a command is reflected in two log files, one of which tracks the results of the command, and the other of which logs the actual eventstruc for the command, with the utcexec field set to the actual time of execution.

Usage: agent_exec agent->getNode()

This Agent manages the execution of commands within the COSMOS system. A single command queue is kept containing both time, and time and condition driven commands. Commands can be added or removed from this queue, either through direct requests or through command files.

Commands are represented as a eventstruc. If EVENT_FLAG_CONDITIONAL is set, the condition part of the eventstruc is evaluated as a COSMOS equation to determine whether the command should be executed. Either way, commands are only executed if their time has passed. Once a command has executed, it is either remove from the queue, or if EVENT_FLAG_REPEAT is set, it is disabled from executing until such time as the condition goes false again, after which it can once again execute.

Any execution of a command is reflected in two log files, one of which tracks the results of the command, and the other of which logs the actual eventstruc for the command, with the utcexec field set to the actual time of execution.

Usage: agent_monitor