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())); }
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}"); }
public override int CompareWith(UpperBoundValue other) { return(other.value.CompareTo(value)); }
public abstract int CompareWith(UpperBoundValue other);
public override int CompareWith(UpperBoundValue other) { return(-1); }