SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
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
// ===========================================================================
46
class
MSTriggeredReader
{
47
public
:
49
virtual
~MSTriggeredReader
();
50
51
void
init
();
52
bool
isInitialised
()
const
;
53
SUMOTime
wrappedExecute
(
SUMOTime
current);
54
55
protected
:
57
MSTriggeredReader
(
MSNet
& net);
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
:
74
SUMOTime
myOffset
;
75
bool
myWasInitialised
;
76
77
private
:
79
MSTriggeredReader
(
const
MSTriggeredReader
&);
80
82
MSTriggeredReader
&
operator=
(
const
MSTriggeredReader
&);
83
84
85
};
86
87
88
#endif
89
90
/****************************************************************************/
91
tmp
buildd
sumo-0.21.0+dfsg
src
microsim
trigger
MSTriggeredReader.h
Generated on Thu Nov 20 2014 19:49:56 for SUMO - Simulation of Urban MObility by
1.8.1.2