-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReasonRulePair.cs
More file actions
29 lines (26 loc) · 1.04 KB
/
ReasonRulePair.cs
File metadata and controls
29 lines (26 loc) · 1.04 KB
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
namespace PuzzleSolver
{
////////////////////////////////////////////////////////////////////////////////////////////////////
/// <summary> A structure to record a rule application and the reason for that application. </summary>
///
/// <remarks> Darrellp, 2/14/2011. </remarks>
////////////////////////////////////////////////////////////////////////////////////////////////////
public struct ReasonRulePair
{
public IReason Reason;
public IRule Rule;
////////////////////////////////////////////////////////////////////////////////////////////////////
/// <summary> Constructor. </summary>
///
/// <remarks> Darrellp, 2/14/2011. </remarks>
///
/// <param name="reasonParm"> The reason the rule was applied. </param>
/// <param name="ruleParm"> The rule that was applied. </param>
////////////////////////////////////////////////////////////////////////////////////////////////////
public ReasonRulePair(IReason reasonParm, IRule ruleParm)
{
Reason = reasonParm;
Rule = ruleParm;
}
}
}