10 #ifndef SCRIPTCOMPONENT_H_
11 #define SCRIPTCOMPONENT_H_
91 inline virtual void run()
116 const bool runnable,
const bool satisfiable );
Client-side interface for injecting log data into the log queue.
Definition: Logger.h:30
Contains the SyncComponent class definition.
ScriptMissionComponent(const Module *module, const Str &name, const bool runnable, const bool satisfiable)
Constructor.
Definition: ScriptComponent.cpp:160
void setModuleName(Str moduleName)
Definition: ScriptComponent.h:39
~ScriptMissionComponent()
Destructor.
Definition: ScriptComponent.h:119
ScriptSyncComponent(const Module *module, const Str &name, CycleOrder cycleOrder)
Constructor.
Definition: ScriptComponent.cpp:166
virtual RunState runnable()
Should eventually follow a START request or RESETTING.
Definition: Component.h:223
virtual void scriptRun(Logger &logger)
The actual "payload" of the component.
Definition: ScriptComponent.cpp:115
Scripted software components that run in the computation cycle.
Definition: ScriptComponent.h:151
virtual void uninitialize()
Uninitialize the payload.
Definition: ScriptComponent.h:140
Logger logger_
Definition: Component.h:476
virtual bool scriptIsSatisfied(Logger &logger)
The satisfied method.
Definition: ScriptComponent.cpp:125
Timespan class, represents a delta of time.
Definition: Timestamp.h:248
ScriptComponent()
Protected constructor called through instance()
Definition: ScriptComponent.cpp:147
Scripted software components that run independently from the computation cycle.
Definition: ScriptComponent.h:72
virtual void uninitialize()
Uninitialize the payload.
Definition: ScriptComponent.h:176
Behavior is the abstract base class for components that implement mission behaviors and commands...
Definition: Behavior.h:32
~ScriptSyncComponent()
Destructor.
Definition: ScriptComponent.h:161
virtual void run()
Execute the payload.
Definition: ScriptComponent.h:128
virtual void initialize()
Initialize the payload.
Definition: ScriptComponent.h:122
virtual void initialize()
Initialize the payload.
Definition: ScriptComponent.h:164
Str moduleName_
Definition: ScriptComponent.h:61
Contains the Behavior class definition.
virtual ~ScriptComponent()
Destructor.
Definition: ScriptComponent.cpp:17
Abstract Base class for software components that run in the computation cycle.
Definition: SyncComponent.h:22
These are enumerated to simplify sorting and ordering.
Definition: SyncComponent.h:42
Not really a component, but a class that can be merged with a Component to wrap code that is scripted...
Definition: ScriptComponent.h:23
Module is the abstract base class for a collection of Component objects that can be contained in a lo...
Definition: Module.h:45
Replacement for standard template class string.
Definition: Str.h:12
void setIndex(int index)
int index
Definition: ScriptComponent.h:34
Abstract Base class for software components.
Definition: Component.h:53
Scripted software components that run as part of a mission script.
Definition: ScriptComponent.h:109
~ScriptAsyncComponent()
Destructor.
Definition: ScriptComponent.h:82
Abstract Base class for software components that run independently from the computation cycle...
Definition: AsyncComponent.h:20
virtual bool isSatisfied()
Check if satisfied.
Definition: ScriptComponent.h:134
int index_
Definition: ScriptComponent.h:63
virtual void run()
Execute the payload.
Definition: ScriptComponent.h:170
virtual void run()
Execute the payload.
Definition: ScriptComponent.h:91
virtual void uninitialize()
Uninitialize the payload.
Definition: ScriptComponent.h:97
static Component * Instance(int index, Logger &logger)
Returns a "Script" version of AsyncComponent, Behavior, or SyncComponent, or NULL if the component ca...
Definition: ScriptComponent.cpp:22
virtual void scriptInitialize(Logger &logger)
Initialize function.
Definition: ScriptComponent.cpp:104
virtual void initialize()
Initialize the payload.
Definition: ScriptComponent.h:85
virtual void scriptUninitialize(Logger &logger)
Uninit function.
Definition: ScriptComponent.cpp:137
ScriptAsyncComponent(const Module *module, const Str &name, const Timespan &period)
Protected constructor for components that run in periodic asynchronous threads.
Definition: ScriptComponent.cpp:154
Contains the AsyncComponent class definition.