VR-Forces 4.0.4 Class Documentation
examples/tutorialDistributedSimulation3B/DistributedSimulationDriver3B.h
Go to the documentation of this file.
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 using namespace makVrv;
00014 
00015 class DtExerciseConn;
00016 class DtDetonationPdu;
00017 
00018 namespace makVrv
00019 {
00020 namespace tutorialDistributedSimulation3B
00021 {
00022 
00023 class DistributedSimulationConnection;
00024 
00025 typedef DtDetonationPdu DtDetonationInteraction;
00026 
00027 class DistributedSimulationDriver : public DtDriver
00028 {
00029 public:
00030 
00032    DistributedSimulationDriver(DtAgentManager& agentManager, const std::string& instanceName);
00033 
00035    virtual ~DistributedSimulationDriver();
00036 
00038    virtual const std::string& className() const;
00039 
00040 protected:
00041 
00044    virtual bool onStart();
00045 
00047    virtual bool onStop();
00048 
00050    virtual bool onTick();
00051 
00052 protected:
00053 
00054    void processInteraction(const DtDetonationInteraction& inter);
00055 
00056 protected:
00057 
00058    DistributedSimulationConnection* mySimulation;
00059 };
00060 
00061 }
00062 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)