Package org.opentcs.data.model
Class PlantModel
java.lang.Object
org.opentcs.data.model.PlantModel
- All Implemented Interfaces:
java.io.Serializable
public class PlantModel
extends java.lang.Object
implements java.io.Serializable
An immutable representation of a complete plant model's state.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description PlantModel(java.lang.String name)Creates a new instance. -
Method Summary
Modifier and Type Method Description java.util.Set<Block>getBlocks()java.util.Set<Location>getLocations()java.util.Set<LocationType>getLocationTypes()java.lang.StringgetName()java.util.Set<Path>getPaths()java.util.Set<Point>getPoints()java.util.Map<java.lang.String,java.lang.String>getProperties()java.util.Set<Vehicle>getVehicles()java.util.Set<VisualLayout>getVisualLayouts()java.lang.StringtoString()PlantModelwithBlocks(java.util.Set<Block> blocks)PlantModelwithLocations(java.util.Set<Location> locations)PlantModelwithLocationTypes(java.util.Set<LocationType> locationTypes)PlantModelwithPaths(java.util.Set<Path> paths)PlantModelwithPoints(java.util.Set<Point> points)PlantModelwithProperties(java.util.Map<java.lang.String,java.lang.String> properties)PlantModelwithVehicles(java.util.Set<Vehicle> vehicles)PlantModelwithVisuaLayouts(java.util.Set<VisualLayout> visualLayouts)Deprecated.UsewithVisualLayouts(java.util.Set)instead.PlantModelwithVisualLayouts(java.util.Set<VisualLayout> visualLayouts)
-
Constructor Details
-
PlantModel
public PlantModel(@Nonnull java.lang.String name)Creates a new instance.- Parameters:
name- The model's name.
-
-
Method Details
-
getName
@Nonnull public java.lang.String getName() -
getProperties
@Nonnull public java.util.Map<java.lang.String,java.lang.String> getProperties() -
withProperties
-
getPoints
-
withPoints
-
getPaths
-
withPaths
-
getLocationTypes
-
withLocationTypes
-
getLocations
-
withLocations
-
getBlocks
-
withBlocks
-
getVehicles
-
withVehicles
-
getVisualLayouts
-
withVisuaLayouts
@Deprecated @ScheduledApiChange(when="6.0", details="Will be removed.") public PlantModel withVisuaLayouts(@Nonnull java.util.Set<VisualLayout> visualLayouts)Deprecated.UsewithVisualLayouts(java.util.Set)instead.Returns an instance with the visual layouts replaced by the given ones.- Parameters:
visualLayouts- The visual layouts to be set.- Returns:
- The instance with the visual layouts replaced by the given ones.
-
withVisualLayouts
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-