-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAdjustmentResult.cs
85 lines (71 loc) · 2.2 KB
/
AdjustmentResult.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#region using statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataJuggler.Blazor.Components.Enumerations;
#endregion
namespace DataJuggler.Blazor.Components
{
#region class AdjustmentResult
/// <summary>
/// This class is used by the Sprite to apply adjustments, and
/// if the Adjustment just caused the trigger to end and adjustment.
/// The purpose is so there is not so much code in one method to
/// test if min or maximums were just reached.
/// </summary>
public class AdjustmentResult
{
#region Private Variables
private double newValue;
private bool minimumSet;
private bool maximumSet;
private AdjustmentStatusEnum status;
#endregion
#region Properties
#region MaximumSet
/// <summary>
/// This property gets or sets the value for 'MaximumSet'.
/// </summary>
public bool MaximumSet
{
get { return maximumSet; }
set { maximumSet = value; }
}
#endregion
#region MinimumSet
/// <summary>
/// This property gets or sets the value for 'MinimumSet'.
/// </summary>
public bool MinimumSet
{
get { return minimumSet; }
set { minimumSet = value; }
}
#endregion
#region NewValue
/// <summary>
/// This property gets or sets the value for 'NewValue'.
/// </summary>
public double NewValue
{
get { return newValue; }
set { newValue = value; }
}
#endregion
#region Status
/// <summary>
/// This property gets or sets the value for 'Status'.
/// </summary>
public AdjustmentStatusEnum Status
{
get { return status; }
set { status = value; }
}
#endregion
#endregion
}
#endregion
}