MaxDelaySensor.h 473 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
// MaxDelaySensor.h

#ifndef MAX_DELAY_SENSOR_H_STUB_2
#define MAX_DELAY_SENSOR_H_STUB_2

#include "Sensor.h"
#include "Decayer.h"

class DelaySensor;
10
class StateSensor;
11 12 13 14

class MaxDelaySensor : public Sensor
{
public:
15
  MaxDelaySensor(DelaySensor * newDelay, StateSensor * newState);
16 17 18 19 20 21
protected:
  virtual void localSend(PacketInfo * packet);
  virtual void localAck(PacketInfo * packet);
private:
  Decayer maximum;
  DelaySensor * delay;
22
  StateSensor * state;
23 24 25
};

#endif