SPHinXsys
alpha version
|
Class for handling state variable added (allocated) by this StateEngine. More...
#include <state_engine.h>
Inherits SPH::StateEngine::StateVariable.
Public Member Functions | |
AddedStateVariable () | |
AddedStateVariable (std::string &name, StateEngine &owner, SimTK::Stage invalidatestage) | |
Real | getValue () override |
void | setValue (Real value) override |
Real | getDerivative () override |
void | setDerivative (Real deriv) override |
Public Member Functions inherited from SPH::StateEngine::StateVariable | |
StateVariable () | |
StateVariable (std::string &name, StateEngine &owner, SimTK::SubsystemIndex subsys, int varindex) | |
std::string & | getName () |
StateEngine & | getOwner () |
int & | getVarIndex () |
SimTK::SubsystemIndex & | getSubsysIndex () |
SimTK::SystemYIndex & | getSystemYIndex () |
void | setVarIndex (int index) |
void | setSubsystemIndex (SimTK::SubsystemIndex &subsysindx) |
Class for handling state variable added (allocated) by this StateEngine.
|
inline |
Constructors adn destrucutors.
|
inlineexplicit |
Convenience constructor for defining a StateEngine added state variable < stage this variable invalidates.
name | state var name. |
|
overridevirtual |
override virtual methods.
Implements SPH::StateEngine::StateVariable.
|
overridevirtual |
The derivative a state should be a cache entry and thus does not change the state.
Implements SPH::StateEngine::StateVariable.