10 #ifndef lgrSimInterface_H_
11 #define lgrSimInterface_H_
19 #include <vlutil/vlString.h>
20 #include <vlutil/vlTime.h>
28 class DtLgrSimCommandFactory;
29 class DtLgrPacketFilter;
58 virtual DtString protocolName() const;
61 virtual
void connect() const;
65 bool allowDrainInput,
bool allowSetSimTime,
bool allowUnsubscribe) const;
68 virtual
void disconnect() const;
71 virtual
void getLoggerName(DtString& name) const = 0;
74 virtual
bool isConnected() const;
77 virtual
void setDumpFilename(const DtString&);
80 virtual
bool processRemoteControls() const;
84 virtual
bool recordRemoteControls() const;
87 virtual
bool allowAllRemoteControls() const;
90 virtual
bool allowRemoteDelete() const;
93 virtual
int remoteControlId() const;
96 virtual
bool sendResponses() const;
99 virtual
bool crippleGui() const;
102 virtual
bool useLegacyPdu() const;
105 virtual DtTime connectSendInterval() const;
108 virtual DtTime heartbeatSendInterval() const;
111 virtual
bool useSimChannel() const;
114 virtual
bool useBackChannel() const;
117 virtual const DtString& backChannelAddress() const;
120 virtual
int backChannelPort() const;
123 virtual const DtString& backChannelInterface() const;
126 virtual
int backChannelTickBudget() const;
129 virtual
void setRemoteControlSettings(
bool useSimChannel,
bool useBackChannel,
bool record,
130 bool allowDelete,
bool allowAll,
bool sendResponses,
bool crippleGui,
bool useLegacyPdu,
131 DtTime connectSendInterval, DtTime heartbeatSendInterval) const;
134 virtual
void addFilteredEntityName(const DtString& name) const;
137 virtual
void clearFilteredEntityNames() const;
155 virtual
int filterCount() const;
162 virtual
void setScaleAttributes(
bool scale) const;
165 virtual
bool scaleAttributes() const;
168 virtual
bool networkActivity() const;
171 virtual
void setSaveConnectionConfiguration(
bool saveConnectConfig) const;
174 virtual
bool saveConnectConfiguration() const;
177 virtual
void setSaveIndexConfiguration(
bool saveIndexConfig) const;
180 virtual
bool saveIndexConfiguration() const;
183 virtual
void setSaveProtocolConfiguration(
bool saveProtocolConfig) const;
186 virtual
bool saveProtocolConfiguration() const;
189 virtual
void setListenWhenIdle(
bool listen) const;
192 virtual
bool listenWhenIdle() const;
195 virtual
bool staticDROnPause() const;
198 virtual
void setStaticDROnPause(
bool staticDRAlgorithm) const;
202 virtual
void setReactToSimulationManagement(
bool react) const;
206 virtual
bool reactToSimulationManagement() const;
218 virtual
void addTemporaryTrackedEntity(const DtString& name) const;
221 virtual
bool connectionSettingsMatchInputFile( DtString& filename);
224 virtual
void useRecommendedSettings();
227 virtual EntityTrackerUpdateId entityTrackerUpdateId() const;
255 void connectResponseHandlers();
264 void updatedEntityTracker(DtResponse response);
265 void connected(DtResponse);
266 void disconnected(DtResponse);
267 void unableToConnect(DtResponse);
268 void lostConnection(DtResponse);
269 void filterAdded(DtResponse);
270 void filterRemoved(DtResponse);
271 void filterModified(DtResponse);
272 void remoteControlsChanged(DtResponse);
273 void activityChanged(DtResponse);
274 void scaleAttributesChanged(DtResponse);
275 void remoteControlIdChanged(DtResponse);
276 void backChannelConnectionChanged(DtResponse);
277 void saveConnectConfigurationChanged(DtResponse response);
278 void saveIndexConfigurationChanged(DtResponse response);
279 void saveProtocolConfigurationChanged(DtResponse response);
280 void listenWhenIdleChanged(DtResponse response);
281 void staticDROnPauseChanged(DtResponse response);
282 void reactToSimulationManagementChanged(DtResponse response);
283 void simanRequestSaveAs(DtResponse response);
288 bool myConnectedFlag;
289 bool myFailedConnectFlag;
291 bool myRecordRemoteControls;
292 bool myAllowAllRemoteControls;
293 bool myAllowRemoteDelete;
294 bool mySendResponses;
297 bool myUseSimChannel;
298 bool myUseBackChannel;
299 bool mySaveConnectConfiguration;
300 bool mySaveIndexConfiguration;
301 bool mySaveProtocolConfiguration;
302 bool myListenWhenIdle;
303 bool myStaticDROnPause;
304 bool myReactToSimulationManagement;
305 bool mySimanRequestSaveAsPending;
306 DtString myBackChannelAddress;
307 DtString myBackChannelInterface;
308 int myBackChannelPort;
309 int myBackChannelTickBudget;
310 DtTime myConnectSendInterval;
311 DtTime myHeartbeatSendInterval;
313 bool myScaleAttributes;
315 DtString myDumpFilename;
317 FilterTypeList myFilterList;
319 int myEntityTrackerUpdateId;
320 int myRemoteControlId;
int EntityTrackerUpdateId
Definition: lgrSimInterface.h:226
The class responsible for interfacing with the simulation in a protocol independent manner...
Definition: lgrSimInterface.h:34
#define DT_PURE_VIRTUAL_CTR(CLASS_NAME, ARG_TYPES_LIST)
Declare a pure virtual constructor.
Definition: virtualConstructor.h:138
Contains MAKLogger::DtSlot and MAKLogger::DtFunctionSlot and MAKLogger::DtMemberSlot and MAKLogger::S...
The base class for command interface which allows an interface to send and receive commands...
Definition: lgrInterface.h:33
The abstract interface for the class responsible for controlling the simulation.
Definition: lgrSimDriver.h:37
DtLgrSimCommandFactory Factory
The factory type of this object.
Definition: lgrSimInterface.h:39
std::list< DtLgrPacketFilter * > FilterTypeList
Definition: lgrSimInterface.h:316
Contains DT_VIRTUAL_CTR DT_VIRTUAL_CTR_DEFAULTS DT_VIRTUAL_COPY_ASSIGN DT_VIRTUAL_BASE_CTR DT_PURE_VI...
Base interface class for packet filters.
Definition: lgrPacketFilter.h:25
Contains MAKLogger::DtLgrEntityTracker class.
#define DT_DLL_LGRCORE
Definition: lgrCore.h:19
Indexes packets in a file.
Definition: lgrEntityTracker.h:32
unsigned char DtLgrProtocolId
Definition: lgrCommand.h:24
std::shared_ptr< const DtCommand > DtResponse
Definition: lgrCommand.h:175
DtLogger provides the core system structure and controls the execution model for the underlying objec...
Definition: logger.h:35
The factory responsible for creating simulation commands.
Definition: lgrSimCommandFactory.h:21
short DtLgrCommandId
Definition: lgrCommand.h:25
Contains MAKLogger::DtCommandInterface class.
Contains lgrCore library definitions.
Definition: signalSlot.h:164