SolutionUnassign Job Part(Resource, Job Part) Method
Un-assigns a JobPart from a Resource's route.
Definition
Namespace: VRSolver
Assembly: VRSolver (in VRSolver.dll) Version: 1.15.0+d867f7e856f281547f683ef6449a86e433a2356d
False if the JobPart could not be un-assigned. True otherwise.
Assembly: VRSolver (in VRSolver.dll) Version: 1.15.0+d867f7e856f281547f683ef6449a86e433a2356d
C#
public bool UnassignJobPart(
Resource resource,
JobPart jobPart
)VB
Public Function UnassignJobPart (
resource As Resource,
jobPart As JobPart
) As BooleanC++
public:
bool UnassignJobPart(
Resource^ resource,
JobPart^ jobPart
)F#
member UnassignJobPart :
resource : Resource *
jobPart : JobPart -> bool Parameters
Return Value
BooleanFalse if the JobPart could not be un-assigned. True otherwise.
Exceptions
| ArgumentNullException | Resource is null. |
| ArgumentNullException | JobPart is null. |
| ArgumentException | Resource does not exist in the Problem. |
| ArgumentException | JobPart is not assigned to this resource. |
| ArgumentException | Cannot un-assign the Resource's starting location. |
| ArgumentException | Cannot un-assign the Resource's end location. |