Package org.opentcs.data.model
Klasse Block
- Alle implementierten Schnittstellen:
Serializable
An aggregation of resources with distinct usage rules depending on the block's type.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic class
Contains information regarding the grahical representation of a block.static enum
Describes the types of blocks in a driving course. -
Feldübersicht
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the information regarding the grahical representation of this block.Returns an unmodifiable set of all members of this block.getType()
Retruns the type of this block.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
(Block.Layout layout) Creates a copy of this object, with the given layout.withMembers
(Set<TCSResourceReference<?>> members) Creates a copy of this object, with the given members.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.withType
(Block.Type type) Creates a copy of this object, with the given type.Von Klasse geerbte Methoden org.opentcs.data.model.TCSResource
getReference
Von Klasse geerbte Methoden org.opentcs.data.TCSObject
equals, getHistory, getName, getProperties, getProperty, hashCode, listWithoutNullValues, mapWithoutNullValues, propertiesWith, setWithoutNullValues, toString
-
Konstruktordetails
-
Block
Creates an empty block.- Parameter:
name
- This block's name.
-
-
Methodendetails
-
withProperty
Beschreibung aus Klasse kopiert:TCSObject
Creates a copy of this object, with the given property integrated.- Angegeben von:
withProperty
in KlasseTCSObject<Block>
- Parameter:
key
- The key of the property to be changed.value
- The new value of the property, ornull
, if the property is to be removed.- Gibt zurück:
- A copy of this object, with the given property integrated.
-
withProperties
Beschreibung aus Klasse kopiert:TCSObject
Creates a copy of this object, with the given properties.- Angegeben von:
withProperties
in KlasseTCSObject<Block>
- Parameter:
properties
- The properties.- Gibt zurück:
- A copy of this object, with the given properties.
-
withHistoryEntry
Beschreibung aus Klasse kopiert:TCSObject
Creates a copy of this object, with the given history entry integrated.- Angegeben von:
withHistoryEntry
in KlasseTCSObject<Block>
- Parameter:
entry
- The history entry to be integrated.- Gibt zurück:
- A copy of this object, with the given history entry integrated.
-
withHistory
Beschreibung aus Klasse kopiert:TCSObject
Creates a copy of this object, with the given history.- Angegeben von:
withHistory
in KlasseTCSObject<Block>
- Parameter:
history
- The history.- Gibt zurück:
- A copy of this object, with the given history.
-
getType
Retruns the type of this block.- Gibt zurück:
- The type of this block.
-
withType
Creates a copy of this object, with the given type.- Parameter:
type
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getMembers
Returns an unmodifiable set of all members of this block.- Gibt zurück:
- An unmodifiable set of all members of this block.
-
withMembers
Creates a copy of this object, with the given members.- Parameter:
members
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getLayout
Returns the information regarding the grahical representation of this block.- Gibt zurück:
- The information regarding the grahical representation of this block.
-
withLayout
Creates a copy of this object, with the given layout.- Parameter:
layout
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-