Klasse PlantModel

java.lang.Object
org.opentcs.data.model.PlantModel
Alle implementierten Schnittstellen:
Serializable

public class PlantModel extends Object implements Serializable
An immutable representation of a complete plant model's state.
Siehe auch:
  • Konstruktordetails

    • PlantModel

      public PlantModel(@Nonnull String name)
      Creates a new instance.
      Parameter:
      name - The model's name.
  • Methodendetails

    • getName

      @Nonnull public String getName()
      Returns the name of the plant model.
      Gibt zurück:
      The name of the plant model.
    • getProperties

      @Nonnull public Map<String,String> getProperties()
      Returns the plant model's properties.
      Gibt zurück:
      The plant model's properties.
    • withProperties

      public PlantModel withProperties(Map<String,String> properties)
      Returns a copy of this plant model, with its properties replaced by the given ones.
      Parameter:
      properties - The properties.
      Gibt zurück:
      A copy of this plant model, with its properties replaced by the given ones.
    • getPoints

      @Nonnull public Set<Point> getPoints()
      Returns the points in this plant model.
      Gibt zurück:
      The points in this plant model.
    • withPoints

      public PlantModel withPoints(@Nonnull Set<Point> points)
      Returns a copy of this plant model, with its points replaced by the given ones.
      Parameter:
      points - The points.
      Gibt zurück:
      A copy of this plant model, with its points replaced by the given ones.
    • getPaths

      @Nonnull public Set<Path> getPaths()
      Returns the paths in this plant model.
      Gibt zurück:
      The paths in this plant model.
    • withPaths

      public PlantModel withPaths(@Nonnull Set<Path> paths)
      Returns a copy of this plant model, with its paths replaced by the given ones.
      Parameter:
      paths - The paths.
      Gibt zurück:
      A copy of this plant model, with its paths replaced by the given ones.
    • getLocationTypes

      @Nonnull public Set<LocationType> getLocationTypes()
      Returns the location types in this plant model.
      Gibt zurück:
      The location types in this plant model.
    • withLocationTypes

      public PlantModel withLocationTypes(@Nonnull Set<LocationType> locationTypes)
      Returns a copy of this plant model, with its location types replaced by the given ones.
      Parameter:
      locationTypes - The location types.
      Gibt zurück:
      A copy of this plant model, with its location types replaced by the given ones.
    • getLocations

      @Nonnull public Set<Location> getLocations()
      Returns the locations in this plant model.
      Gibt zurück:
      The locations in this plant model.
    • withLocations

      public PlantModel withLocations(@Nonnull Set<Location> locations)
      Returns a copy of this plant model, with its locations replaced by the given ones.
      Parameter:
      locations - The locations.
      Gibt zurück:
      A copy of this plant model, with its locations replaced by the given ones.
    • getBlocks

      @Nonnull public Set<Block> getBlocks()
      Returns the blocks in this plant model.
      Gibt zurück:
      The blocks in this plant model.
    • withBlocks

      public PlantModel withBlocks(@Nonnull Set<Block> blocks)
      Returns a copy of this plant model, with its blocks replaced by the given ones.
      Parameter:
      blocks - The blocks.
      Gibt zurück:
      A copy of this plant model, with its blocks replaced by the given ones.
    • getVehicles

      @Nonnull public Set<Vehicle> getVehicles()
      Returns the vehicles in this plant model.
      Gibt zurück:
      The vehicles in this plant model.
    • withVehicles

      public PlantModel withVehicles(@Nonnull Set<Vehicle> vehicles)
      Returns a copy of this plant model, with its vehicles replaced by the given ones.
      Parameter:
      vehicles - The vehicles.
      Gibt zurück:
      A copy of this plant model, with its vehicles replaced by the given ones.
    • getVisualLayout

      @Nonnull public VisualLayout getVisualLayout()
      Returns the visual layout in this plant model.
      Gibt zurück:
      The visual layout in this plant model.
    • withVisualLayout

      public PlantModel withVisualLayout(@Nonnull VisualLayout visualLayout)
      Returns a copy of this plant model, with its visual layout replaced by the given one.
      Parameter:
      visualLayout - The visual layout to be set.
      Gibt zurück:
      A copy of this plant model, with its visual layout replaced by the given one.
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object