Abstract2DEnvironment

abstract class Abstract2DEnvironment<T, P : Position2D<P>?> : AbstractEnvironment<T, P>

Models a bidimensional environment.

Parameters

<T>

concentration type

<P>

Functions

Link copied to clipboard
fun addLayer(m: Molecule, l: Layer<T, P>)
abstract fun addLayer(p: Molecule, p1: Layer<T, P>)
Link copied to clipboard
fun addNode(node: Node<T>, p: P)
abstract fun addNode(p: Node<T>, p1: P)
Link copied to clipboard
fun addTerminator(terminator: Predicate<Environment<T, P>>)
abstract fun addTerminator(p: Predicate<Environment<T, P>>)
Link copied to clipboard
fun forEach(action: Consumer<out Any>)
open fun forEach(action: Consumer<out Any>)
Link copied to clipboard
fun getDimensions(): Int
Link copied to clipboard
fun getDistanceBetweenNodes(n1: Node<T>, n2: Node<T>): Double
abstract fun getDistanceBetweenNodes(p: Node<T>, p1: Node<T>): Double
Link copied to clipboard
fun getIncarnation(): Optional<Incarnation<T, P>>
abstract fun getIncarnation(): Optional<Incarnation<T, P>>
Link copied to clipboard
fun getLayer(m: Molecule): Optional<Layer<T, P>>
abstract fun getLayer(p: Molecule): Optional<Layer<T, P>>
Link copied to clipboard
fun getLayers(): ListSet<Layer<T, P>>
abstract fun getLayers(): ListSet<Layer<T, P>>
Link copied to clipboard
fun getLinkingRule(): LinkingRule<T, P>
abstract fun getLinkingRule(): LinkingRule<T, P>
Link copied to clipboard
fun getNeighborhood(@Nonnull center: Node<T>): Neighborhood<T>
abstract fun getNeighborhood(p: Node<T>): Neighborhood<T>
Link copied to clipboard
fun getNodeByID(id: Int): Node<T>
abstract fun getNodeByID(p: Int): Node<T>
Link copied to clipboard
fun getNodeCount(): Int
abstract fun getNodeCount(): Int
Link copied to clipboard
fun getNodes(): ListSet<Node<T>>
abstract fun getNodes(): ListSet<Node<T>>
Link copied to clipboard
fun getNodesWithinRange(center: P, range: Double): ListSet<Node<T>>
fun getNodesWithinRange(center: Node<T>, range: Double): ListSet<Node<T>>
abstract fun getNodesWithinRange(p: Node<T>, p1: Double): ListSet<Node<T>>
Link copied to clipboard
fun getOffset(): Array<Double>
Link copied to clipboard
fun getPosition(node: Node<T>): P
This method should not get overridden in general.
abstract fun getPosition(p: Node<T>): P
Link copied to clipboard
fun getSimulation(): Simulation<T, P>
abstract fun getSimulation(): Simulation<T, P>
Link copied to clipboard
fun getSize(): Array<Double>
Link copied to clipboard
open fun getSizeInDistanceUnits(): Array<Double>
Override this method if units measuring distance do not match with units used for coordinates.
abstract fun getSizeInDistanceUnits(): Array<Double>
Link copied to clipboard
fun isTerminated(): Boolean
abstract fun isTerminated(): Boolean
Link copied to clipboard
fun iterator(): Iterator<Node<T>>
abstract fun iterator(): Iterator<T>
Link copied to clipboard
abstract fun makePosition(p: Array<Number>): P
Link copied to clipboard
open fun moveNodeToPosition(node: Node<T>, newpos: P)
Subclasses may override this method if they want to change the way a node moves towards some absolute position.
Link copied to clipboard
fun removeNode(@Nonnull node: Node<T>)
abstract fun removeNode(p: Node<T>)
Link copied to clipboard
fun setLinkingRule(r: LinkingRule<T, P>)
abstract fun setLinkingRule(p: LinkingRule<T, P>)
Link copied to clipboard
fun setSimulation(s: Simulation<T, P>)
abstract fun setSimulation(p: Simulation<T, P>)
Link copied to clipboard
fun spliterator(): Spliterator<Node<T>>
open fun spliterator(): Spliterator<T>
Link copied to clipboard
open fun toString(): String
Not used internally.

Inheritors

Link copied to clipboard
Link copied to clipboard