VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simComponentNetwork.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 #include <vlutil/vlList.h>
15 #include <list>
17 
18 class DtSimComponent;
19 class DtVrfObject;
20 class DtSimComponentList;
22 class DtString;
24 class DtPortConnection;
28 
34 {
35 private:
37 
40  DtSimComponentNetwork& operator=(const DtSimComponentNetwork& orig);
42 
43 public:
44 
45 
46  DtSimComponentNetwork(DtVrfObject* vrfObject, DtComponentSystem* parentSystem);
47  virtual ~DtSimComponentNetwork();
48 
49  virtual bool init();
50 
51  virtual void tick(bool hostDestroyed);
52 
54  virtual bool postAddComponentsInit();
55 
56  virtual bool addSensorComponent(DtSimComponent * component);
57  virtual bool addControllerComponent(DtSimComponent * component);
58  virtual bool addActuatorComponent(DtSimComponent * component);
59 
63  virtual bool removeSensorComponent(DtSimComponent * component);
67  virtual bool removeControllerComponent(DtSimComponent * component);
71  virtual bool removeActuatorComponent(DtSimComponent * component);
72 
76  virtual DtSimComponent * lookupComponent(const DtString& name) const;
77 
80  virtual std::list<DtSimComponent*> lookupComponentsByType(const DtString & typeString);
81 
83  virtual DtComponentSystem* lookupComponentSystem(const DtString& name) const;
84  virtual const DtComponentSystemList* componentSystemList() const;
85 
86  virtual DtSimComponentList * sensorComponentList() const;
87  virtual DtControllerComponentList * controllerComponentList() const;
88  virtual DtSimComponentList * actuatorComponentList() const;
89 
91  virtual int createComponentsFromList(
92  const DtComponentDescriptorList& descList, DtSimComponentList* destination,
93  int& priority, bool remoteOnly);
94 
102  virtual int createSystemsFromList(const DtComponentSystemDescriptorList& descList,
103  int& priority, bool remoteOnly);
104 
114  virtual bool createComponentConnection(const DtString& source,
115  const DtString& destination, int warningLevel = 1);
116 
120  virtual void createConnectionsFromList(const DtConnectionDescriptorList&
121  descList, bool suppressErrorMsgs = false);
122 
125  virtual void disconnectComponent(DtSimComponent *component);
126 
128  virtual void removeConnection(DtPortConnection* conn);
129 
132  virtual void removeConnection(DtPortGroupConnection* conn);
133 
135 
136  virtual void enable();
137  virtual void disable();
139 
140 protected:
144  virtual bool createComponentConnection(DtSimComponent* sourceComp, const DtString& sourcePortName,
145  DtSimComponent* destComponent, const DtString& destPortName, DtString& errorString);
146 
147  virtual bool createSensorComponentList();
148  virtual bool createControllerComponentList();
149  virtual bool createActuatorComponentList();
150 
151 protected:
152 
153 
158 
161 };
Class Description: DtControllerComponentList.
Definition: controllerComponentList.h:38
DtVrfObject * myVrfObject
Definition: simComponentNetwork.h:159
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtControllerComponentList * myControllerComponentList
Definition: simComponentNetwork.h:155
A set of DtSimComponent and DtComponentSystem instances that are connected with a set of connections...
Definition: simComponentNetwork.h:33
A DtComponentSystem is a collection of DtSimComponents that are associated with each other...
Definition: componentSystem.h:35
List of DtComponentSystemDescriptor instances.
Definition: componentSystemDescriptorList.h:20
Instances of DtComponentDescriptorList are readable/writeable lists of DtComponentDescriptor objects...
Definition: componentDescriptorList.h:22
std::list< DtComponentSystem * > DtComponentSystemList
Definition: componentSystem.h:292
Class Description: DtSimComponentList.
Definition: simComponentList.h:42
A DtPortConnection represents a connection between a DtOutputPort and a DtInputPort.
Definition: portConnection.h:29
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
const char * source
Definition: lz4.h:442
Instances of DtConnectionDescriptorList are readable/writeable lists of DtConnectionDescriptor object...
Definition: connectionDescriptorList.h:22
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtSimComponentList * mySensorComponentList
Definition: simComponentNetwork.h:154
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
DtSimComponentList * myActuatorComponentList
Definition: simComponentNetwork.h:156
Definition: portGroupConnection.h:25
DtComponentSystemList mySystemList
Definition: simComponentNetwork.h:157
DtComponentSystem * myParentSystem
Definition: simComponentNetwork.h:160

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)