blob: c7a9e77ffd2fdbb519e0ae5910d5220f880d44b4 [file] [log] [blame]
Jeff Thompsonfa306642013-06-17 15:06:57 -07001/* -*- 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
18class SimpleIntervalGenerator : public IntervalGenerator
19{
20public:
21 SimpleIntervalGenerator(double interval) : m_interval (interval) {}
22 virtual ~SimpleIntervalGenerator() {}
23
24 virtual double
25 nextInterval() _OVERRIDE { return m_interval; }
26
27private:
28 double m_interval;
29};
30
31#endif // SIMPLE_INTERVAL_GENERATOR_H