LotSizingDataModel.Instance 2.0.1
Lot-sizing instance representation, descriptors and problem characterization.
Loading...
Searching...
No Matches
InstanceValidationCapabilities.cs
Go to the documentation of this file.
2
3/// <summary>
4/// Describes which downstream operations are permitted after
5/// instance-model validation.
6/// </summary>
7/// <remarks>
8/// This type is UI-independent. A future MVVM application may bind
9/// directly to these capabilities without introducing presentation
10/// dependencies into the domain libraries.
11/// </remarks>
13{
15 bool canSaveDraft,
16 bool canValidate,
17 bool canClassify,
18 bool canGenerateNotation,
19 bool canSolve,
20 bool canExportAsValidatedInstance)
21 {
22 CanSaveDraft = canSaveDraft;
23 CanValidate = canValidate;
24 CanClassify = canClassify;
25 CanGenerateNotation = canGenerateNotation;
26 CanSolve = canSolve;
28 canExportAsValidatedInstance;
29 }
30
31 /// <summary>
32 /// Gets a value indicating whether the current instance may
33 /// be saved as an incomplete or invalid draft.
34 /// </summary>
35 public bool CanSaveDraft { get; }
36
37 /// <summary>
38 /// Gets a value indicating whether validation can be run.
39 /// </summary>
40 public bool CanValidate { get; }
41
42 /// <summary>
43 /// Gets a value indicating whether automatic classification
44 /// may safely use the instance.
45 /// </summary>
46 public bool CanClassify { get; }
47
48 /// <summary>
49 /// Gets a value indicating whether the universal notation
50 /// may safely be generated.
51 /// </summary>
52 public bool CanGenerateNotation { get; }
53
54 /// <summary>
55 /// Gets a value indicating whether a solver may safely be
56 /// invoked for this instance.
57 /// </summary>
58 public bool CanSolve { get; }
59
60 /// <summary>
61 /// Gets a value indicating whether the instance may be
62 /// exported while claiming validated-instance status.
63 /// </summary>
64 public bool CanExportAsValidatedInstance { get; }
65}
bool CanValidate
Gets a value indicating whether validation can be run.
bool CanGenerateNotation
Gets a value indicating whether the universal notation may safely be generated.
InstanceValidationCapabilities(bool canSaveDraft, bool canValidate, bool canClassify, bool canGenerateNotation, bool canSolve, bool canExportAsValidatedInstance)
bool CanSolve
Gets a value indicating whether a solver may safely be invoked for this instance.
bool CanSaveDraft
Gets a value indicating whether the current instance may be saved as an incomplete or invalid draft.
bool CanExportAsValidatedInstance
Gets a value indicating whether the instance may be exported while claiming validated-instance status...
bool CanClassify
Gets a value indicating whether automatic classification may safely use the instance.