In file /home/blah/darwin2k/src/dyno/mechanism/dyno.h:

class dynoComponent

base class for objects that must get updated at every simulation time step.

Inheritance:


Public Fields

[more]int applyAfterAccel
indicates whether update() should be called at the end of dynamicSystem::computeAccelerationFromTorque() instead of in dynamicSystem::updateComponents.

Public Methods

[more]virtual int update(int &violated, int shortCircuit) = 0
a virtual method called after every simulation time step.


Inherited from dynoObject:

Public Fields

odynamicSystem* ds
oint active
oint stateSize

Public Methods

oinline virtual int getState(double* state)
oinline virtual int setState(const double* state)
oinline virtual int reset(void)


Inherited from synObject:

Public Fields

ostatic int staticClassID
oint objectID
oint verboseLevel

Public Methods

ovirtual const char* className(void) const
ovirtual synObject* copy(void) const
ovirtual int isOfType(int typeNum, int derivedOk)
ostatic int setStaticClassID(void)
ovirtual int classID(void) const


Documentation

base class for objects that must get updated at every simulation time step. If applyAfterAccel is set, then the component's update() method is called at the end of dynamicSystem::computeAccelerationFromTorque() instead of in updateComponents(). applyAfterAccel should normally be 0.
oint applyAfterAccel
indicates whether update() should be called at the end of dynamicSystem::computeAccelerationFromTorque() instead of in dynamicSystem::updateComponents. This should be 0 for most components.

ovirtual int update(int &violated, int shortCircuit) = 0
a virtual method called after every simulation time step. Derived classes should override this method and observe the following API: - If a violation occurs and the simulation should be backed up to an earlier state, violated should be set to -1. violated should be set to 0 if there are no violated states defined for the component, or if the component is on the edge of a violated state. Otherwise, violated should be set to 1 to indicate that violated states exist for the component, but that the system is not currenly on the edge of a violation.


Direct child classes:
dynoContactor
postAccelHook

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.