EnvironmentSupportingDeformableCells

An Environment supporting deformable cells.

Type Parameters

P

position type

Inheritors

Properties

Link copied to clipboard
Link copied to clipboard
abstract val dimensions: Int
Link copied to clipboard
Link copied to clipboard
abstract val isTerminated: Boolean
Link copied to clipboard
abstract val layers: Map<Molecule, Layer<Double, P>>
Link copied to clipboard

The biggest diameter among the unstressed deformable cells, or zero if there are none. It changes as cells are added and removed, which changes the range within which deformable cells interact.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val nodeCount: Observable<Int>
Link copied to clipboard
Link copied to clipboard
abstract val offset: DoubleArray
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract var simulation: Simulation<Double, P>
Link copied to clipboard
Link copied to clipboard
abstract val size: DoubleArray
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun addLayer(molecule: Molecule, layer: Layer<Double, P>)
Link copied to clipboard
abstract fun addNode(node: Node<Double>, position: P): Boolean
Link copied to clipboard
abstract fun addReaction(reaction: Reaction<Double>)
Link copied to clipboard
abstract fun addTerminator(terminator: TerminationPredicate<Double, P>)
open fun addTerminator(terminator: (Environment<Double, P>) -> Boolean)
Link copied to clipboard
open operator fun contains(node: Node<Double>): Boolean
Link copied to clipboard
open fun currentPositionOf(node: Node<Double>): P
Link copied to clipboard
abstract fun distanceBetween(n1: Node<Double>, n2: Node<Double>): Double
Link copied to clipboard
open fun Node<Double>.distanceTo(other: Node<Double>): Double
Link copied to clipboard
open fun farthestReachablePosition(node: Node<Double>, desired: P): P
Link copied to clipboard
abstract fun layerFor(molecule: Molecule): Layer<Double, P>?
Link copied to clipboard
abstract fun makePosition(coordinates: DoubleArray): P
open fun makePosition(coordinates: List<Number>): P
abstract fun makePosition(vararg coordinates: Number): P
Link copied to clipboard
abstract fun moveNodeTo(node: Node<Double>, position: P)
Link copied to clipboard
open fun Node<Double>.moveTo(position: P)
Link copied to clipboard
Link copied to clipboard
abstract fun nodesAround(position: P, range: Double): List<Node<Double>>
abstract fun nodesAround(node: Node<Double>, range: Double): List<Node<Double>>
Link copied to clipboard
open fun P.nodesInRange(range: Double): List<Node<Double>>
Link copied to clipboard
abstract fun nodeWithId(id: Int): Node<Double>
Link copied to clipboard
abstract fun observeLayerValue(molecule: Molecule, node: Node<Double>): Observable<Double?>
Link copied to clipboard
abstract fun observeNodesAround(position: P, range: Double): ObservableSet<Node<Double>>
abstract fun observeNodesAround(node: Node<Double>, range: Double): ObservableSet<Node<Double>>
Link copied to clipboard
abstract fun positionOf(node: Node<Double>): Observable<P>
Link copied to clipboard
open fun Node<Double>.remove()
open fun Reaction<Double>.remove()
Link copied to clipboard
abstract fun removeNode(node: Node<Double>)
Link copied to clipboard
abstract fun removeReaction(reaction: Reaction<Double>)
Link copied to clipboard