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 obstacles: List<W>
Link copied to clipboard
abstract val offset: DoubleArray
Link copied to clipboard
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
abstract fun addObstacle(obstacle: W)
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 getObstaclesInRange(center: Euclidean2DPosition, range: Double): List<W>

Given a point and a range, retrieves all the obstacles within.

abstract fun getObstaclesInRange(centerx: Double, centery: Double, range: Double): List<W>

Given a point and a range, retrieves all the obstacles within. This function is maintained for compatibility with the previous version of the API, and may be deprecated in the future.

Link copied to clipboard
abstract fun getPosition(node: Node<T>): Euclidean2DPosition
Link copied to clipboard
abstract fun hasMobileObstacles(): Boolean
Link copied to clipboard
Link copied to clipboard
abstract operator fun iterator(): Iterator<Node<T>>
Link copied to clipboard
abstract fun makePosition(vararg coordinates: Number): Euclidean2DPosition
open 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
Link copied to clipboard
abstract fun removeGlobalReaction(reaction: GlobalReaction<T>)
Link copied to clipboard
abstract fun removeNode(node: Node<T>)
Link copied to clipboard
abstract fun removeObstacle(obstacle: W): Boolean