-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Environment,it.unibo.alchemist.model.interfaces.Environment,it.unibo.alchemist.model.interfaces.EnvironmentSupportingDeformableCells,it.unibo.alchemist.model.interfaces.EuclideanEnvironment,it.unibo.alchemist.model.interfaces.EuclideanEnvironment,it.unibo.alchemist.model.interfaces.environments.Euclidean2DEnvironment,it.unibo.alchemist.model.interfaces.environments.Physics2DEnvironment,it.unibo.alchemist.model.interfaces.environments.PhysicsEnvironment,java.io.Serializable,java.lang.Iterable
public final class BioRect2DEnvironmentNoOverlap extends BioRect2DEnvironment implements EnvironmentSupportingDeformableCells<Euclidean2DPosition>
Implements a limited environment supporting cells with a defined shape, avoiding any overlapping among them.
-
-
Constructor Summary
Constructors Constructor Description BioRect2DEnvironmentNoOverlap()Returns an infinite BioRect2DEnvironment. BioRect2DEnvironmentNoOverlap(double minX, double maxX, double minY, double maxY)Returns a limited rectangular BioRect2DEnvironment.
-
Method Summary
Modifier and Type Method Description voidmoveNodeToPosition(Node<Double> node, Euclidean2DPosition newPos)doublegetMaxDiameterAmongCircularDeformableCells()-
Methods inherited from class it.unibo.alchemist.model.implementations.environments.BioRect2DEnvironment
moveNode -
Methods inherited from class it.unibo.alchemist.model.implementations.environments.Continuous2DEnvironment
farthestPositionReachable, getHeading, getNodesWithin, getShape, getShapeFactory, makePosition, setHeading -
Methods inherited from class it.unibo.alchemist.model.implementations.environments.Abstract2DEnvironment
getDimensions, getOffset, getSize -
Methods inherited from class it.unibo.alchemist.model.implementations.environments.AbstractEnvironment
addLayer, addNode, addTerminator, forEach, getDistanceBetweenNodes, getIncarnation, getLayer, getLayers, getLinkingRule, getNeighborhood, getNodeByID, getNodeCount, getNodes, getNodesWithinRange, getPosition, getSimulation, getSizeInDistanceUnits, isTerminated, iterator, removeNode, setLinkingRule, setSimulation, spliterator, toString -
Methods inherited from class it.unibo.alchemist.model.interfaces.Environment
makePosition -
Methods inherited from class java.lang.Iterable
iterator, spliterator -
Methods inherited from class it.unibo.alchemist.model.interfaces.environments.Euclidean2DEnvironment
getOrigin -
Methods inherited from class it.unibo.alchemist.model.interfaces.EuclideanEnvironment
getOrigin, moveNode -
Methods inherited from class it.unibo.alchemist.model.interfaces.environments.PhysicsEnvironment
farthestPositionReachable, getHeading, getShape, getShapeFactory -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
BioRect2DEnvironmentNoOverlap
BioRect2DEnvironmentNoOverlap()
Returns an infinite BioRect2DEnvironment.
-
BioRect2DEnvironmentNoOverlap
BioRect2DEnvironmentNoOverlap(double minX, double maxX, double minY, double maxY)
Returns a limited rectangular BioRect2DEnvironment.- Parameters:
minX- rectangle's min x value.maxX- rectangle's max x value.minY- rectangle's min y value.maxY- rectangle's max y value.
-
-
Method Detail
-
moveNodeToPosition
void moveNodeToPosition(Node<Double> node, Euclidean2DPosition newPos)
-
getMaxDiameterAmongCircularDeformableCells
double getMaxDiameterAmongCircularDeformableCells()
-
-
-
-