VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
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 
86  virtual std::list<DtSimComponent*> lookupComponentsByType(const DtString& typeString);
87 
94  virtual DtSimComponent * lookupComponent(const DtString& name) const;
95 
104  virtual DtComponentSystem* lookupSystem(const std::string& printName);
105 
107  virtual std::list<std::string> getSystemNames() const;
108 
109  virtual DtSimComponentList * sensorComponentList() const;
110  virtual DtControllerComponentList * controllerComponentList() const;
111  virtual DtSimComponentList * actuatorComponentList() const;
112 
115 
116  virtual DtComponentSystem* baseSystem();
117  virtual const DtComponentSystem* baseSystem() const;
119 
122  virtual DtString type() const;
123 
124  virtual DtList* connectionList();
125  virtual DtList* groupConnectionList();
126 
131  static DtSimComponentManagerFactory * factory();
132  static void setFactory(DtSimComponentManagerFactory * factory);
133 
134  static void addSimComponentManagerCreatorFcn(const DtString & type,
136 
137  static DtSimComponentManager * creator(DtVrfObject * vrfObject);
138 
140  static DtSimComponentManager * createComponentManager(const DtString & type,
141  DtVrfObject * vrfObject);
142 
145  virtual void allSystems(DtComponentSystemList&);
146 
147 protected:
150  virtual void allSystems(DtComponentSystemList&, DtComponentSystem*);
151 
152 protected:
155 
158 
160 };
161 
162 #endif
163 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)