SolutionUnassignJobPart(Resource, JobPart) Method

Un-assigns a JobPart from a Resource's route.

Definition

Namespace: VRSolver
Assembly: VRSolver (in VRSolver.dll) Version: 1.15.0+d867f7e856f281547f683ef6449a86e433a2356d
C#
public bool UnassignJobPart(
	Resource resource,
	JobPart jobPart
)

Parameters

resource  Resource
The Resource to un-assign from.
jobPart  JobPart
The JobPart to un-assign.

Return Value

Boolean
False if the JobPart could not be un-assigned. True otherwise.

Exceptions

ArgumentNullExceptionResource is null.
ArgumentNullExceptionJobPart is null.
ArgumentExceptionResource does not exist in the Problem.
ArgumentExceptionJobPart is not assigned to this resource.
ArgumentExceptionCannot un-assign the Resource's starting location.
ArgumentExceptionCannot un-assign the Resource's end location.

See Also