AGV.AllocationPoint
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
agv | The AGV that owns this allocation point. |
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
readonly double stopDist
Description
The AGV travel distance at which the AGV will stop if it cannot allocate the object.
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.