![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2011 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 00008 00009 #pragma once 00010 00011 #include <vrvCore/DtDriver.h> 00012 00013 class DtExerciseConn; 00014 class DtReflectedEntity; 00015 class DtReflectedEntityList; 00016 00017 namespace makVrv 00018 { 00019 namespace tutorialDistributedSimulation3C 00020 { 00021 00022 class DistributedSimulationDriver : public DtDriver 00023 { 00024 public: 00025 00027 DistributedSimulationDriver(DtAgentManager& agentManager, const std::string& instanceName); 00028 00030 virtual ~DistributedSimulationDriver(); 00031 00033 virtual const std::string& className() const; 00034 00035 protected: 00036 00039 virtual bool onStart(); 00040 00042 virtual bool onStop(); 00043 00045 virtual bool onTick(); 00046 00047 static void processReflectedEntityAdditionCb(DtReflectedEntity *reflectedObj, void *usr); 00048 static void processReflectedEntityRemovalCb(DtReflectedEntity *reflectedObj, void *usr); 00049 00050 virtual void processReflectedEntityAdd(DtReflectedEntity *reflectedObj) const; 00051 virtual void processReflectedEntityRemove(DtReflectedEntity *reflectedObj) const; 00052 00053 protected: 00054 00055 DtExerciseConn* myConnection; 00056 bool myConnectionState; 00057 DtReflectedEntityList* myReflectedEntityList; 00058 }; 00059 00060 } 00061 }