51
|
1 // This file (AbsoluteNumericLimit.cs) is a part of the IBBoard project and is copyright 2009 IBBoard
|
|
2 //
|
|
3 // The file and the library/program it is in are licensed under the GNU LGPL license, either version 3 of the License or (at your option) any later version. Please see COPYING.LGPL for more information and the full license.
|
|
4
|
|
5 using System;
|
|
6
|
|
7 namespace IBBoard.Limits
|
|
8 {
|
|
9 /// <summary>
|
|
10 /// A limit of a specified number that does not vary with the number it is limited against.
|
|
11 /// </summary>
|
57
|
12 public class AbsoluteNumericLimit : AbstractLimit, INumericLimit
|
51
|
13 {
|
|
14 public AbsoluteNumericLimit (int numericLimit) : base(numericLimit)
|
|
15 {
|
|
16 }
|
|
17
|
|
18 public override int GetLimit (int size)
|
|
19 {
|
|
20 return (int)Limit;
|
|
21 }
|
|
22 }
|
|
23 }
|