12#ifndef WSFLOCALTRACKSTATUS_HPP
13#define WSFLOCALTRACKSTATUS_HPP
15#include "wsf_export.h"
34 static std::unique_ptr<UtScriptClass>
CreateScriptClass(
const std::string& aClassName, UtScriptTypes* aScriptTypesPtr);
71 if (aStateIndex != mStateIndex)
73 mLastStateChangeTime = aSimTime;
75 mStateIndex = aStateIndex;
76 mStateName = aStateName;
100 double mLastStateChangeTime;
112 unsigned int mEvaluationEpoch;
116 bool mTransitionPending;
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
static std::unique_ptr< UtScriptClass > CreateScriptClass(const std::string &aClassName, UtScriptTypes *aScriptTypesPtr)
Definition WsfLocalTrackStatus.cpp:69
void SetState(double aSimTime, int aStateIndex, WsfStringId aStateName)
Definition WsfLocalTrackStatus.hpp:69
void SetTransitionPending(bool aTransitionPending)
Set or clear the 'transition pending' status.
Definition WsfLocalTrackStatus.hpp:83
WsfLocalTrackStatus()=default
unsigned int EvaluationEpoch() const
Periodic evaluation control.
Definition WsfLocalTrackStatus.hpp:90
int GetStateIndex() const
Get the state index within the state machine.
Definition WsfLocalTrackStatus.hpp:58
WsfStringId GetStateName() const
Get the state name that is associated with the above state index (diagnostic use only).
Definition WsfLocalTrackStatus.hpp:61
bool TransitionPending() const
Is a transition pending into the current state.
Definition WsfLocalTrackStatus.hpp:80
const WsfTrackId & GetLocalTrackId() const
the track ID of the local track with which this status is associated.
Definition WsfLocalTrackStatus.hpp:40
WsfStringId GetTargetName() const
Get the string ID of the target that is associated with the local track.
Definition WsfLocalTrackStatus.hpp:48
virtual ~WsfLocalTrackStatus()=default
double GetLastStateChangeTime() const
Definition WsfLocalTrackStatus.hpp:63
void UpdateEvaluationEpoch()
Definition WsfLocalTrackStatus.hpp:91
Definition WsfLocalTrack.hpp:32
The main controller for a simulation.
Definition WsfSimulation.hpp:109
Definition WsfTrackId.hpp:33