Package org.opentcs.data.model
Class PlantModel
java.lang.Object
org.opentcs.data.model.PlantModel
- All Implemented Interfaces:
Serializable
An immutable representation of a complete plant model's state.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the blocks in this plant model.Returns the locations in this plant model.Returns the location types in this plant model.getName()
Returns the name of the plant model.getPaths()
Returns the paths in this plant model.Returns the points in this plant model.Returns the plant model's properties.Returns the vehicles in this plant model.Returns the visual layout in this plant model.toString()
withBlocks
(Set<Block> blocks) Returns a copy of this plant model, with its blocks replaced by the given ones.withLocations
(Set<Location> locations) Returns a copy of this plant model, with its locations replaced by the given ones.withLocationTypes
(Set<LocationType> locationTypes) Returns a copy of this plant model, with its location types replaced by the given ones.Returns a copy of this plant model, with its paths replaced by the given ones.withPoints
(Set<Point> points) Returns a copy of this plant model, with its points replaced by the given ones.withProperties
(Map<String, String> properties) Returns a copy of this plant model, with its properties replaced by the given ones.withVehicles
(Set<Vehicle> vehicles) Returns a copy of this plant model, with its vehicles replaced by the given ones.withVisualLayout
(VisualLayout visualLayout) Returns a copy of this plant model, with its visual layout replaced by the given one.
-
Constructor Details
-
PlantModel
Creates a new instance.- Parameters:
name
- The model's name.
-
-
Method Details
-
getName
Returns the name of the plant model.- Returns:
- The name of the plant model.
-
getProperties
Returns the plant model's properties.- Returns:
- The plant model's properties.
-
withProperties
Returns a copy of this plant model, with its properties replaced by the given ones.- Parameters:
properties
- The properties.- Returns:
- A copy of this plant model, with its properties replaced by the given ones.
-
getPoints
Returns the points in this plant model.- Returns:
- The points in this plant model.
-
withPoints
Returns a copy of this plant model, with its points replaced by the given ones.- Parameters:
points
- The points.- Returns:
- A copy of this plant model, with its points replaced by the given ones.
-
getPaths
Returns the paths in this plant model.- Returns:
- The paths in this plant model.
-
withPaths
Returns a copy of this plant model, with its paths replaced by the given ones.- Parameters:
paths
- The paths.- Returns:
- A copy of this plant model, with its paths replaced by the given ones.
-
getLocationTypes
Returns the location types in this plant model.- Returns:
- The location types in this plant model.
-
withLocationTypes
Returns a copy of this plant model, with its location types replaced by the given ones.- Parameters:
locationTypes
- The location types.- Returns:
- A copy of this plant model, with its location types replaced by the given ones.
-
getLocations
Returns the locations in this plant model.- Returns:
- The locations in this plant model.
-
withLocations
Returns a copy of this plant model, with its locations replaced by the given ones.- Parameters:
locations
- The locations.- Returns:
- A copy of this plant model, with its locations replaced by the given ones.
-
getBlocks
Returns the blocks in this plant model.- Returns:
- The blocks in this plant model.
-
withBlocks
Returns a copy of this plant model, with its blocks replaced by the given ones.- Parameters:
blocks
- The blocks.- Returns:
- A copy of this plant model, with its blocks replaced by the given ones.
-
getVehicles
Returns the vehicles in this plant model.- Returns:
- The vehicles in this plant model.
-
withVehicles
Returns a copy of this plant model, with its vehicles replaced by the given ones.- Parameters:
vehicles
- The vehicles.- Returns:
- A copy of this plant model, with its vehicles replaced by the given ones.
-
getVisualLayout
Returns the visual layout in this plant model.- Returns:
- The visual layout in this plant model.
-
withVisualLayout
Returns a copy of this plant model, with its visual layout replaced by the given one.- Parameters:
visualLayout
- The visual layout to be set.- Returns:
- A copy of this plant model, with its visual layout replaced by the given one.
-
toString
-