Browse Source

Further commenting in FilterOperator.

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@11014 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 11 years ago
parent
commit
4449ad4cd1
  1. 60
      prism/src/parser/ast/ExpressionFilter.java

60
prism/src/parser/ast/ExpressionFilter.java

@ -33,62 +33,38 @@ import prism.PrismLangException;
public class ExpressionFilter extends Expression public class ExpressionFilter extends Expression
{ {
/**
* Types of filter, for expressions of the form "filter(op, prop, states)",
* with filter states "states" being optional (denoting "true").
*/
public enum FilterOperator { public enum FilterOperator {
/**
* minimum value of prop over all filter states
*/
/** Minimum value of prop over all filter states */
MIN, MIN,
/**
* maximum value of prop over all filter states
*/
/** Maximum value of prop over all filter states */
MAX, MAX,
/**
* true for the filter states that yield the minimum value of prop
*/
/** True for the filter states that yield the minimum value of prop */
ARGMIN, ARGMIN,
/**
* true for the filter states that yield the maximum value of prop
*/
/** True for the filter states that yield the maximum value of prop */
ARGMAX, ARGMAX,
/**
* number of filter states for which prop is true
*/
/** Number of filter states for which prop is true */
COUNT, COUNT,
/**
* sum of the value of prop for all filter states
*/
/** Sum of the value of prop for all filter states */
SUM, SUM,
/**
* average of the value of prop over all filter states
*/
/** Average of the value of prop over all filter states */
AVG, AVG,
/**
* value of prop for the first (lowest-indexed) filter state
*/
/** Value of prop for the first (lowest-indexed) filter state */
FIRST, FIRST,
/**
* range (interval) of values of prop over all filter states
*/
/** Range (interval) of values of prop over all filter states */
RANGE, RANGE,
/**
* true iff prop is true for all filter states
*/
/** True iff prop is true for all filter states */
FORALL, FORALL,
/**
* true iff prop is true for some filter states
*/
/** True iff prop is true for some filter states */
EXISTS, EXISTS,
/**
* print the (non-zero) values to the log
*/
/** Print the (non-zero) values to the log */
PRINT, PRINT,
/**
* print all (including zero) values to the log
*/
/** Print all (including zero) values to the log */
PRINTALL, PRINTALL,
/**
* value for the single filter state (if there is more than one, this is an error)
*/
/** Value for the single filter state (if there is more than one, this is an error) */
STATE; STATE;
}; };

Loading…
Cancel
Save