Example #1
0
		/// <summary>
		/// Constructor.
		/// </summary>
		/// <param name="jsonScore">JSON score.</param>
		public RangeScore(JSONObject jsonScore)
			: base(jsonScore)
		{
			Range = new SRange(jsonScore[LUJSONConsts.LU_SCORE_RANGE]);
			// descending score should start at the high bound
			if (!HigherBetter) {
				StartValue = Range.High;
			}
		}
Example #2
0
		/// <summary>
		/// Constructor.
		/// </summary>
		/// <param name="id">ID.</param>
		/// <param name="name">Name.</param>
		/// <param name="higherBetter">If set to <c>true</c> then higher is better.</param>
		/// <param name="range">Range that the <c>Score</c> value must reside in.</param>
		public RangeScore(string id, string name, bool higherBetter, SRange range)
			: base(id, name, higherBetter)
		{
			Range = range;
			// descending score should start at the high bound
			if (!HigherBetter) {
				StartValue = range.High;
			}
		}
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="jsonScore">JSON score.</param>
 public RangeScore(JSONObject jsonScore)
     : base(jsonScore)
 {
     Range = new SRange(jsonScore[LUJSONConsts.LU_SCORE_RANGE]);
     // descending score should start at the high bound
     if (!HigherBetter)
     {
         StartValue = Range.High;
     }
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="id">ID.</param>
 /// <param name="name">Name.</param>
 /// <param name="higherBetter">If set to <c>true</c> then higher is better.</param>
 /// <param name="range">Range that the <c>Score</c> value must reside in.</param>
 public RangeScore(string id, string name, bool higherBetter, SRange range)
     : base(id, name, higherBetter)
 {
     Range = range;
     // descending score should start at the high bound
     if (!HigherBetter)
     {
         StartValue = range.High;
     }
 }
Example #5
0
		public SRange Range; // The range for this Score. 

		/// <summary>
		/// Constructor.
		/// </summary>
		/// <param name="id">ID.</param>
		/// <param name="range">Range that the <c>Score</c> value must reside in.</param>
		public RangeScore(string id, SRange range)
			: base(id)
		{
			Range = range;
		}
        public SRange Range;         // The range for this Score.

        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="id">ID.</param>
        /// <param name="range">Range that the <c>Score</c> value must reside in.</param>
        public RangeScore(string id, SRange range)
            : base(id)
        {
            Range = range;
        }