Package org.opentcs.access.to.model
Klasse BlockCreationTO
java.lang.Object
org.opentcs.access.to.CreationTO
org.opentcs.access.to.model.BlockCreationTO
- Alle implementierten Schnittstellen:
Serializable
A transfer object describing a block in the plant model.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic class
Contains information regarding the grahical representation of a block. -
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the information regarding the grahical representation of this block.Returns the names of this block's members.getType()
Returns the type of this block.toString()
withLayout
(BlockCreationTO.Layout layout) Creates a copy of this object, with the given layout.withMemberNames
(Set<String> memberNames) Creates a copy of this object with the given members.Creates a copy of this object with the given name.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 and adds the given property.withType
(Block.Type type) Creates a copy of this object with the given type.Von Klasse geerbte Methoden org.opentcs.access.to.CreationTO
getModifiableProperties, getName, getProperties, listWithAppendix, mapWithMapping, propertiesWith
-
Konstruktordetails
-
BlockCreationTO
Creates a new instance.- Parameter:
name
- The name of this block.
-
-
Methodendetails
-
withName
Creates a copy of this object with the given name.- Setzt außer Kraft:
withName
in KlasseCreationTO
- Parameter:
name
- The new name.- Gibt zurück:
- A copy of this object, differing in the given name.
-
withProperties
Creates a copy of this object with the given properties.- Setzt außer Kraft:
withProperties
in KlasseCreationTO
- Parameter:
properties
- The new properties.- Gibt zurück:
- A copy of this object, differing in the given properties.
-
withProperty
Creates a copy of this object and adds the given property. If value == null, then the key-value pair is removed from the properties.- Setzt außer Kraft:
withProperty
in KlasseCreationTO
- Parameter:
key
- the key.value
- the value- Gibt zurück:
- A copy of this object that either includes the given entry in it's current properties, if value != null or excludes the entry otherwise.
-
getType
Returns 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 new type.- Gibt zurück:
- A copy of this object, differing in the given type.
-
getMemberNames
Returns the names of this block's members.- Gibt zurück:
- The names of this block's members.
-
withMemberNames
Creates a copy of this object with the given members.- Parameter:
memberNames
- The names of the block's members.- 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.
-
toString
-