Package org.opentcs.access.to.model
Class BoundingBoxCreationTO
java.lang.Object
org.opentcs.access.to.model.BoundingBoxCreationTO
- All Implemented Interfaces:
Serializable
A transfer object describing a bounding box.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBoundingBoxCreationTO(long length, long width, long height) Creates a new instance with a (0, 0) reference offset. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the bounding box's height.longReturns the bounding box's length.Returns the bounding box's reference offset.longgetWidth()Returns the bounding box's width.withHeight(long height) Creates a copy of this object, with the given height.withLength(long length) Creates a copy of this object, with the given length.withReferenceOffset(CoupleCreationTO referenceOffset) Creates a copy of this object, with the given reference offset.withWidth(long width) Creates a copy of this object, with the given width.
-
Constructor Details
-
BoundingBoxCreationTO
public BoundingBoxCreationTO(long length, long width, long height) Creates a new instance with a (0, 0) reference offset.- Parameters:
length- The bounding box's length.width- The bounding box's width.height- The bounding box's height.
-
-
Method Details
-
getLength
public long getLength()Returns the bounding box's length.- Returns:
- The bounding box's length.
-
withLength
Creates a copy of this object, with the given length.- Parameters:
length- The value to be set in the copy.- Returns:
- A copy of this object, differing in the given value.
-
getWidth
public long getWidth()Returns the bounding box's width.- Returns:
- The bounding box's width.
-
withWidth
Creates a copy of this object, with the given width.- Parameters:
width- The value to be set in the copy.- Returns:
- A copy of this object, differing in the given value.
-
getHeight
public long getHeight()Returns the bounding box's height.- Returns:
- The bounding box's height.
-
withHeight
Creates a copy of this object, with the given height.- Parameters:
height- The value to be set in the copy.- Returns:
- A copy of this object, differing in the given value.
-
getReferenceOffset
Returns the bounding box's reference offset.- Returns:
- The bounding box's reference offset.
-
withReferenceOffset
Creates a copy of this object, with the given reference offset.- Parameters:
referenceOffset- The value to be set in the copy.- Returns:
- A copy of this object, differing in the given value.
-