![]() |
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 DtDetonationPdu; 00015 00016 typedef DtDetonationPdu DtDetonationInteraction; 00017 00018 namespace makVrv 00019 { 00020 namespace tutorialDistributedSimulation3A 00021 { 00022 00023 class DistributedSimulationDriver : public DtDriver 00024 { 00025 public: 00026 00028 DistributedSimulationDriver(DtAgentManager& agentManager, const std::string& instanceName); 00029 00031 virtual ~DistributedSimulationDriver(); 00032 00034 virtual const std::string& className() const; 00035 00036 protected: 00037 00040 virtual bool onStart(); 00041 00043 virtual bool onStop(); 00044 00046 virtual bool onTick(); 00047 00050 static void processDetonationCb(DtDetonationInteraction* inter, void* usr); 00051 00054 virtual void processDetonation(DtDetonationInteraction* inter) const; 00055 00056 protected: 00057 00058 DtExerciseConn* myConnection; 00059 bool myConnectionState; 00060 }; 00061 00062 } 00063 }