-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Environment,it.unibo.alchemist.model.interfaces.EnvironmentWithObstacles,it.unibo.alchemist.model.interfaces.EuclideanEnvironment,it.unibo.alchemist.model.interfaces.environments.Euclidean2DEnvironment,java.io.Serializable,kotlin.collections.Iterable,kotlin.collections.MutableIterable
public interface Environment2DWithObstacles<W extends Obstacle2D<Euclidean2DPosition>, T extends Object> implements EnvironmentWithObstacles<W, T, Euclidean2DPosition>, Euclidean2DEnvironment<T>
A bidimensional EnvironmentWithObstacles.
-
-
Method Summary
Modifier and Type Method Description abstract List<W>getObstaclesInRange(Euclidean2DPosition center, Double range)Given a point and a range, retrieves all the obstacles within. abstract List<W>getObstaclesInRange(Double centerx, Double centery, Double range)Given a point and a range, retrieves all the obstacles within. abstract BooleanhasMobileObstacles()abstract List<W>getObstacles()Euclidean2DPositiongetOrigin()-
Methods inherited from class it.unibo.alchemist.model.interfaces.EuclideanEnvironment
addLayer, addNode, addTerminator, getDimensions, getDistanceBetweenNodes, getIncarnation, getLayer, getLayers, getLinkingRule, getNeighborhood, getNodeByID, getNodeCount, getNodes, getNodesWithinRange, getNodesWithinRange, getOffset, getPosition, getSimulation, getSize, getSizeInDistanceUnits, isTerminated, makePosition, moveNodeToPosition, removeNode, setLinkingRule, setSimulation -
Methods inherited from class it.unibo.alchemist.model.interfaces.environments.Environment2DWithObstacles
addObstacle, intersectsObstacle, makePosition, next, removeObstacle -
Methods inherited from class kotlin.collections.MutableIterable
forEach, spliterator -
Methods inherited from class it.unibo.alchemist.model.interfaces.Environment
iterator -
Methods inherited from class it.unibo.alchemist.model.interfaces.EnvironmentWithObstacles
makePosition, moveNode -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getObstaclesInRange
abstract List<W> getObstaclesInRange(Euclidean2DPosition center, Double range)
Given a point and a range, retrieves all the obstacles within.
- Parameters:
center-the center pointrange-the range to scan
-
getObstaclesInRange
abstract List<W> getObstaclesInRange(Double centerx, Double centery, Double range)
Given a point and a range, retrieves all the obstacles within.
- Parameters:
centerx-the x coordinate of the centercentery-the y coordinate of the centerrange-the range to scan
-
hasMobileObstacles
abstract Boolean hasMobileObstacles()
-
getObstacles
abstract List<W> getObstacles()
-
getOrigin
Euclidean2DPosition getOrigin()
-
-
-
-