transition.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 1997-2017 JDERobot Developers Team
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU Library General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, see <http://www.gnu.org/licenses/>.
16 
17  Authors : Okan Asik (asik.okan@gmail.com)
18 
19 */
20 #ifndef TRANSITION_H
21 #define TRANSITION_H
22 
23 class State;
24 
25 class Transition {
26 protected:
27  int id;
29 
30 public:
31  Transition(int id, int destinationId);
32 
33  int getDestinationId();
34 
35  virtual void init() = 0;
36  virtual void runCode() = 0;
37  virtual bool checkCondition() = 0;
38 };
39 
40 #endif
virtual void runCode()=0
int getDestinationId()
Definition: transition.cpp:27
virtual void init()=0
Definition: state.h:28
Transition(int id, int destinationId)
Definition: transition.cpp:22
virtual bool checkCondition()=0
int destinationId
Definition: transition.h:28


visualstates
Author(s):
autogenerated on Thu Apr 1 2021 02:42:20