20 import ca.uqac.lif.cep.functions.UnaryFunction;
30 public static final NewDay
NEW_DAY =
new NewDay();
40 public static final EpisodeEnd
EPISODE_END =
new EpisodeEnd();
48 public String toString()
60 public String toString()
72 public String toString()
86 protected final int m_value;
92 public Reading(
int value)
99 public String toString()
101 return Integer.toString(m_value);
108 public int getValue()
118 public static class IsNewDay
extends UnaryFunction<PressureEvent,Boolean>
123 public static transient final IsNewDay instance =
new IsNewDay();
133 return x instanceof NewDay;
141 public static class IsReading
extends UnaryFunction<PressureEvent,Boolean>
146 public static transient final IsReading instance =
new IsReading();
148 protected IsReading()
156 return x instanceof Reading;
164 public static class IsEpisodeStart
extends UnaryFunction<PressureEvent,Boolean>
169 public static transient final IsEpisodeStart instance =
new IsEpisodeStart();
171 protected IsEpisodeStart()
179 return x instanceof EpisodeStart;
187 public static class IsEpisodeEnd
extends UnaryFunction<PressureEvent,Boolean>
192 public static transient final IsEpisodeEnd instance =
new IsEpisodeEnd();
194 protected IsEpisodeEnd()
202 return x instanceof EpisodeEnd;
210 public static class GetValue
extends UnaryFunction<Reading,Number>
215 public static transient final GetValue instance =
new GetValue();
219 super(Reading.class, Number.class);
223 public Number getValue(Reading x)
Abstract class representing events in a pressure stream.
static final EpisodeStart EPISODE_START
Static reference to an "episode start" event.
static final EpisodeEnd EPISODE_END
Static reference to an "episode end" event.
static final NewDay NEW_DAY
Static reference to a "new day" event.