In file /home/blah/darwin2k/src/d2k/d2kcore/cfgComponent.h:

class cfgComponent

cfgComponent - runtime objects that are created by d2kComponents or modules.

Inheritance:


Public Fields

[more]synObject* owner
the creator or owner of the component
[more]configuration* cfg
the configuration of which the cfgComponent is a part
[more]d2kSimulator* ev
the d2kSimulator simulating the configuration
[more]const char* label
an optional name for the component
[more]int active
indicates whether the cfgComponent is currently active

Public Methods

[more] ~cfgComponent(void)
destructor
[more]virtual int init(void)
performs class-specific initialization.
[more]virtual int update(int &violated)
This function is called each time step of simulation to allow the cfgComponent to update state-dependent variables.


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

cfgComponent - runtime objects that are created by d2kComponents or modules. For example, a sensor that is part of a module can be implemented as a cfgComponent, and the sensor will be updated at each simulation timestep.
osynObject* owner
the creator or owner of the component

oconfiguration* cfg
the configuration of which the cfgComponent is a part

od2kSimulator* ev
the d2kSimulator simulating the configuration

oconst char* label
an optional name for the component

oint active
indicates whether the cfgComponent is currently active

o ~cfgComponent(void)
destructor

ovirtual int init(void)
performs class-specific initialization. This method is called after modules and all cfgComponents have been instantiated, and after d2kComponent::init() is called. This allows d2kComponents to create cfgComponents too.

Returns:
Returns 1 on success, 0 on failure

ovirtual int update(int &violated)
This function is called each time step of simulation to allow the cfgComponent to update state-dependent variables. If a condition is detected that requires the simulation to be backed up to a previous timestep, violated should be set to -1 by this method. Otherwise, it should be set to 0.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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