BioRect2DEnvironment

Constructors

Link copied to clipboard
constructor(incarnation: BiochemistryIncarnation, minX: Double, maxX: Double, minY: Double, maxY: Double)
Builds a BioRect2DEnvironment with given bounds.
constructor(incarnation: BiochemistryIncarnation)
Builds a BioRect2DEnvironment with infinite bounds.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val nodes: ListSet<Node<T>>
Link copied to clipboard
Link copied to clipboard
open var simulation: Simulation<T, P>

Functions

Link copied to clipboard
open fun addGlobalReaction(reaction: GlobalReaction<T>)
Link copied to clipboard
fun addLayer(m: Molecule, l: Layer<T, P>)
Link copied to clipboard
fun addNode(node: Node<T>, p: P): Boolean
Link copied to clipboard
fun addTerminator(terminator: Predicate<Environment<T, P>>)
Link copied to clipboard
abstract fun farthestPositionReachable(p: Node<T>, p1: P, p2: Double): P
open fun farthestPositionReachable(node: Node<T>, desiredPosition: Euclidean2DPosition, hitboxRadius: Double): Euclidean2DPosition
Link copied to clipboard
fun forEach(action: Consumer<in Node<T>>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getHeading(p: Node<T>): P
Link copied to clipboard
Link copied to clipboard
fun getLayers(): ListSet<Layer<T, P>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getNodeByID(id: Int): Node<T>
Link copied to clipboard
Link copied to clipboard
fun getNodesWithinRange(center: Node<T>, range: Double): ListSet<Node<T>>
Link copied to clipboard
Link copied to clipboard
open fun getOrigin(): P
Link copied to clipboard
fun getPosition(node: Node<T>): P
Link copied to clipboard
Link copied to clipboard
abstract fun getShapeFactory(): F
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun iterator(): Iterator<T>
Link copied to clipboard
abstract fun makePosition(p: Array<Number>): P
open fun makePosition(coordinates: Array<Number>): Euclidean2DPosition
Link copied to clipboard
fun moveNode(node: Node<Double>, @Nonnull direction: Euclidean2DPosition)
Link copied to clipboard
open fun moveNodeToPosition(node: Node<T>, newPos: Euclidean2DPosition)
Link copied to clipboard
Link copied to clipboard
fun removeNode(node: Node<T>)
Link copied to clipboard
open fun setHeading(node: Node<T>, direction: Euclidean2DPosition)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun toString(): String