test.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 TEST_H
21 #define TEST_H
22 
23 #include "state.h"
24 #include "temporaltransition.h"
25 #include "conditionaltransition.h"
26 #include "interfaces.h"
27 
28 #include <jderobot/motors.h>
29 
30 class State0 : public State {
31 public:
32  State0(int id, bool initial, Interfaces* interfaces, int cycleDuration, State* parent, RunTimeGui* gui):State(id, initial, interfaces, cycleDuration, parent, gui) {}
33  virtual void runCode();
34 };
35 
36 class State1 : public State {
37 public:
38  State1(int id, bool initial, Interfaces* interfaces, int cycleDuration, State* parent, RunTimeGui* gui):State(id, initial, interfaces, cycleDuration, parent, gui) {}
39  virtual void runCode();
40 };
41 
42 class State2 : public State {
43 public:
44  State2(int id, bool initial, Interfaces* interfaces, int cycleDuration, State* parent, RunTimeGui* gui):State(id, initial, interfaces, cycleDuration, parent, gui) {}
45  virtual void runCode();
46 };
47 
48 class Tran0 : public ConditionalTransition {
49 public:
50  Tran0(int id, int destId, Interfaces* interfaces):ConditionalTransition(id, destId, interfaces) {}
51  virtual void init();
52  virtual bool checkCondition();
53  virtual void runCode();
54 };
55 
56 class MyInterfaces : public Interfaces {
57 public:
58  jderobot::MotorsPrx myMotors;
59 
60  virtual void connectProxies(int argc, char* argv[]);
61  virtual void destroyProxies();
62 
63 };
64 
65 #endif
void init()
Definition: state.cpp:39
jderobot::MotorsPrx myMotors
Definition: test.h:58
bool initial
Definition: state.h:35
Definition: test.h:30
Tran0(int id, int destId, Interfaces *interfaces)
Definition: test.h:50
State2(int id, bool initial, Interfaces *interfaces, int cycleDuration, State *parent, RunTimeGui *gui)
Definition: test.h:44
RunTimeGui * gui
Definition: state.h:43
State * parent
Definition: state.h:33
Definition: state.h:28
State1(int id, bool initial, Interfaces *interfaces, int cycleDuration, State *parent, RunTimeGui *gui)
Definition: test.h:38
Definition: test.h:48
Definition: test.h:42
virtual void runCode()
Definition: test.cpp:26
int cycleDuration
Definition: state.h:37
Definition: test.h:36
State0(int id, bool initial, Interfaces *interfaces, int cycleDuration, State *parent, RunTimeGui *gui)
Definition: test.h:32


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