Class BioRect2DEnvironmentNoOverlap
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Environment
,it.unibo.alchemist.model.EuclideanEnvironment
,it.unibo.alchemist.model.biochemistry.EnvironmentSupportingDeformableCells
,it.unibo.alchemist.model.environments.Euclidean2DEnvironment
,it.unibo.alchemist.model.physics.PhysicsEnvironment
,it.unibo.alchemist.model.physics.environments.Physics2DEnvironment
,java.io.Serializable
,java.lang.Iterable
public final class BioRect2DEnvironmentNoOverlap extends BioRect2DEnvironment implements EnvironmentSupportingDeformableCells<P>
Implements a limited environment supporting cells with a defined shape, avoiding any overlapping among them.
-
-
Field Summary
Fields Modifier and Type Field Description public final Euclidean2DShapeFactory
shapeFactory
public final ListSet<GlobalReaction<T>>
globalReactions
public final ListSet<Node<T>>
nodes
public transient Incarnation<T, P>
incarnation
public transient Simulation<T, P>
simulation
-
Constructor Summary
Constructors Constructor Description BioRect2DEnvironmentNoOverlap(BiochemistryIncarnation incarnation)
Returns an infinite BioRect2DEnvironment. BioRect2DEnvironmentNoOverlap(BiochemistryIncarnation incarnation, double minX, double maxX, double minY, double maxY)
Returns a limited rectangular BioRect2DEnvironment.
-
Method Summary
Modifier and Type Method Description void
moveNodeToPosition(@Nonnull() Node<Double> node, Euclidean2DPosition newPos)
double
getMaxDiameterAmongCircularDeformableCells()
-
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.AbstractEnvironment
addGlobalReaction, addLayer, addNode, addTerminator, forEach, getDistanceBetweenNodes, getGlobalReactions, getIncarnation, getLayer, getLayers, getLinkingRule, getNeighborhood, getNodeByID, getNodeCount, getNodes, getNodesWithinRange, getPosition, getSimulation, getSizeInDistanceUnits, isTerminated, iterator, removeGlobalReaction, removeNode, setLinkingRule, setSimulation, spliterator, toString
-
Methods inherited from class it.unibo.alchemist.model.biochemistry.environments.BioRect2DEnvironment
moveNode
-
Methods inherited from class it.unibo.alchemist.model.environments.Abstract2DEnvironment
getDimensions, getOffset, getSize
-
Methods inherited from class it.unibo.alchemist.model.environments.Euclidean2DEnvironment
getOrigin
-
Methods inherited from class it.unibo.alchemist.model.Environment
makePosition
-
Methods inherited from class java.lang.Iterable
iterator, spliterator
-
Methods inherited from class it.unibo.alchemist.model.EuclideanEnvironment
getOrigin, moveNode
-
Methods inherited from class it.unibo.alchemist.model.physics.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(BiochemistryIncarnation incarnation)
Returns an infinite BioRect2DEnvironment.- Parameters:
incarnation
- the current BiochemistryIncarnation
-
BioRect2DEnvironmentNoOverlap
BioRect2DEnvironmentNoOverlap(BiochemistryIncarnation incarnation, double minX, double maxX, double minY, double maxY)
Returns a limited rectangular BioRect2DEnvironment.- Parameters:
incarnation
- the current BiochemistryIncarnationminX
- 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(@Nonnull() Node<Double> node, Euclidean2DPosition newPos)
-
getMaxDiameterAmongCircularDeformableCells
double getMaxDiameterAmongCircularDeformableCells()
- Returns:
the biggest among the deformable cell's diameter, when not stressed.
-
-
-
-