public override string GetStepParameters()
        {
            var parameters = new List <string>();

            parameters.Add(Name != null ? Name.ToStepValue() : "$");
            parameters.Add(Description != null ? Description.ToStepValue() : "$");
            parameters.Add(UpperBoundValue != null ? UpperBoundValue.ToStepValue() : "$");
            parameters.Add(LowerBoundValue != null ? LowerBoundValue.ToStepValue() : "$");
            parameters.Add(Unit != null ? Unit.ToStepValue() : "$");
            parameters.Add(SetPointValue != null ? SetPointValue.ToStepValue() : "$");

            return(string.Join(", ", parameters.ToArray()));
        }
Esempio n. 2
0
        public override string ToString()
        {
            if (IsEmpty)
            {
                return("Ø");
            }
            if (UpperBoundValue.Equals(LowerBoundValue) && IsBounded)
            {
                return($"[{UpperBoundValue.Get()}]");
            }

            var lowerBound = LowerBound.Match(
                l => $"{(l.IsOpen ? "(" : "[")}{l.Value}",
                _ => "(-∞"
                );
            var upperBound = UpperBound.Match(
                l => $"{l.Value}{(l.IsOpen ? ")" : "]")}",
                _ => "∞)"
                );

            return($"{lowerBound}, {upperBound}");
        }
Esempio n. 3
0
 public override int CompareWith(UpperBoundValue other)
 {
     return(other.value.CompareTo(value));
 }
Esempio n. 4
0
 public abstract int CompareWith(UpperBoundValue other);
Esempio n. 5
0
 public override int CompareWith(UpperBoundValue other)
 {
     return(-1);
 }