Click or drag to resize

ScheduleViolation 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.
Inheritance Hierarchy
SystemObject
  SRS.ShiftSolver.CoreScheduleViolation

Namespace:  SRS.ShiftSolver.Core
Assembly:  ShiftSolver (in ShiftSolver.dll) Version: 2.2.0.0
Syntax
public class ScheduleViolation

The ScheduleViolation type exposes the following members.

Properties
  NameDescription
Public propertyFirstDay
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.
Public propertyID
The ID of the constraint if it is set in the XML.
Public propertyLabel
A label for the constraint if provided in the problem XML.
Public propertyLastDay
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.
Public propertyMinMax
Min or Max.
Public propertyPenalty
The penalty due to this violation.
Public propertySolutionValue
The actual value that has been assigned in the solution.
Public propertyTargetUnit
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.
Public propertyTargetValue
The minimum or maximum value that ideally should be assigned in the solution.
Public propertyWeight
The weight for the constraint.
Public propertyWeightFunction
The weight function for this constraint e.g. linear or quadratic.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also

www.staffrostersolutions.com | support