ROME2 Lab3

TaskWait.h

Committer:
oehlemar
Date:
2020-03-25
Revision:
2:fc9e2aebf9d5
Parent:
0:6a4d3264c067

File content as of revision 2:fc9e2aebf9d5:

/*
 * TaskWait.h
 * Copyright (c) 2020, ZHAW
 * All rights reserved.
 */

#ifndef TASK_WAIT_H_
#define TASK_WAIT_H_

#include <cstdlib>
#include "Controller.h"
#include "Task.h"

/**
 * This is a specific implementation of a task class that waits for a given duration.
 */
class TaskWait : public Task {
    
    public:
        
                        TaskWait(Controller& controller, float duration);
        virtual         ~TaskWait();
        virtual int     run(float period);
        
    private:
        
        Controller&     controller;
        float           duration;
        float           time;
};

#endif /* TASK_WAIT_H_ */