SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MSTriggeredReader.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // The basic class for classes that read triggers
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
11 // Copyright (C) 2001-2014 DLR (http://www.dlr.de/) and contributors
12 /****************************************************************************/
13 //
14 // This file is part of SUMO.
15 // SUMO is free software: you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation, either version 3 of the License, or
18 // (at your option) any later version.
19 //
20 /****************************************************************************/
21 #ifndef MSTriggeredReader_h
22 #define MSTriggeredReader_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <string>
35 #include <microsim/MSNet.h>
36 
37 
38 // ===========================================================================
39 // class definitions
40 // ===========================================================================
47 public:
49  virtual ~MSTriggeredReader();
50 
51  void init();
52  bool isInitialised() const;
54 
55 protected:
58 
62  virtual bool processNextEntryReaderTriggered() = 0;
63 
65  virtual bool readNextTriggered() = 0;
66 
67  virtual void myInit() = 0;
68 
69  virtual void inputEndReached() = 0;
70 
71 
72 protected:
76 
77 private:
80 
83 
84 
85 };
86 
87 
88 #endif
89 
90 /****************************************************************************/
91 
SUMOTime myOffset
The offset to the next event.
The simulated network and simulation perfomer.
Definition: MSNet.h:91
virtual void myInit()=0
MSTriggeredReader & operator=(const MSTriggeredReader &)
Invalidated assignment operator.
SUMOTime wrappedExecute(SUMOTime current)
virtual bool processNextEntryReaderTriggered()=0
Processes the next event Returns true if the next element shall be read (a new timestemp is then avai...
MSTriggeredReader(MSNet &net)
Constructor (for an abstract class)
virtual void inputEndReached()=0
virtual ~MSTriggeredReader()
Destructor.
bool isInitialised() const
virtual bool readNextTriggered()=0
Reads from the file.