Eclipse SUMO - Simulation of Urban MObility
Command.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
15 // Base (microsim) event class
16 /****************************************************************************/
17 #ifndef Command_h
18 #define Command_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 
25 #include <utils/common/SUMOTime.h>
27 
28 
29 // ===========================================================================
30 // class definitions
31 // ===========================================================================
52 class Command {
53 public:
55  Command() { }
56 
57 
59  virtual ~Command() { }
60 
61 
72  virtual SUMOTime execute(SUMOTime currentTime) = 0;
73 
74 
75 };
76 
77 
78 #endif
79 
80 /****************************************************************************/
81 
SUMOTime.h
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:34
Command::execute
virtual SUMOTime execute(SUMOTime currentTime)=0
Executes the command.
Command::~Command
virtual ~Command()
Destructor.
Definition: Command.h:59
UtilExceptions.h
Command::Command
Command()
Constructor.
Definition: Command.h:55
Command
Base (microsim) event class.
Definition: Command.h:52