SolutionUnassign Job Part(Resource, Int 32) Method
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.
Definition
Namespace: VRSolver
Assembly: VRSolver (in VRSolver.dll) Version: 1.15.0+d867f7e856f281547f683ef6449a86e433a2356d
Returns false if the JobPart was not assigned. True otherwise
Assembly: VRSolver (in VRSolver.dll) Version: 1.15.0+d867f7e856f281547f683ef6449a86e433a2356d
C#
public bool UnassignJobPart(
Resource resource,
int position
)VB
Public Function UnassignJobPart (
resource As Resource,
position As Integer
) As BooleanC++
public:
bool UnassignJobPart(
Resource^ resource,
int position
)F#
member UnassignJobPart :
resource : Resource *
position : int -> bool Parameters
- resource Resource
- The Resource to un-assign the JobPart from.
- position Int32
- The position in the Resource's route to un-assign.
Return Value
BooleanReturns false if the JobPart was not assigned. True otherwise
Exceptions
| ArgumentNullException | Resource is null. |
| ArgumentException | Resource does not exist in the Problem. |
| ArgumentException | Position in not valid for Resource's route. |
| ArgumentException | Cannot un-assign the Resource's starting location. |
| ArgumentException | Cannot un-assign the Resource's end location. |