Class ImageEnvironmentWithGraph
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Environment
,it.unibo.alchemist.model.EnvironmentWithObstacles
,it.unibo.alchemist.model.EuclideanEnvironment
,it.unibo.alchemist.model.environments.Environment2DWithObstacles
,it.unibo.alchemist.model.environments.EnvironmentWithGraph
,it.unibo.alchemist.model.environments.Euclidean2DEnvironment
,it.unibo.alchemist.model.environments.Euclidean2DEnvironmentWithGraph
,it.unibo.alchemist.model.environments.Euclidean2DEnvironmentWithObstacles
,it.unibo.alchemist.model.physics.PhysicsEnvironment
,it.unibo.alchemist.model.physics.environments.EuclideanPhysics2DEnvironmentWithGraph
,it.unibo.alchemist.model.physics.environments.EuclideanPhysics2DEnvironmentWithObstacles
,it.unibo.alchemist.model.physics.environments.Physics2DEnvironment
,it.unibo.alchemist.model.physics.environments.PhysicsEnvironmentWithObstacles
,java.io.Serializable
,kotlin.collections.Iterable
,kotlin.collections.MutableIterable
public final class ImageEnvironmentWithGraph<T extends Object> extends ImageEnvironment<T> implements EuclideanPhysics2DEnvironmentWithGraph<RectObstacle2D<Euclidean2DPosition>, T, ConvexPolygon, Euclidean2DPassage>
An ImageEnvironment providing an Euclidean2DNavigationGraph. The NaviGator algorithm is used to produce such graph (see generateNavigationGraph). The positions where to plant initial seeds should be specified directly in the image, marking each area of the environment with one or more pixels of a given color (defaults to blue).
-
-
Field Summary
Fields Modifier and Type Field Description private final NavigationGraph<Euclidean2DPosition, Euclidean2DTransformation, ConvexPolygon, Euclidean2DPassage>
graph
private final Euclidean2DShapeFactory
shapeFactory
private final Euclidean2DPosition
origin
private final ListSet<GlobalReaction<T>>
globalReactions
private final ListSet<Node<T>>
nodes
private final List<RectObstacle2D<Euclidean2DPosition>>
obstacles
-
Constructor Summary
Constructors Constructor Description ImageEnvironmentWithGraph(Incarnation<T, Euclidean2DPosition> incarnation, String path, Double zoom, Double dx, Double dy, Integer obstaclesColor, Integer roomsColor)
ImageEnvironmentWithGraph(Incarnation<T, Euclidean2DPosition> incarnation, String path, Double zoom, Double dx, Double dy, Integer obstaclesColor)
ImageEnvironmentWithGraph(Incarnation<T, Euclidean2DPosition> incarnation, String path, Double zoom, Double dx, Double dy)
ImageEnvironmentWithGraph(Incarnation<T, Euclidean2DPosition> incarnation, String path, Double zoom, Double dx)
ImageEnvironmentWithGraph(Incarnation<T, Euclidean2DPosition> incarnation, String path, Double zoom)
ImageEnvironmentWithGraph(Incarnation<T, Euclidean2DPosition> incarnation, String path)
-
Method Summary
Modifier and Type Method Description NavigationGraph<Euclidean2DPosition, Euclidean2DTransformation, ConvexPolygon, Euclidean2DPassage>
getGraph()
-
Methods inherited from class it.unibo.alchemist.model.physics.environments.ContinuousPhysics2DEnvironment
farthestPositionReachable, getHeading, getNodesWithin, getShape, getShapeFactory, makePosition, setHeading
-
Methods inherited from class it.unibo.alchemist.model.environments.Euclidean2DEnvironment
getOrigin, makePosition, makePosition
-
Methods inherited from class it.unibo.alchemist.model.Environment
addGlobalReaction, addLayer, addNode, addTerminator, getDimensions, getDistanceBetweenNodes, getGlobalReactions, getIncarnation, getLayer, getLayers, getLinkingRule, getNeighborhood, getNodeByID, getNodeCount, getNodes, getNodesWithinRange, getNodesWithinRange, getOffset, getPosition, getSimulation, getSize, getSizeInDistanceUnits, isTerminated, removeGlobalReaction, removeNode, setLinkingRule, setSimulation
-
Methods inherited from class it.unibo.alchemist.model.physics.environments.Continuous2DObstacles
addObstacle, getObstacles, getObstaclesInRange, getObstaclesInRange, hasMobileObstacles, intersectsObstacle, next, next, removeObstacle
-
Methods inherited from class it.unibo.alchemist.model.EuclideanEnvironment
moveNode
-
Methods inherited from class kotlin.collections.MutableIterable
iterator
-
Methods inherited from class it.unibo.alchemist.model.physics.environments.LimitedContinuos2D
moveNodeToPosition
-
Methods inherited from class kotlin.collections.Iterable
forEach, spliterator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ImageEnvironmentWithGraph
ImageEnvironmentWithGraph(Incarnation<T, Euclidean2DPosition> incarnation, String path, Double zoom, Double dx, Double dy, Integer obstaclesColor, Integer roomsColor)
-
ImageEnvironmentWithGraph
ImageEnvironmentWithGraph(Incarnation<T, Euclidean2DPosition> incarnation, String path, Double zoom, Double dx, Double dy, Integer obstaclesColor)
-
ImageEnvironmentWithGraph
ImageEnvironmentWithGraph(Incarnation<T, Euclidean2DPosition> incarnation, String path, Double zoom, Double dx, Double dy)
-
ImageEnvironmentWithGraph
ImageEnvironmentWithGraph(Incarnation<T, Euclidean2DPosition> incarnation, String path, Double zoom, Double dx)
-
ImageEnvironmentWithGraph
ImageEnvironmentWithGraph(Incarnation<T, Euclidean2DPosition> incarnation, String path, Double zoom)
-
ImageEnvironmentWithGraph
ImageEnvironmentWithGraph(Incarnation<T, Euclidean2DPosition> incarnation, String path)
-
-
-
-