Environment
interface Environment<T, P : Position<out P>?> : Serializable, Iterable<T>
Content copied to clipboard
Interface for an environment. Every environment must implement this specification.
Parameters
<P>
Concentration type
<T>
Position type
Functions
Link copied to clipboard
Add a Actionable to the Environment.
Link copied to clipboard
Link copied to clipboard
The number of dimensions of this environment.
Link copied to clipboard
Link copied to clipboard
Get the Environment's Actionables.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Given a node, this method returns its neighborhood.
Link copied to clipboard
Allows to access a node known its id.
Link copied to clipboard
Link copied to clipboard
abstract fun getNodesWithinRange(center: P, range: Double): ListSet<Node<T>>
Content copied to clipboard
Given a Position(center) this method returns a list of all the surroundings nodes within the given range.
abstract fun getNodesWithinRange(center: Node<T>, range: Double): ListSet<Node<T>>
Content copied to clipboard
Given a node (center) this method returns a list of all the surroundings nodes within the given range.
Link copied to clipboard
Calculates the position of a node.
Link copied to clipboard
Link copied to clipboard
This method returns the size of the environment as an array of length getDimensions.
Link copied to clipboard
This method returns the size of the environment as an array of length getDimensions.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
This method allows to remove a node.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard