java.lang.Object
io.github.romanhaendler.rbed.Expression
- Direct Known Subclasses:
ChannelExpression,EventCount
A numeric value derived from the current Sample; undefined while the data it needs is not
available. A
Channel is one; others derive from it or come from Conditions.-
Method Summary
Modifier and TypeMethodDescriptionabove(double limit) True when this value is strictly greater thanlimit.above(Expression other) True when this value is strictly greater thanother.abs()The absolute value.below(double limit) True when this value is strictly less thanlimit.below(Expression other) True when this value is strictly less thanother.between(double low, double high) True whenlow <= value <= high.dividedBy(double c) This value divided byc; undefined whencis 0.dividedBy(Expression other) This value divided byother; undefined whenotheris 0.minus(double c) This value minusc.minus(Expression other) This value minusother.plus(double c) This value plusc.plus(Expression other) This value plusother.times(double c) This value timesc.times(Expression other) This value timesother.toString()How this Expression is written in Java, such astemp.averageOverSamples(5),temp.minus(5.0)orcount(Run).within(60000): a Channel and a Rule by their names, a constant as adouble(plus(5)readsplus(5.0)), a duration in milliseconds (also when given as aDuration).
-
Method Details
-
above
True when this value is strictly greater thanlimit. -
above
True when this value is strictly greater thanother. -
below
True when this value is strictly less thanlimit. -
below
True when this value is strictly less thanother. -
between
True whenlow <= value <= high. -
plus
This value plusother. -
plus
This value plusc. -
minus
This value minusother. -
minus
This value minusc. -
times
This value timesother. -
times
This value timesc. -
dividedBy
This value divided byother; undefined whenotheris 0. -
dividedBy
This value divided byc; undefined whencis 0. -
abs
The absolute value. -
toString
How this Expression is written in Java, such astemp.averageOverSamples(5),temp.minus(5.0)orcount(Run).within(60000): a Channel and a Rule by their names, a constant as adouble(plus(5)readsplus(5.0)), a duration in milliseconds (also when given as aDuration). Error messages use it to name the Expression. Names are printed as they are, so two different Expressions can print alike (a Channel namedx.abs()andx.abs()on Channelx); the Snapshot fingerprint therefore does not use this text.
-