Roster Class

A solution to the rostering problem.

Definition

Namespace: ASAP.NRP.Core
Assembly: NRP (in NRP.dll) Version: 3.49.0+964b2dfb493dfda37da83e5373992cb1cc934e98
C#
public class Roster
Inheritance
Object    Roster

Constructors

Roster Initializes a new instance of this class.

Properties

Penalty Gets the total penalty due to soft constraint violations in this roster.
TotalPenalty This has been left in for backwards compatibility and decimal values are rounded upwards. Instead use Roster.Penalty (which is a double).
Obsolete

Methods

AssignShift Assigns a shift to an employee.
Clone Makes a copy of the Roster.
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetAssignmentsXml Gets the XML for all the shift assignments.
GetEmployeeViolationXml Gets the violation XML for an employee.
GetHashCode
(Inherited from Object)
GetOtherViolationsXml Gets the violation XML for cover constraints, rule constraints and employee pairing constraints.
GetPenaltyForShiftCover Gets the cover penalty due to a particular shift type for all skills (or skill groups).
GetPenaltyForShiftTypeCover This has been left in for backwards compatibility and decimal values are rounded upwards. Use GetPenaltyForShiftCover instead (which returns a double).
Obsolete
GetType
(Inherited from Object)
GetUpdatedEmployees Returns a list of employees linked to constraints that may have been effected by any changes in the solution since the last penalty/violation calculations.
IsFeasible Returns false if any hard constraints are violated, true otherwise.
MemberwiseClone
(Inherited from Object)
RecalculatePenaltyAndViolations Recalculates the roster's penalty and violations.
SortEmployeesByName Sorts the employees alphabetically by their label.
ToString
(Inherited from Object)
ToXml(Boolean) Gets the solution in an XML format.
ToXml(Boolean, Boolean) Gets the XML for the solution.
UnAssignShift Un-assigns a shift.

Fields

SchedulingPeriod The SchedulingPeriod for this roster.
VarValues Values of variables referenced in rules.

See Also