Klasse Location.Link

java.lang.Object
org.opentcs.data.model.Location.Link
Alle implementierten Schnittstellen:
Serializable
Umschließende Klasse:
Location

public static class Location.Link extends Object implements Serializable
A link connecting a point and a location, expressing that the location is reachable from the point.
Siehe auch:
  • Konstruktordetails

  • Methodendetails

    • getLocation

      public TCSResourceReference<Location> getLocation()
      Returns a reference to the location end of this link.
      Gibt zurück:
      A reference to the location end of this link.
    • getPoint

      public TCSResourceReference<Point> getPoint()
      Returns a reference to the point end of this link.
      Gibt zurück:
      A reference to the point end of this link.
    • getAllowedOperations

      public Set<String> getAllowedOperations()
      Returns the operations allowed at this link.
      Gibt zurück:
      The operations allowed at this link.
    • hasAllowedOperation

      public boolean hasAllowedOperation(String operation)
      Checks if a vehicle is allowed to execute a given operation at this link.
      Parameter:
      operation - The operation to be checked.
      Gibt zurück:
      true if, and only if, vehicles are allowed to execute the given operation at his link.
    • withAllowedOperations

      public Location.Link withAllowedOperations(Set<String> allowedOperations)
      Creates a copy of this object, with the given allowed operations.
      Parameter:
      allowedOperations - The value to be set in the copy.
      Gibt zurück:
      A copy of this object, differing in the given value.
    • equals

      public boolean equals(Object obj)
      Checks if this object is equal to another one. Two Links are equal if they both reference the same location and point ends.
      Setzt außer Kraft:
      equals in Klasse Object
      Parameter:
      obj - The object to compare this one to.
      Gibt zurück:
      true if, and only if, obj is also a Link and reference the same location and point ends as this one.
    • hashCode

      public int hashCode()
      Returns a hash code for this link. The hash code of a Location.Link is computed as the exclusive OR (XOR) of the hash codes of the associated location and point references.
      Setzt außer Kraft:
      hashCode in Klasse Object
      Gibt zurück:
      A hash code for this link.