Environment Supporting Deformable Cells
Functions
Add a GlobalReaction to the Environment.
Add a terminator indicating whether the simulation should be considered finished.
Calculates the shortest paths using the Floyd-Warshall algorithm calculating the Hop Distance between nodes.
Computes all the minimum distances with the provided metric using the Floyd–Warshall algorithm.
Computes the diameter of all subnetworks in the environment. The diameter is the longest shortest path between any two nodes. Returns a Set containing the SubNetworks.
Computes the diameter of all subnetworks in the environment. The diameter is the longest shortest path between any two nodes. Returns a Set containing the SubNetworks.
Computes the diameter of all subnetworks in the environment. The diameter is the longest shortest path between any two nodes, evaluated using the allShortestHopPaths method. Returns a Set containing the SubNetworks.
Computes the diameter of all subnetworks in the environment. The diameter is the longest shortest path between any two nodes, evaluated using the allShortestHopPaths method. Returns a Set containing the SubNetworks.
The number of dimensions of this environment.
Get the Environment's GlobalReactions.
Return the Incarnation used to initialize the entities of this Environment, if it has been set.
Return all the Layers in this Environment.
Returns the current LinkingRule.
Given a node, this method returns its neighborhood.
Allows accessing a Node in this Environment known its id. Depending on the implementation, this method may or may not be optimized (namely, id could run in constant or linear time with the number of nodes).
Returns the number of Nodes currently in the Environment.
Returns all the Nodes that exist in current Environment.
Given a node this method returns a list of all the surrounding nodes within the given range. Note that this method (depending on the implementation) might be not optimized, and it's consequently much better to use Environment.getNeighborhood and filter the neighborhood if you are sure that all the nodes within the range are connected to the center.
This method allows to know which are the smallest coordinates represented. Return an array of length dimensions containing the smallest coordinates for each dimension.
Calculates the position of a node.
Return the current Simulation, if present, or throws an IllegalStateException otherwise.
Return the current Simulation, if present, or null
otherwise.
This method returns the size of the environment as an array of length .getDimensions. This method must return distance measured with the same unit used for measuring distances. It may or may not return the same result of .getSize.
Returns true the network is segmented, false otherwise.
Return true if all the terminators are true.
Given the coordinates of the point, returns a Position compatible with this environment.
Returns the diameter of the network in environment units if it is not segmented, and NaN otherwise.
Returns a random element of the Iterable using the provided randomGenerator.
Remove a GlobalReaction from the Environment.
Removes node. If node removal is unsupported, it does nothing.
Returns the current LinkingRule.
Return the current Simulation, if present, or throws an IllegalStateException otherwise.
Returns the EnvironmentSubscriptionMonitor of this Environment.
A function that maps an Environment to its surrogate class (EnvironmentSurrogate). Use the toSuitablePositionSurrogate strategy for PositionSurrogate mapping.
A function that maps an Environment to its surrogate class (EnvironmentSurrogate).
Converts an Environment to a EnvironmentSurrogate.