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.ShiftSolver.Core
Assembly: ShiftSolver (in ShiftSolver.dll) Version: 2.3.0+2c0a765360648175f37b32b9a08ecd256c911c4c
Assembly: ShiftSolver (in ShiftSolver.dll) Version: 2.3.0+2c0a765360648175f37b32b9a08ecd256c911c4c
C#
public class ScheduleViolationVB
Public Class ScheduleViolationC++
public ref class ScheduleViolationF#
type ScheduleViolation = class end- Inheritance
- Object ScheduleViolation
Properties
| FirstDay | The day this violation occurs on. If the violation ranges 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 ranges 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) |