/// <summary> /// Initializes a new instance of the <see cref="ScheduleTypeLimit" /> class. /// </summary> /// <param name="lowerLimit">Lower limit for the schedule type or NoLimit..</param> /// <param name="upperLimit">Upper limit for the schedule type or NoLimit..</param> /// <param name="numericType">numericType.</param> /// <param name="unitType">unitType.</param> /// <param name="identifier">Text string for a unique object ID. This identifier remains constant as the object is mutated, copied, and serialized to different formats (eg. dict, idf, osm). This identifier is also used to reference the object across a Model. It must be < 100 characters, use only ASCII characters and exclude (, ; ! \\n \\t). (required).</param> /// <param name="displayName">Display name of the object with no character restrictions..</param> public ScheduleTypeLimit ( string identifier, // Required parameters string displayName = default, AnyOf <NoLimit, double> lowerLimit = default, AnyOf <NoLimit, double> upperLimit = default, ScheduleNumericType numericType = ScheduleNumericType.Continuous, ScheduleUnitType unitType = ScheduleUnitType.Dimensionless // Optional parameters ) : base(identifier: identifier, displayName: displayName) // BaseClass { this.LowerLimit = lowerLimit; this.UpperLimit = upperLimit; this.NumericType = numericType; this.UnitType = unitType; // Set non-required readonly properties with defaultValue this.Type = "ScheduleTypeLimit"; }
/// <summary> /// Initializes a new instance of the <see cref="ScheduleTypeLimit" /> class. /// </summary> /// <param name="lowerLimit">Lower limit for the schedule type or NoLimit..</param> /// <param name="upperLimit">Upper limit for the schedule type or NoLimit..</param> /// <param name="numericType">numericType.</param> /// <param name="unitType">unitType.</param> /// <param name="identifier">Text string for a unique object ID. This identifier remains constant as the object is mutated, copied, and serialized to different formats (eg. dict, idf, osm). This identifier is also used to reference the object across a Model. It must be < 100 characters, use only ASCII characters and exclude (, ; ! \\n \\t). (required).</param> /// <param name="displayName">Display name of the object with no character restrictions..</param> public ScheduleTypeLimit ( string identifier, // Required parameters string displayName = default, AnyOf <NoLimit, double> lowerLimit = default, AnyOf <NoLimit, double> upperLimit = default, ScheduleNumericType numericType = ScheduleNumericType.Continuous, ScheduleUnitType unitType = ScheduleUnitType.Dimensionless // Optional parameters ) : base(identifier: identifier, displayName: displayName) // BaseClass { this.LowerLimit = lowerLimit; this.UpperLimit = upperLimit; this.NumericType = numericType; this.UnitType = unitType; // Set non-required readonly properties with defaultValue this.Type = "ScheduleTypeLimit"; // check if object is valid, only check for inherited class if (this.GetType() == typeof(ScheduleTypeLimit)) { this.IsValid(throwException: true); } }