Subsystem Class Reference

#include <Subsystem.h>

Inheritance diagram for Subsystem:

DefaultSystemSubsystem List of all members.

Detailed Description

The abstract parent of all Subsystems.

A Subsystem is expected to be part of a larger System and to have interdependencies with other subsystems of that same system. It must NOT have dependencies on objects which are outside the System. Consequently construction of any concrete subsystem requires specification of a system at that time. Subsystems go through an extended construction phase in which their contents and interdependencies are created. Thus all of a System's Subsystems generally need to be available simultaneously during construction, so that they can reference each other.

There are three distinct users of this class:


Public Member Functions

 Subsystem ()
 Subsystem (const Subsystem &)
Subsystemoperator= (const Subsystem &)
 ~Subsystem ()
const StringgetName () const
const StringgetVersion () const
const VectorgetQ (const State &) const
const VectorgetU (const State &) const
const VectorgetZ (const State &) const
const VectorgetQDot (const State &) const
const VectorgetUDot (const State &) const
const VectorgetZDot (const State &) const
const VectorgetQDotDot (const State &) const
const VectorgetQErr (const State &) const
const VectorgetUErr (const State &) const
const VectorgetUDotErr (const State &) const
const VectorgetMultipliers (const State &) const
VectorupdQ (State &) const
VectorupdU (State &) const
VectorupdZ (State &) const
void setQ (State &s, const Vector &q) const
void setU (State &s, const Vector &u) const
void setZ (State &s, const Vector &z) const
VectorupdQDot (const State &) const
VectorupdUDot (const State &) const
VectorupdZDot (const State &) const
VectorupdQDotDot (const State &) const
VectorupdQErr (const State &) const
VectorupdUErr (const State &) const
VectorupdUDotErr (const State &) const
VectorupdMultipliers (const State &) const
Stage getStage (const State &) const
const AbstractValuegetDiscreteVariable (const State &, int index) const
AbstractValueupdDiscreteVariable (State &, int index) const
const AbstractValuegetCacheEntry (const State &, int index) const
AbstractValueupdCacheEntry (const State &, int index) const
int getQStart (const State &) const
int getNQ (const State &) const
int getUStart (const State &) const
int getNU (const State &) const
int getZStart (const State &) const
int getNZ (const State &) const
int getQErrStart (const State &) const
int getNQErr (const State &) const
int getUErrStart (const State &) const
int getNUErr (const State &) const
int getUDotErrStart (const State &) const
int getNUDotErr (const State &) const
int getMultipliersStart (const State &) const
int getNMultipliers (const State &) const
bool isInSystem () const
bool isInSameSystem (const Subsystem &otherSubsystem) const
const System & getSystem () const
System & updSystem ()
SubsystemIndex getMySubsystemIndex () const
bool isOwnerHandle () const
bool isEmptyHandle () const
bool isSameSubsystem (const Subsystem &otherSubsystem) const
bool subsystemTopologyHasBeenRealized () const
void invalidateSubsystemTopologyCache () const
const Subsystem::GutsgetSubsystemGuts () const
Subsystem::GutsupdSubsystemGuts ()
void adoptSubsystemGuts (Subsystem::Guts *g)
void setSystem (System &, SubsystemIndex)
 Subsystem (Subsystem::Guts *g)
bool hasGuts () const

Friends

class Guts

Classes

class  Guts
 The abstract parent of all Subsystems. More...


Constructor & Destructor Documentation

Subsystem (  )  [inline]

Subsystem ( const Subsystem  ) 

~Subsystem (  ) 

Subsystem ( Subsystem::Guts g  )  [inline, explicit]


Member Function Documentation

void adoptSubsystemGuts ( Subsystem::Guts g  ) 

const AbstractValue& getCacheEntry ( const State ,
int  index 
) const

const AbstractValue& getDiscreteVariable ( const State ,
int  index 
) const

const Vector& getMultipliers ( const State  )  const

int getMultipliersStart ( const State  )  const

SubsystemIndex getMySubsystemIndex (  )  const

const String& getName (  )  const

int getNMultipliers ( const State  )  const

int getNQ ( const State  )  const

int getNQErr ( const State  )  const

int getNU ( const State  )  const

int getNUDotErr ( const State  )  const

int getNUErr ( const State  )  const

int getNZ ( const State  )  const

const Vector& getQ ( const State  )  const

const Vector& getQDot ( const State  )  const

const Vector& getQDotDot ( const State  )  const

const Vector& getQErr ( const State  )  const

int getQErrStart ( const State  )  const

int getQStart ( const State  )  const

Stage getStage ( const State  )  const

const Subsystem::Guts& getSubsystemGuts (  )  const [inline]

const System& getSystem (  )  const

const Vector& getU ( const State  )  const

const Vector& getUDot ( const State  )  const

const Vector& getUDotErr ( const State  )  const

int getUDotErrStart ( const State  )  const

const Vector& getUErr ( const State  )  const

int getUErrStart ( const State  )  const

int getUStart ( const State  )  const

const String& getVersion (  )  const

const Vector& getZ ( const State  )  const

const Vector& getZDot ( const State  )  const

int getZStart ( const State  )  const

bool hasGuts (  )  const [inline]

void invalidateSubsystemTopologyCache (  )  const

bool isEmptyHandle (  )  const

bool isInSameSystem ( const Subsystem otherSubsystem  )  const

bool isInSystem (  )  const

bool isOwnerHandle (  )  const

bool isSameSubsystem ( const Subsystem otherSubsystem  )  const

Subsystem& operator= ( const Subsystem  ) 

void setQ ( State s,
const Vector q 
) const [inline]

void setSystem ( System &  ,
SubsystemIndex   
)

void setU ( State s,
const Vector u 
) const [inline]

void setZ ( State s,
const Vector z 
) const [inline]

bool subsystemTopologyHasBeenRealized (  )  const

AbstractValue& updCacheEntry ( const State ,
int  index 
) const

AbstractValue& updDiscreteVariable ( State ,
int  index 
) const

Vector& updMultipliers ( const State  )  const

Vector& updQ ( State  )  const

Vector& updQDot ( const State  )  const

Vector& updQDotDot ( const State  )  const

Vector& updQErr ( const State  )  const

Subsystem::Guts& updSubsystemGuts (  )  [inline]

System& updSystem (  ) 

Vector& updU ( State  )  const

Vector& updUDot ( const State  )  const

Vector& updUDotErr ( const State  )  const

Vector& updUErr ( const State  )  const

Vector& updZ ( State  )  const

Vector& updZDot ( const State  )  const


Friends And Related Function Documentation

friend class Guts [friend]


The documentation for this class was generated from the following file:
Generated on Thu Feb 28 01:34:36 2008 for SimTKcommon by  doxygen 1.4.7