Package org.opentcs.data.model
Class LocationType
- All Implemented Interfaces:
Serializable
Describes the type of a
Location
.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Contains information regarding the grahical representation of a location type. -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a set of operations allowed with locations of this type.Returns a set of peripheral operations allowed with locations of this type.Returns the information regarding the grahical representation of this location type.boolean
isAllowedOperation
(String operation) Checks if a given operation is allowed with locations of this type.withAllowedOperations
(List<String> allowedOperations) Creates a copy of this object, with the given allowed operations.withAllowedPeripheralOperations
(List<String> allowedPeripheralOperations) Creates a copy of this object, with the given allowed peripheral operations.withHistory
(ObjectHistory history) Creates a copy of this object, with the given history.Creates a copy of this object, with the given history entry integrated.withLayout
(LocationType.Layout layout) Creates a copy of this object, with the given layout.withProperties
(Map<String, String> properties) Creates a copy of this object, with the given properties.withProperty
(String key, String value) Creates a copy of this object, with the given property integrated.Methods inherited from class org.opentcs.data.TCSObject
equals, getHistory, getName, getProperties, getProperty, getReference, hashCode, listWithoutNullValues, mapWithoutNullValues, propertiesWith, setWithoutNullValues, toString
-
Constructor Details
-
LocationType
Creates a new LocationType.- Parameters:
name
- The new location type's name.
-
-
Method Details
-
withProperty
Description copied from class:TCSObject
Creates a copy of this object, with the given property integrated.- Specified by:
withProperty
in classTCSObject<LocationType>
- Parameters:
key
- The key of the property to be changed.value
- The new value of the property, ornull
, if the property is to be removed.- Returns:
- A copy of this object, with the given property integrated.
-
withProperties
Description copied from class:TCSObject
Creates a copy of this object, with the given properties.- Specified by:
withProperties
in classTCSObject<LocationType>
- Parameters:
properties
- The properties.- Returns:
- A copy of this object, with the given properties.
-
withHistoryEntry
Description copied from class:TCSObject
Creates a copy of this object, with the given history entry integrated.- Specified by:
withHistoryEntry
in classTCSObject<LocationType>
- Parameters:
entry
- The history entry to be integrated.- Returns:
- A copy of this object, with the given history entry integrated.
-
withHistory
Description copied from class:TCSObject
Creates a copy of this object, with the given history.- Specified by:
withHistory
in classTCSObject<LocationType>
- Parameters:
history
- The history.- Returns:
- A copy of this object, with the given history.
-
getAllowedOperations
Returns a set of operations allowed with locations of this type.- Returns:
- A set of operations allowed with locations of this type.
-
isAllowedOperation
Checks if a given operation is allowed with locations of this type.- Parameters:
operation
- The operation to be checked for.- Returns:
true
if, and only if, the given operation is allowed with locations of this type.
-
withAllowedOperations
Creates a copy of this object, with the given allowed operations.- Parameters:
allowedOperations
- The value to be set in the copy.- Returns:
- A copy of this object, differing in the given value.
-
getAllowedPeripheralOperations
Returns a set of peripheral operations allowed with locations of this type.- Returns:
- A set of peripheral operations allowed with locations of this type.
-
withAllowedPeripheralOperations
Creates a copy of this object, with the given allowed peripheral operations.- Parameters:
allowedPeripheralOperations
- The value to be set in the copy.- Returns:
- A copy of this object, differing in the given value.
-
getLayout
Returns the information regarding the grahical representation of this location type.- Returns:
- The information regarding the grahical representation of this location type.
-
withLayout
Creates a copy of this object, with the given layout.- Parameters:
layout
- The value to be set in the copy.- Returns:
- A copy of this object, differing in the given value.
-