Node
Parameters
This interface must be implemented in every realization of node
Inheritors
Properties
Functions
Adds a capability to the node. Properties are part of the node setup: adding one fails once the node is in an environment, so properties can be read without being observed.
Registers reaction and notifies the running simulation when it was not already present. Fails if this is not the Reaction.host of reaction.
returns a Capability of the provided superType.
Returns the node property of the reified type C.
returns a Capability of the provided superType.
Returns the node property of the reified type C, or null if the node does not have a compatible property.
Creates a new Node which is a clone of the current Node. The new Node will have all the current Node's properties, such as reactions and molecules, but it will also have a different ID. Its reactions are cloned through NodeReaction.cloneOnNewNode.
Observe the concentration calculated with the given molecule. The result of this computation is wrapped into an Option and some if the value is present, otherwise none.
Observes whether a node contains a Molecule.
Unregisters this reaction from its host, see removeReaction.
Unregisters reaction and notifies the running simulation when it was actually present.
Converts a Node to a NodeSurrogate.
A function that maps a it.unibo.alchemist.model.Node to its surrogate class it.unibo.alchemist.boundary.webui.common.model.surrogate.NodeSurrogate.