VR-Forces 4.2 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 
100  virtual DtComponentSystem* lookupSystem(const std::string& printName);
101 
103  virtual std::list<std::string> getSystemNames() const;
104 
105  virtual DtSimComponentList * sensorComponentList() const;
106  virtual DtControllerComponentList * controllerComponentList() const;
107  virtual DtSimComponentList * actuatorComponentList() const;
108 
111 
112  virtual DtComponentSystem* baseSystem();
113  virtual const DtComponentSystem* baseSystem() const;
115 
118  virtual DtString type() const;
119 
120  virtual DtList* connectionList();
121  virtual DtList* groupConnectionList();
122 
127  static DtSimComponentManagerFactory * factory();
128  static void setFactory(DtSimComponentManagerFactory * factory);
129 
130  static void addSimComponentManagerCreatorFcn(const DtString & type,
132 
133  static DtSimComponentManager * creator(DtVrfObject * vrfObject);
134 
136  static DtSimComponentManager * createComponentManager(const DtString & type,
137  DtVrfObject * vrfObject);
138 
141  virtual void allSystems(DtComponentSystemList&);
142 
143 protected:
146  virtual void allSystems(DtComponentSystemList&, DtComponentSystem*);
147 
148 protected:
151 
154 
156 };
157 
158 #endif
159 

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)