VR-Forces 4.1.1 Class Documentation
compMgr.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2000 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: compMgr.h,v $ $Revision: 1.27 $ $State: Exp $
7 *******************************************************************************/
8 
11 
13 
14 #ifndef DtSimComponentManager_H_
15 #define DtSimComponentManager_H_
16 
17 #include "vrfobjcore/vrfObject.h"
18 #include "vrfobjcore/cmpMgrFact.h"
20 #include "vrfobjcore/compSystem.h"
21 
22 class DtSimComponent;
23 class DtSimComponentList;
27 class DtPortConnection;
31 
36 {
37 private:
39 
42  const DtSimComponentManager & operator=(const DtSimComponentManager &
43  orig);
45 
46 public:
47 
50 
52  virtual ~DtSimComponentManager();
53 
54  virtual bool init();
55 
56  virtual void tick();
57 
60  virtual DtVrfObject * vrfObject() const;
61 
62  virtual bool addComponents();
63 
64  virtual bool addSensorComponent(DtSimComponent * component);
65  virtual bool addControllerComponent(DtSimComponent * component);
66  virtual bool addActuatorComponent(DtSimComponent * component);
67 
71  virtual bool removeSensorComponent(DtSimComponent * component);
75  virtual bool removeControllerComponent(DtSimComponent * component);
79  virtual bool removeActuatorComponent(DtSimComponent * component);
80 
82  virtual bool hasComponents() const;
83 
90  virtual DtSimComponent * lookupComponent(const DtString& name) const;
91 
92  virtual DtSimComponentList * sensorComponentList() const;
93  virtual DtControllerComponentList * controllerComponentList() const;
94  virtual DtSimComponentList * actuatorComponentList() const;
95 
98 
99  virtual DtComponentSystem* baseSystem();
100  virtual const DtComponentSystem* baseSystem() const;
102 
105  virtual DtString type() const;
106 
107  virtual DtList* connectionList();
108  virtual DtList* groupConnectionList();
109 
114  static DtSimComponentManagerFactory * factory();
115  static void setFactory(DtSimComponentManagerFactory * factory);
116 
117  static void addSimComponentManagerCreatorFcn(const DtString & type,
119 
120  static DtSimComponentManager * creator(DtVrfObject * vrfObject);
121 
123  static DtSimComponentManager * createComponentManager(const DtString & type,
124  DtVrfObject * vrfObject);
125 
128  virtual void allSystems(DtComponentSystemList&);
129 
130 protected:
133  virtual void allSystems(DtComponentSystemList&, DtComponentSystem*);
134 
135 protected:
138 
141 
143 };
144 
145 #endif
146 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)