Click or drag to resize

Roster Class

A solution to the rostering problem.
Inheritance Hierarchy
SystemObject
  ASAP.NRP.CoreRoster

Namespace:  ASAP.NRP.Core
Assembly:  NRP (in NRP.dll) Version: 3.45.0.0
Syntax
public class Roster

The Roster type exposes the following members.

Constructors
  NameDescription
Public methodRoster
Initializes a new instance of this class.
Top
Properties
  NameDescription
Public propertyPenalty
Gets the total penalty due to soft constraint violations in this roster.
Public propertyTotalPenalty Obsolete.
This has been left in for backwards compatibility and decimal values are rounded upwards. Instead use Roster.Penalty (which is a double).
Top
Methods
  NameDescription
Public methodAssignShift
Assigns a shift to an employee.
Public methodClone
Makes a copy of the Roster.
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 methodGetAssignmentsXml
Gets the XML for all the shift assignments.
Public methodGetEmployeeViolationXml
Gets the violation XML for an employee.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetOtherViolationsXml
Gets the violation XML for cover constraints, rule constraints and employee pairing constraints.
Public methodGetPenaltyForShiftCover
Gets the cover penalty due to a particular shift type for all skills (or skill groups).
Public methodGetPenaltyForShiftTypeCover Obsolete.
This has been left in for backwards compatibility and decimal values are rounded upwards. Use GetPenaltyForShiftCover instead (which returns a double).
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUpdatedEmployees
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.
Public methodIsFeasible
Returns false if any hard constraints are violated, true otherwise.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRecalculatePenaltyAndViolations
Recalculates the roster's penalty and violations.
Public methodSortEmployeesByName
Sorts the employees alphabetically by their label.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodToXml(Boolean)
Gets the solution in an XML format.
Public methodToXml(Boolean, Boolean)
Gets the XML for the solution.
Public methodUnAssignShift
Un-assigns a shift.
Top
Fields
  NameDescription
Public fieldSchedulingPeriod
The SchedulingPeriod for this roster.
Public fieldVarValues
Values of variables referenced in rules.
Top
See Also

www.staffrostersolutions.com | support