- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# /Users/fpy/titan-1-5-MBARI/Mers/Interfaces/TimedTaskFactory.h

    00001
    00002 //
    00003 // Copyright (c) 2004           Model-based Embedded and Robotic Systems Group
    00004 // All Rights Reserved          Massachusetts Institute of Technology
    00005 //
    00006 // This software is provided as is. Model-based Embedded and Robotic Systems
    00007 // (MERS) group does not assume any responsibility.
    00008 //
    00009 // Organization:        Model-based Embedded and Robotic Systems Group
    00010 //                                      Massachusetts Institute of Technology
    00011 //
    00013
    00014 #ifndef MERS_INTERFACES_TIMED_TASK_FACTORY_HEADERFILE
    00015 #define MERS_INTERFACES_TIMED_TASK_FACTORY_HEADERFILE
    00016
    00017 #include <string>
    00018 #include <vector>
    00019
    00020 #include "TaskFactory.h"
    00021 #include "TimedTask.h"
    00022
    00023 #include <Mers/Utils/Lang/Time.h>
    00024
    00025 namespace Mers {
    00026         namespace Interfaces {
    00027
    00034                 class TimedTaskFactory : public TaskFactory
    00035                 {
    00036                 public:
    00040                         TimedTaskFactory();
    00041
    00045                         virtual ~TimedTaskFactory();
    00046
    00053                         virtual ::Mers::Utils::Containers::SharedPointer< TimedTask >
    00054                                 createTask( const std::string &taskName ) = 0;
    00055
    00064                         virtual ::Mers::Utils::Containers::SharedPointer< TimedTask >
    00065                                 createTask( const std::string &taskName,
    00066                                 std::vector<std::string *> const &parameters ) = 0;
    00067
    00077                         virtual ::Mers::Utils::Containers::SharedPointer< TimedTask >
    00078                                 createTask( const std::string &taskName,
    00079                                 Mers::Utils::Lang::Time const & start,
    00080                                 Mers::Utils::Lang::Time const & duration ) = 0;
    00081
    00093                         virtual ::Mers::Utils::Containers::SharedPointer< TimedTask >
    00094                                 createTask( const std::string &taskName,
    00095                                 std::vector<std::string *> const &parameters,
    00096                                 Mers::Utils::Lang::Time const & start,
    00097                                 Mers::Utils::Lang::Time const & duration ) = 0;
    00098
    00099                 protected:
    00101                         ::Mers::Utils::Lang::Time mStart;
    00103                         ::Mers::Utils::Lang::Time mDuration;
    00104                 };
    00105
    00106         }
    00107 }
    00108
    00109 #endif  // MERS_INTERFACES_TIMED_TASK_FACTORY_HEADERFILE
    00110