SolutionInsertJobPart Method |
Inserts a JobPart into a Resource's route directly after the node indicated by the position
parameter. The position parameter starts at zero. This means the first node in the route
(the Resource's starting location) is position zero.
This will insert the JobParts even if it results in an infeasible solution.
Namespace:
VRSolver
Assembly:
VRSolver (in VRSolver.dll) Version: 1.13.0.0
Syntaxpublic bool InsertJobPart(
Resource resource,
JobPart jobPart,
int position
)
Public Function InsertJobPart (
resource As Resource,
jobPart As JobPart,
position As Integer
) As Boolean
public:
bool InsertJobPart(
Resource^ resource,
JobPart^ jobPart,
int position
)
member InsertJobPart :
resource : Resource *
jobPart : JobPart *
position : int -> bool
Parameters
- resource
- Type: VRSolverResource
The Resource to assign the JobPart to. - jobPart
- Type: VRSolverJobPart
The JobPart to be inserted. - position
- Type: SystemInt32
The position to insert the JobPart directly
after (the first position i.e. the locations starting point is
position zero).
Return Value
Type:
BooleanFalse if the insertion could not be completed. True otherwise.
Exceptions
See Also