Click or drag to resize

SolutionUnassignJobPart Method (Resource, Int32)

Un-assigns a JobPart from a Resource's route. The JobPart is the part at the indicated position in the route. The position parameter starts at zero. This means the first node in the route (the Resource's starting location) is position zero.

Namespace:  VRSolver
Assembly:  VRSolver (in VRSolver.dll) Version: 1.13.0.0
Syntax
public bool UnassignJobPart(
	Resource resource,
	int position
)

Parameters

resource
Type: VRSolverResource
The Resource to un-assign the JobPart from.
position
Type: SystemInt32
The position in the Resource's route to un-assign.

Return Value

Type: Boolean
Returns false if the JobPart was not assigned. True otherwise
Exceptions
ExceptionCondition
ArgumentNullExceptionResource is null.
ArgumentExceptionResource does not exist in the Problem.
ArgumentExceptionPosition in not valid for Resource's route.
ArgumentExceptionCannot un-assign the Resource's starting location.
ArgumentExceptionCannot un-assign the Resource's end location.
See Also

www.routingautomation.com | support