Jeff Thompson | fa30664 | 2013-06-17 15:06:57 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /* |
| 3 | * Copyright (c) 2013, Regents of the University of California |
| 4 | * Alexander Afanasyev |
| 5 | * Zhenkai Zhu |
| 6 | * |
| 7 | * BSD license, See the LICENSE file for more information |
| 8 | * |
| 9 | * Author: Zhenkai Zhu <zhenkai@cs.ucla.edu> |
| 10 | * Alexander Afanasyev <alexander.afanasyev@ucla.edu> |
| 11 | */ |
| 12 | |
| 13 | #ifndef SIMPLE_INTERVAL_GENERATOR_H |
| 14 | #define SIMPLE_INTERVAL_GENERATOR_H |
| 15 | |
| 16 | #include "interval-generator.h" |
| 17 | |
| 18 | class SimpleIntervalGenerator : public IntervalGenerator |
| 19 | { |
| 20 | public: |
| 21 | SimpleIntervalGenerator(double interval) : m_interval (interval) {} |
| 22 | virtual ~SimpleIntervalGenerator() {} |
| 23 | |
| 24 | virtual double |
| 25 | nextInterval() _OVERRIDE { return m_interval; } |
| 26 | |
| 27 | private: |
| 28 | double m_interval; |
| 29 | }; |
| 30 | |
| 31 | #endif // SIMPLE_INTERVAL_GENERATOR_H |