#include <component.h>
Collaboration diagram for SPARK::TComponent:

| Public Types | |
| enum | ComponentTypes { ComponentType_WEAK = 0, ComponentType_STRONG = 1 } | 
| Type to indicate whether a component consists of a set of weakly- or strongly-connected equations.  More... | |
| Public Member Functions | |
| TComponent (unsigned handle, unsigned numNormalUnknowns, SPARK::TUnknown normalUnknowns[], unsigned numBreakUnknowns, SPARK::TUnknown breakUnknowns[], unsigned numObjects, SPARK::TObject *objects[]) throw (SPARK::XMemory) | |
| Constructor. | |
| ~TComponent () throw () | |
| Destructor. | |
| void | Evaluate () | 
| Solves the set of differential-algebraic equations. | |
| const char * | GetName () const | 
| Returns the name of the component as const char*. | |
| unsigned | GetHandle () const | 
| Returns the unique handle assigne to this component as an unsigned int. | |
| unsigned | GetType () const | 
| Returns the component type as unsigned (see enum TComponent::TType). | |
| unsigned | GetNumObjects () const | 
| Returns the number of objects comprising this component. | |
| SPARK::TObject * | GetObject (unsigned i) | 
| Returns a pointer to the TObject object evaluated in position i. | |
| const SPARK::TObject * | GetObject (unsigned i) const | 
| Returns a const pointer to the TObject object evaluated in position i. | |
| bool | IsStronglyConnected () const | 
| Returns true if this component is a strongly-connected component. | |
A problem consists of a series of TComponent objects that are solved in a fixed order, from the first component (with index 0) to the last component. The order in which the components need to be solved reflects the topological dependencies derived by setupcpp.
| 
 | 
| Type to indicate whether a component consists of a set of weakly- or strongly-connected equations. 
 | 
| 
 | ||||||||||||||||||||||||||||||||
| Constructor. 
 | 
| 
 | 
| Destructor. 
 | 
| 
 | 
| Solves the set of differential-algebraic equations. 
 
 | 
| 
 | 
| Returns the name of the component as const char*. 
 | 
| 
 | 
| Returns the unique handle assigne to this component as an unsigned int. 
 | 
| 
 | 
| Returns the component type as unsigned (see enum TComponent::TType). 
 | 
| 
 | 
| Returns the number of objects comprising this component. 
 | 
| 
 | 
| Returns a pointer to the TObject object evaluated in position i. 
 
 | 
| 
 | 
| Returns a const pointer to the TObject object evaluated in position i. 
 
 | 
| 
 | 
| Returns true if this component is a strongly-connected component. 
 |