Package org.opentcs.data.model
Klasse Location
- Alle implementierten Schnittstellen:
Serializable
A location at which a
Vehicle
may perform an action.
A location must be linked to at least one Point
to be reachable for a vehicle.
It may be linked to multiple points.
As long as a link's specific set of allowed operations is empty (which is the default), all
operations defined by the location's referenced LocationType
are allowed at the linked
point.
If the link's set of allowed operations is not empty, only the operations contained in it are
allowed at the linked point.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic class
Contains information regarding the grahical representation of a location.static class
A link connecting a point and a location, expressing that the location is reachable from the point. -
Feldübersicht
-
Konstruktorübersicht
KonstruktorBeschreibungLocation
(String name, TCSObjectReference<LocationType> type) Creates a new Location. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns a set of links attached to this location.Returns the information regarding the grahical representation of this location.Returns details about the peripheral devices this location may represent.Returns the physical coordinates of this location in mm.getType()
Returns a reference to the type of this location.boolean
isLocked()
Returns the lock status of this location (i.e. whether it my be used by vehicles or not).withAttachedLinks
(Set<Location.Link> attachedLinks) Creates a copy of this object, with the given attached links.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
(Location.Layout layout) Creates a copy of this object, with the given layout.withLocked
(boolean locked) Creates a copy of this object, with the given locked flag.withPeripheralInformation
(PeripheralInformation peripheralInformation) Creates a copy of this object, with the given peripheral information.withPosition
(Triple position) Creates a copy of this object, with the given position.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.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
-
Location
Creates a new Location. this.locked = false;- Parameter:
name
- The new location's name.type
- The new location's type.
-
-
Methodendetails
-
withProperty
Beschreibung aus Klasse kopiert:TCSObject
Creates a copy of this object, with the given property integrated.- Angegeben von:
withProperty
in KlasseTCSObject<Location>
- 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<Location>
- 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<Location>
- 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<Location>
- Parameter:
history
- The history.- Gibt zurück:
- A copy of this object, with the given history.
-
getPosition
Returns the physical coordinates of this location in mm.- Gibt zurück:
- The physical coordinates of this location in mm.
-
withPosition
Creates a copy of this object, with the given position.- Parameter:
position
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getType
Returns a reference to the type of this location.- Gibt zurück:
- A reference to the type of this location.
-
getAttachedLinks
Returns a set of links attached to this location.- Gibt zurück:
- A set of links attached to this location.
-
withAttachedLinks
Creates a copy of this object, with the given attached links.- Parameter:
attachedLinks
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getPeripheralInformation
Returns details about the peripheral devices this location may represent.- Gibt zurück:
- Details about the peripheral devices this location may represent.
-
withPeripheralInformation
Creates a copy of this object, with the given peripheral information.- Parameter:
peripheralInformation
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
isLocked
public boolean isLocked()Returns the lock status of this location (i.e. whether it my be used by vehicles or not).- Gibt zurück:
true
if this location is currently locked (i.e. it may not be used by vehicles), elsefalse
.
-
withLocked
Creates a copy of this object, with the given locked flag.- Parameter:
locked
- 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 location.- Gibt zurück:
- The information regarding the grahical representation of this location.
-
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.
-