Euclidean2DEnvironment

Types

Link copied to clipboard
object Companion

Constant values and utility methods for Euclidean2DEnvironment.

Properties

Link copied to clipboard
abstract val dimensions: Int
Link copied to clipboard
abstract val globalReactions: ListSet<GlobalReaction<T>>
Link copied to clipboard
Link copied to clipboard
abstract val isTerminated: Boolean
Link copied to clipboard
abstract val layers: ListSet<Layer<T, Euclidean2DPosition>>
Link copied to clipboard
Link copied to clipboard
abstract val nodeCount: Int
Link copied to clipboard
abstract val nodes: ListSet<Node<T>>
Link copied to clipboard
abstract val offset: DoubleArray
Link copied to clipboard
open override val origin: Euclidean2DPosition
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val size: DoubleArray
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun addGlobalReaction(reaction: GlobalReaction<T>)
Link copied to clipboard
abstract fun addLayer(molecule: Molecule, layer: Layer<T, Euclidean2DPosition>)
Link copied to clipboard
abstract fun addNode(node: Node<T>, position: Euclidean2DPosition): Boolean
Link copied to clipboard
Link copied to clipboard
abstract fun getDistanceBetweenNodes(n1: Node<T>, n2: Node<T>): Double
Link copied to clipboard
abstract fun getLayer(molecule: Molecule): Layer<T, Euclidean2DPosition>?
Link copied to clipboard
abstract fun getNeighborhood(node: Node<T>): Neighborhood<T>
Link copied to clipboard
abstract fun getNodeByID(id: Int): Node<T>
Link copied to clipboard
abstract fun getNodesWithinRange(node: Node<T>, range: Double): ListSet<Node<T>>
abstract fun getNodesWithinRange(position: Euclidean2DPosition, range: Double): ListSet<Node<T>>
Link copied to clipboard
abstract fun getPosition(node: Node<T>): Euclidean2DPosition
Link copied to clipboard
abstract operator fun iterator(): Iterator<Node<T>>
Link copied to clipboard
open override fun makePosition(vararg coordinates: Number): Euclidean2DPosition
open override fun makePosition(coordinates: List<Number>): Euclidean2DPosition

Creates a new Euclidean2DPosition.

Link copied to clipboard
open fun moveNode(node: Node<T>, direction: Euclidean2DPosition)
Link copied to clipboard
abstract fun moveNodeToPosition(node: Node<T>, position: Euclidean2DPosition)
Link copied to clipboard
abstract fun removeGlobalReaction(reaction: GlobalReaction<T>)
Link copied to clipboard
abstract fun removeNode(node: Node<T>)