Schedule Violation Class
A violation which occurs in an individual employee's schedule
(for example violations of contract constraints).
It contains the date, penalty etc for this violation.
Definition
Namespace: SRS.ScheduleSolver.Core
Assembly: ScheduleSolver (in ScheduleSolver.dll) Version: 2.6.0+d867f7e856f281547f683ef6449a86e433a2356d
Assembly: ScheduleSolver (in ScheduleSolver.dll) Version: 2.6.0+d867f7e856f281547f683ef6449a86e433a2356d
C#
public class ScheduleViolationVB
Public Class ScheduleViolationC++
public ref class ScheduleViolationF#
type ScheduleViolation = class end- Inheritance
- Object ScheduleViolation
Properties
| Days | The day or days that this violation occurs on. |
| FirstDay | The day this violation occurs on. If the violation occurs over multiple days (e.g. workload constraints) then this is the first day in the range. |
| ID | The ID of the constraint if it is set in the XML. |
| Label | A label for the constraint if provided in the problem XML. |
| LastDay | The day this violation occurs on. If the violation occurs over multiple days (e.g. workload constraints) then this is the last day in the range. |
| MinMax | Min or Max. |
| Penalty | The penalty due to this violation. |
| SolutionValue | The actual value that has been assigned in the solution. |
| TargetUnit | A unit description for the TargetValue (if available). For example if it is a constraint on the amount of time a person can be assigned to a particular task then this field contains the task ID. |
| TargetValue | The minimum or maximum value that ideally should be assigned in the solution. |
| Weight | The weight for the constraint. |
| WeightFunction | The weight function for this constraint e.g. linear or quadratic. |
Methods
| Equals | (Inherited from Object) |
| Finalize | (Inherited from Object) |
| GetHashCode | (Inherited from Object) |
| GetType | (Inherited from Object) |
| MemberwiseClone | (Inherited from Object) |
| ToString | (Inherited from Object) |