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

class componentContext

a group of component lists that are associated with specific module parameters.

Public Fields

[more]int index
index into the list of contexts in a componentDB
[more]char ctxName[COMPONENT_NAME_LEN]
the name of the context


Documentation

a group of component lists that are associated with specific module parameters. A componentContext can have several lists of components, each of which is associated with a specific parameter number for one or more modules. When a configuration file is parsed, each module that uses components can specify the name of a componentContext, which in turn determines how the component-related parameter values in a module are mapped into specific components. For example, if a componentContext named 'revoluteJoint' specifies that the componentList 'motors' is associated with the 0th module parameter and the componentList 'gearHeads' is associated with the 1st module parameter, then the module's 0th parameter will select a motor from 'motors' and the 1st parameter will select a gearhead from 'gearHeads'. Multiple module classes can use the same componentContext, as long as the component parameters have the same numbers in all of the modules. For instance, if three different joint modules all use parameter 0 to select a motor, and the same set of motors is desired for all three modules, then the modules can all use the same componentContext. Specific component classes are defined in components.h
oint index
index into the list of contexts in a componentDB

ochar ctxName[COMPONENT_NAME_LEN]
the name of the context


This class has no child classes.
Friends:
componentDB
componentList

Alphabetic index HTML hierarchy of classes or Java



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