Example #1
0
        public static string ToStr(this MeasureOperator op)
        {
            switch (op)
            {
            case MeasureOperator.GreaterOrEqual:
                return("≥");

            case MeasureOperator.Greater:
                return(">");

            case MeasureOperator.Equal:
                return("=");

            case MeasureOperator.Less:
                return("<");

            case MeasureOperator.LessOrEqual:
                return("≤");

            case MeasureOperator.Between:
                return("—");

            default:
                return(op.ToString());
            }
        }
Example #2
0
 public static MeasureOp ToMeasureOp(this Measure m, MeasureOperator op = MeasureOperator.GreaterOrEqual)
 {
     Contract.Requires(m != null);
     return(new MeasureOp(op, m.Value, m.Uom, m.Word));
 }
Example #3
0
 public MeasureOp(MeasureOperator op, double value, Uom uom = null, Word word = null)
     : base(value, uom, word)
 {
     Operator = op;
 }
Example #4
0
 public static bool IsBinary(this MeasureOperator op)
 {
     return(op == MeasureOperator.Between);
 }