-
- All Implemented Interfaces:
public interface Incarnation<T, P extends Position<out P>>
-
-
Method Summary
Modifier and Type Method Description abstract doublegetProperty(Node<T> node, Molecule molecule, String property)Given an Node, an Molecule and a property expressed as a String, returns a numeric value. abstract MoleculecreateMolecule(String s)Parses a String, and provides a Molecule. abstract TcreateConcentration(String s)Creates a new concentration object of a specific concrete type. abstract Node<T>createNode(RandomGenerator randomGenerator, Environment<T, P> environment, @Nullable() String parameter)abstract TimeDistribution<T>createTimeDistribution(RandomGenerator randomGenerator, Environment<T, P> environment, Node<T> node, @Nullable() String parameter)abstract Reaction<T>createReaction(RandomGenerator randomGenerator, Environment<T, P> environment, Node<T> node, TimeDistribution<T> timeDistribution, String parameter)abstract Condition<T>createCondition(RandomGenerator randomGenerator, Environment<T, P> environment, Node<T> node, TimeDistribution<T> time, Reaction<T> reaction, String additionalParameters)abstract Action<T>createAction(RandomGenerator randomGenerator, Environment<T, P> environment, Node<T> node, TimeDistribution<T> time, Reaction<T> reaction, String additionalParameters)-
-
Method Detail
-
getProperty
abstract double getProperty(Node<T> node, Molecule molecule, String property)
Given an Node, an Molecule and a property expressed as a String, returns a numeric value. If a numeric value is not deducible, Double.NaN is returned.
- Parameters:
node- the nodemolecule- the molecule to analyzeproperty- the property to extract
-
createMolecule
abstract Molecule createMolecule(String s)
- Parameters:
s- the String to parse
-
createConcentration
abstract T createConcentration(String s)
Creates a new concentration object of a specific concrete type.
- Parameters:
s- the String to parse
-
createNode
abstract Node<T> createNode(RandomGenerator randomGenerator, Environment<T, P> environment, @Nullable() String parameter)
- Parameters:
randomGenerator- the random engineenvironment- the environment that will host this objectparameter- a String describing the object
-
createTimeDistribution
abstract TimeDistribution<T> createTimeDistribution(RandomGenerator randomGenerator, Environment<T, P> environment, Node<T> node, @Nullable() String parameter)
- Parameters:
randomGenerator- the random engineenvironment- the environment that will host this objectnode- the node that will host this objectparameter- a String describing the object
-
createReaction
abstract Reaction<T> createReaction(RandomGenerator randomGenerator, Environment<T, P> environment, Node<T> node, TimeDistribution<T> timeDistribution, String parameter)
- Parameters:
randomGenerator- the random engineenvironment- the environment that will host this objectnode- the node that will host this objecttimeDistribution- the time distribution of the reactionparameter- a String describing the object
-
createCondition
abstract Condition<T> createCondition(RandomGenerator randomGenerator, Environment<T, P> environment, Node<T> node, TimeDistribution<T> time, Reaction<T> reaction, String additionalParameters)
- Parameters:
randomGenerator- the random engineenvironment- the environment that will host this objectnode- the node that will host this objecttime- the time distribution of the reactionreaction- the reaction hosting this objectadditionalParameters- a String describing the object
-
createAction
abstract Action<T> createAction(RandomGenerator randomGenerator, Environment<T, P> environment, Node<T> node, TimeDistribution<T> time, Reaction<T> reaction, String additionalParameters)
- Parameters:
randomGenerator- the random engineenvironment- the environment that will host this objectnode- the node that will host this objecttime- the time distribution of the reactionreaction- the reaction hosting this objectadditionalParameters- a String describing the object
-
-
-
-