VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
metricCollector.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <iostream>
5 #include <fstream>
6 
7 class DtCgf;
8 class DtScenario;
9 class DtVrfObject;
11 
12 // Class which collects metrics on particular objects.
14 {
15 public:
17 
18  virtual ~DtMetricCollector();
19 
20  // A tick callback is installed with the main VRF system to get called each
21  // simulation tick and check the metrics.
22  static void tickCallback(void* usr);
23  virtual void tick();
24 
25  // Callbacks to manage scenario start/end conditions.
26  // The metrics output file is restarted each time a scenario is started.
27  static void postLoadCallback(const DtScenario& scenario, void* usr);
28  virtual void processLoad(const DtScenario& scenario);
29  static void preCloseCallback(void* usr);
30  virtual void processClose();
31 
32  virtual void printLocationAndContacts(DtVrfObject* entity);
33  virtual void printContact(DtRwSensorContactInfo* contact);
34 
35 protected:
37  std::ofstream myOutputFile;
39 
40 
41 };

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)