Klasse Location

Alle implementierten Schnittstellen:
Serializable

public class Location extends TCSResource<Location> implements 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:
  • Konstruktordetails

    • Location

      public Location(String name, TCSObjectReference<LocationType> type)
      Creates a new Location. this.locked = false;
      Parameter:
      name - The new location's name.
      type - The new location's type.
  • Methodendetails

    • withProperty

      public Location withProperty(String key, String value)
      Beschreibung aus Klasse kopiert: TCSObject
      Creates a copy of this object, with the given property integrated.
      Angegeben von:
      withProperty in Klasse TCSObject<Location>
      Parameter:
      key - The key of the property to be changed.
      value - The new value of the property, or null, if the property is to be removed.
      Gibt zurück:
      A copy of this object, with the given property integrated.
    • withProperties

      public Location withProperties(Map<String,String> properties)
      Beschreibung aus Klasse kopiert: TCSObject
      Creates a copy of this object, with the given properties.
      Angegeben von:
      withProperties in Klasse TCSObject<Location>
      Parameter:
      properties - The properties.
      Gibt zurück:
      A copy of this object, with the given properties.
    • withHistoryEntry

      public TCSObject<Location> withHistoryEntry(ObjectHistory.Entry entry)
      Beschreibung aus Klasse kopiert: TCSObject
      Creates a copy of this object, with the given history entry integrated.
      Angegeben von:
      withHistoryEntry in Klasse TCSObject<Location>
      Parameter:
      entry - The history entry to be integrated.
      Gibt zurück:
      A copy of this object, with the given history entry integrated.
    • withHistory

      public TCSObject<Location> withHistory(ObjectHistory history)
      Beschreibung aus Klasse kopiert: TCSObject
      Creates a copy of this object, with the given history.
      Angegeben von:
      withHistory in Klasse TCSObject<Location>
      Parameter:
      history - The history.
      Gibt zurück:
      A copy of this object, with the given history.
    • getPosition

      public Triple getPosition()
      Returns the physical coordinates of this location in mm.
      Gibt zurück:
      The physical coordinates of this location in mm.
    • withPosition

      public Location withPosition(Triple position)
      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

      public TCSObjectReference<LocationType> getType()
      Returns a reference to the type of this location.
      Gibt zurück:
      A reference to the type of this location.
    • getAttachedLinks

      public Set<Location.Link> getAttachedLinks()
      Returns a set of links attached to this location.
      Gibt zurück:
      A set of links attached to this location.
    • withAttachedLinks

      public Location withAttachedLinks(@Nonnull Set<Location.Link> attachedLinks)
      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

      @Nonnull public PeripheralInformation getPeripheralInformation()
      Returns details about the peripheral devices this location may represent.
      Gibt zurück:
      Details about the peripheral devices this location may represent.
    • withPeripheralInformation

      public Location withPeripheralInformation(@Nonnull PeripheralInformation peripheralInformation)
      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), else false.
    • withLocked

      public Location withLocked(boolean locked)
      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

      public Location.Layout getLayout()
      Returns the information regarding the grahical representation of this location.
      Gibt zurück:
      The information regarding the grahical representation of this location.
    • withLayout

      public Location withLayout(Location.Layout layout)
      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.