tasks_test.hpp
Go to the documentation of this file.
1 /***************************************************************************
2  tag: Peter Soetens Mon Jan 10 15:59:18 CET 2005 tasks_test.hpp
3 
4  tasks_test.hpp - description
5  -------------------
6  begin : Mon January 10 2005
7  copyright : (C) 2005 Peter Soetens
8  email : peter.soetens@mech.kuleuven.ac.be
9 
10  ***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  ***************************************************************************/
18 
19 
20 #ifndef TASKSTEST_H
21 #define TASKSTEST_H
22 
23 #include <RTT.hpp>
26 #include <Activity.hpp>
27 
28 using namespace RTT;
29 using namespace RTT::detail;
30 
32 struct TestSelfRemove;
33 
35 {
36 public:
39 
43 
47 
48  ActivitiesTest(){setUp();};
49  ~ActivitiesTest(){tearDown();};
50 
51  void setUp();
52  void tearDown();
53 
54  void testOverrun();
55 
56  void testStartStop();
57  void testStart();
58  void testPause();
59  void testStop();
60 
61  void testSelfRemove();
62 
63  void testNonPeriodic();
64 
65  void testThread();
66  void testActivityNP();
67  void testActivityNPSelfRemove();
68  void testActivityPSelfRemove();
69  void testActivityBreakLoop();
70 
71  void testAllocation();
72  void testRemoveAllocate();
73  void testAddAllocate();
74 
75  void testFailInit();
76  void testRunnableInterface();
77  void testAddRunnableInterface();
78  void testRunnableInterfaceInit();
79  void testRunnableInterfaceExecution();
80  void testRemoveRunnableInterface();
81 
82 };
83 
84 #endif
TestSelfRemove * t_self_remove
Definition: tasks_test.hpp:46
A class for running a certain piece of code in a thread.
PeriodicActivity * periodic_act
Definition: tasks_test.hpp:37
TestRunnableInterface * t_run_int_fail
Definition: tasks_test.hpp:41
Activity * t_act
Definition: tasks_test.hpp:38
A PeriodicActivity is the general implementation of a Activity which has (realtime) periodic constrai...
An Activity executes a RunnableInterface object in a (periodic) thread.
Definition: Activity.hpp:70
RunnableInterface * t_run_allocate
Definition: tasks_test.hpp:44
RunnableInterface * t_run_allocate_act
Definition: tasks_test.hpp:45
TestRunnableInterface * t_run_int_act
Definition: tasks_test.hpp:42
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
Definition: Activity.cpp:53
TestRunnableInterface * t_run_int_prio
Definition: tasks_test.hpp:40


rtt
Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:37