AGV.AllocationPoint
Inherits from AGV.TraversalPoint
Description
A structure containing information about a planned AGV allocation.
Each time an AGV starts a travel operation, it builds a travel path to the destination. In this path building phase, as it encounters allocatable objects on that path, it creates allocation points that signify that the AGV must allocate that object at a defined point on the path. An allocation point either represents an allocation of a Control Point, a Control Area, or a path transfer when traversing an accumulating path.
The AGV class includes an allocationPoints property that is an array-like structure that includes all allocation points (that have not yet allocated their object) on the AGV's current travel path. Also, allocation points are the elements you access in an AGV.AllocatableObject's requests and allocations properties.
//Printing an AGV's allocation points
AGV agv = AGV(current);
for (int i = 1; i <= agv.allocationPoints.length; i++) {
AGV.AllocationPoint point = agv.allocationPoints[i];
print(
" agv ", point.agv.as(treenode),
" object ", point.object,
" stopDist ", point.stopDist,
" arrivalDist ", point.arrivalDist,
" transferPath ", point.transferPath,
" transferDistAlong ", point.transferDistAlong);
}
Properties
arrivalDist | The AGV travel distance at which the AGV will have 'arrived' at the target object. |
object | The object that is to be allocated. |
requestState | The state of the allocation point's request. |
stopDist | The AGV travel distance at which the AGV will stop if it cannot allocate the object. |
transferDistAlong | The distance along the allocating transfer's owning path. |
transferPath | The owning path of the transfer that will be allocated. |
Details
AGV.AllocationPoint.arrivalDist
readonly double arrivalDist
Description
The AGV travel distance at which the AGV will have 'arrived' at the target object.
This will nearly always be farther along the path than the stopDist as the AGV must allocate an object before traveling to it.
AGV.AllocationPoint.object
readonly AGV.AllocatableObject object
Description
The object that is to be allocated.
This will a valid pointer if the allocation point is for a Control Point or Control Area, and null otherwise.
AGV.AllocationPoint.requestState
readonly AGV.RequestState requestState
Description
The state of the allocation point's request.
AGV.AllocationPoint.stopDist
double stopDist
Description
The AGV travel distance at which the AGV will stop if it cannot allocate the object.
You can set this property value, but only at defined times in the AGV's travel operation. Specifically, you should only set it after the OnBuildTravelPath event is fired (or as part of that trigger) but before the OnPreAllocate. Setting it at any other time is not guaranteed to work. Note that the AGV.allocationPoints array is sorted in the order of the stopDist value, so if you set this value it may change the index of the allocation point within the AGV's allocationPoints array, in order to preserve this ordering.
AGV.AllocationPoint.transferDistAlong
readonly double transferDistAlong
Description
The distance along the allocating transfer's owning path.
This will be a valid distance if the allocation point is for a path transfer, and undefined otherwise. In other words, you should only access this property if you know the allocation point is for a transfer (transferPath is not null).
AGV.AllocationPoint.transferPath
readonly Object transferPath
Description
The owning path of the transfer that will be allocated.
This will a valid pointer if the allocation point is for a path transfer, and null otherwise.