state = Running;
}
-void
-SimObject::connect()
-{
-}
-
void
SimObject::init()
{
Stats::registerResetCallback(&StatResetCB);
}
-//
-// static function: call connect() on all SimObjects.
-//
-void
-SimObject::connectAll()
-{
- SimObjectList::iterator i = simObjectList.begin();
- SimObjectList::iterator end = simObjectList.end();
-
- for (; i != end; ++i) {
- SimObject *obj = *i;
- obj->connect();
- }
-}
-
//
// static function: call init() on all SimObjects.
//
// initialization pass of all objects.
// Gets invoked after construction, before unserialize.
virtual void init();
- virtual void connect();
static void initAll();
- static void connectAll();
// register statistics for this object
virtual void regStats();