Package org.opentcs.data.order
Class DriveOrder.Destination
java.lang.Object
org.opentcs.data.order.DriveOrder.Destination
- All Implemented Interfaces:
Serializable
- Enclosing class:
DriveOrder
Describes the destination of a drive order.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the actual destination (a location or point).Returns the operation to be performed at the destination location.Returns the properties of this destination.inthashCode()toString()withOperation(String operation) Creates a copy of this object, with the given operation.withProperties(Map<String, String> properties) Creates a copy of this object, with the given properties.
-
Field Details
-
OP_NOP
An operation constant for doing nothing.- See Also:
-
OP_PARK
An operation constant for parking the vehicle.- See Also:
-
OP_MOVE
An operation constant for sending the vehicle to a point without a location associated to it.- See Also:
-
-
Constructor Details
-
Destination
Creates a new instance.- Parameters:
destination- The actual destination (must be a reference to a location or point).
-
-
Method Details
-
getDestination
Returns the actual destination (a location or point).- Returns:
- The actual destination (a location or point).
-
getOperation
Returns the operation to be performed at the destination location.- Returns:
- The operation to be performed at the destination location.
-
withOperation
Creates a copy of this object, with the given operation.- Parameters:
operation- The value to be set in the copy.- Returns:
- A copy of this object, differing in the given value.
-
getProperties
Returns the properties of this destination.- Returns:
- The properties of this destination.
-
withProperties
Creates a copy of this object, with the given properties.- Parameters:
properties- The value to be set in the copy.- Returns:
- A copy of this object, differing in the given value.
-
equals
-
hashCode
public int hashCode() -
toString
-