10 #include <matrix/vlVector.h>
48 : DtFrameStateInterface(storage)
66 const double& internalCoreTemperature()
const;
67 void setInternalCoreTemperature(
const double&);
73 virtual void makeReadOnly() {};
90 const double& internalCoreTemperature()
const;
94 void updateVrfStateComponentParameters();
96 void updateInternalTemperatureData();
125 if (myNextFrameState.isWritable())
127 myCurrentFrameState.advanceFrame(myNextFrameState.frameState());
130 myCurrentFrameState.emitComponentUpdated();
135 myCurrentFrameState.updateStateData(sd);
136 myNextFrameState.updateStateData(sd);
142 myCurrentFrameState.aboutToBeDeleted();
143 myNextFrameState.aboutToBeDeleted();
double myInternalCoreTemperature
Definition: internalTemperatureStateComponent.h:35
2) Define the next frame class. This will be used for write access.
Definition: internalTemperatureStateComponent.h:56
DtInternalTemperatureStateComponentCurrentFrame myCurrentFrameState
Definition: internalTemperatureStateComponent.h:147
DtInternalTemperatureStateComponentData & frameState()
Definition: internalTemperatureStateComponent.h:64
void updateStateData(DtStateData *sd)
Implement to update data storage to the new state data.
Definition: internalTemperatureStateComponent.h:133
const DtFrameStateInterface * currentFrameState() const
Definition: internalTemperatureStateComponent.h:119
DtStateData * myStateData
Definition: internalTemperatureStateComponent.h:107
const DtInternalTemperatureStateComponentData & frameState() const
Next frame access write access. Ensure this is only used in a single thread (i.e.a controller thread)...
Definition: internalTemperatureStateComponent.h:63
Definition: stateComponent.h:266
virtual void makeWritable()
Override to make component writable.
Definition: internalTemperatureStateComponent.h:70
DtInternalTemperatureStateComponentData myData
Definition: internalTemperatureStateComponent.h:77
void updateDataStorage()
Implement to update data storage. Called from advanceFrame.
Definition: internalTemperatureStateComponent.h:123
3) Define the current frame class. This will be used for read access.
Definition: internalTemperatureStateComponent.h:81
const unsigned int InternalTemperatureStateComponent
Definition: internalTemperatureStateComponent.h:37
virtual DtFrameStateInterface * nextFrameState()
Definition: internalTemperatureStateComponent.h:120
const DtInternalTemperatureStateComponentData & frameState() const
Current frame state only can access current frame buffers. This ensures thread safety.
Definition: internalTemperatureStateComponent.h:88
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:339
void advanceFrame(const DtInternalTemperatureStateComponentData &data)
Definition: internalTemperatureStateComponent.h:99
#define DEFINE_STATE_COMPONENT_TYPE(CreatedComponent)
Definition: stateComponent.h:228
Definition: internalTemperatureStateComponent.h:14
DtInternalTemperatureStateComponentNextFrame myNextFrameState
Definition: internalTemperatureStateComponent.h:148
Subclass from this to indicate that this will be a double buffered state component.
Definition: stateComponent.h:379
virtual void aboutToBeDeleted() override
Definition: internalTemperatureStateComponent.h:139
virtual void aboutToBeDeleted()
boost::signals2::scoped_connection myVrfStateComponentChangedConnection
Definition: internalTemperatureStateComponent.h:105
DtInternalTemperatureStateComponentData(const DtInternalTemperatureStateComponentData &orig)
Definition: internalTemperatureStateComponent.h:20
#define UNDEFINED_RETURNREF_ACCESSOR_MUTATOR(Type, Member, Set)
Definition: doubleBufferedDataStorage.h:57
DtInternalTemperatureStateComponentData()
Definition: internalTemperatureStateComponent.h:16
#define DEFINE_ACCESSOR_MUTATOR(ReturnType, Accessor, Mutator)
Definition: doubleBufferedDataStorage.h:23
DtInternalTemperatureStateComponentData myData
Definition: internalTemperatureStateComponent.h:108
virtual const DtFrameStateInterface * nextFrameState() const
Definition: internalTemperatureStateComponent.h:121
1) Define the interface class that will be used to represent the next and current frames...
Definition: internalTemperatureStateComponent.h:42
DtStateComponentCreator< DtInternalTemperatureStateComponentImplementation > DtInternalTemperatureStateComponentCreator
5) Define the creator. This will need to be registered with the REGISTER_STATE_COMPONENT macro in the...
Definition: internalTemperatureStateComponent.h:153
boost::signals2::scoped_connection myCompleteSetupConnection
Definition: internalTemperatureStateComponent.h:106
DtInternalTemperatureStateComponentData & operator=(const DtInternalTemperatureStateComponentData &orig)
Definition: internalTemperatureStateComponent.h:25
Contains the DtStateComponent class declaration.
This is a simple base class that will be used to return a pointer to current or next frame state...
Definition: stateComponent.h:291
4) Define the state component that will contain the wrappers to the next and current frame states tha...
Definition: internalTemperatureStateComponent.h:113
bool isDoubleBuffered()
Definition: internalTemperatureStateComponent.h:118