tasks_test.hpp
Go to the documentation of this file.
00001 /***************************************************************************
00002   tag: Peter Soetens  Mon Jan 10 15:59:18 CET 2005  tasks_test.hpp
00003 
00004                         tasks_test.hpp -  description
00005                            -------------------
00006     begin                : Mon January 10 2005
00007     copyright            : (C) 2005 Peter Soetens
00008     email                : peter.soetens@mech.kuleuven.ac.be
00009 
00010  ***************************************************************************
00011  *                                                                         *
00012  *   This program is free software; you can redistribute it and/or modify  *
00013  *   it under the terms of the GNU General Public License as published by  *
00014  *   the Free Software Foundation; either version 2 of the License, or     *
00015  *   (at your option) any later version.                                   *
00016  *                                                                         *
00017  ***************************************************************************/
00018 
00019 
00020 #ifndef TASKSTEST_H
00021 #define TASKSTEST_H
00022 
00023 #include <RTT.hpp>
00024 #include <extras/PeriodicActivity.hpp>
00025 #include <extras/SimulationActivity.hpp>
00026 #include <Activity.hpp>
00027 
00028 using namespace RTT;
00029 using namespace RTT::detail;
00030 
00031 struct TestRunnableInterface;
00032 struct TestSelfRemove;
00033 
00034 class ActivitiesTest
00035 {
00036 public:
00037     PeriodicActivity*   periodic_act;
00038     Activity*           t_act;
00039 
00040     TestRunnableInterface*  t_run_int_prio;
00041     TestRunnableInterface*  t_run_int_fail;
00042     TestRunnableInterface*  t_run_int_act;
00043 
00044     RunnableInterface* t_run_allocate;
00045     RunnableInterface* t_run_allocate_act;
00046     TestSelfRemove* t_self_remove;
00047 
00048     ActivitiesTest(){setUp();};
00049     ~ActivitiesTest(){tearDown();};
00050 
00051     void setUp();
00052     void tearDown();
00053 
00054     void testOverrun();
00055 
00056     void testStartStop();
00057     void testStart();
00058     void testPause();
00059     void testStop();
00060 
00061     void testSelfRemove();
00062 
00063     void testNonPeriodic();
00064 
00065     void testThread();
00066     void testActivityNP();
00067     void testActivityNPSelfRemove();
00068     void testActivityPSelfRemove();
00069     void testActivityBreakLoop();
00070 
00071     void testAllocation();
00072     void testRemoveAllocate();
00073     void testAddAllocate();
00074 
00075     void testFailInit();
00076     void testRunnableInterface();
00077     void testAddRunnableInterface();
00078     void testRunnableInterfaceInit();
00079     void testRunnableInterfaceExecution();
00080     void testRemoveRunnableInterface();
00081 
00082 };
00083 
00084 #endif


rtt
Author(s): RTT Developers
autogenerated on Thu Jan 2 2014 11:35:40