VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simComponentManager.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 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"
21 
22 class DtSimComponent;
23 class DtSimComponentList;
27 class DtPortConnection;
31 class DtCriticalSection;
32 
37 {
38 private:
40 
43  const DtSimComponentManager & operator=(const DtSimComponentManager &
44  orig);
46 
47 public:
48 
51 
53  virtual ~DtSimComponentManager();
54 
55  virtual bool init();
56 
57  virtual void tick();
58 
61  virtual DtVrfObject * vrfObject() const;
62 
63  virtual bool addComponents();
64 
65  virtual bool addSensorComponent(DtSimComponent * component);
66  virtual bool addControllerComponent(DtSimComponent * component);
67  virtual bool addActuatorComponent(DtSimComponent * component);
68 
72  virtual bool removeSensorComponent(DtSimComponent * component);
76  virtual bool removeControllerComponent(DtSimComponent * component);
80  virtual bool removeActuatorComponent(DtSimComponent * component);
81 
83  virtual bool hasComponents() const;
84 
87  virtual std::list<DtSimComponent*> lookupComponentsByType(const DtString& typeString);
88 
95  virtual DtSimComponent * lookupComponent(const DtString& name) const;
96 
105  virtual DtComponentSystem* lookupSystem(const std::string& printName);
106 
108  virtual std::list<std::string> getSystemNames() const;
109 
110  virtual DtSimComponentList * sensorComponentList() const;
111  virtual DtControllerComponentList * controllerComponentList() const;
112  virtual DtSimComponentList * actuatorComponentList() const;
113 
116 
117  virtual DtComponentSystem* baseSystem();
118  virtual const DtComponentSystem* baseSystem() const;
120 
123  virtual DtString type() const;
124 
125  virtual DtList* connectionList();
126  virtual DtList* groupConnectionList();
127 
132  static DtSimComponentManagerFactory * factory();
133  static void setFactory(DtSimComponentManagerFactory * factory);
134 
135  static void addSimComponentManagerCreatorFcn(const DtString & type,
137 
138  static DtSimComponentManager * creator(DtVrfObject * vrfObject);
139 
141  static DtSimComponentManager * createComponentManager(const DtString & type,
142  DtVrfObject * vrfObject);
143 
146  virtual void allSystems(DtComponentSystemList&);
147 
148 protected:
151  virtual void allSystems(DtComponentSystemList&, DtComponentSystem*);
152 
153 protected:
156 
159 
161 };
162 
163 #endif
164 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)