Abstract Environment
Very generic and basic implementation for an environment. Basically, only manages an internal set of nodes and their position.
Parameters
concentration type
Position type
Inheritors
Properties
Functions
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.
Returns the current LinkingRule.
Returns all the Nodes that exist in current Environment.
This method allows to know which are the smallest coordinates represented. Return an array of length dimensions containing the smallest coordinates for each dimension.
Return the current Simulation, if present, or throws an IllegalStateException otherwise.
null
otherwise.Returns true the network is segmented, false otherwise.
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.
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.