-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Action,java.io.Serializable
public final class ChemotacticPolarization<P extends Position2D<P>> extends AbstractAction<Double>
-
-
Constructor Summary
Constructors Constructor Description ChemotacticPolarization(Environment<Double, P> environment, CellNode<P> node, Biomolecule biomolecule, String ascendGrad)ChemotacticPolarization(Environment<Double, P> environment, Node<Double> node, String biomolecule, String ascendGrad)Initialize a polarization activity regulated by environmental concentration of a molecule.
-
Method Summary
Modifier and Type Method Description ChemotacticPolarization<P>cloneAction(Node<Double> node, Reaction<Double> reaction)voidexecute()ContextgetContext()CellNode<P>getNode()-
-
Constructor Detail
-
ChemotacticPolarization
ChemotacticPolarization(Environment<Double, P> environment, CellNode<P> node, Biomolecule biomolecule, String ascendGrad)
- Parameters:
environment- the environmentnode- the nodebiomolecule- biomolecule's nameascendGrad- if that parameter is true, the polarization versor of the cell will be directed in direction of the highest concentration of biomolecule in neighborhood; if it's false, the versor will be directed in the exactly the opposite direction.
-
ChemotacticPolarization
ChemotacticPolarization(Environment<Double, P> environment, Node<Double> node, String biomolecule, String ascendGrad)
Initialize a polarization activity regulated by environmental concentration of a molecule.- Parameters:
environment- the environmentnode- the nodebiomolecule- biomolecule's nameascendGrad- if that parameter is true, the polarization versor of the cell will be directed in direction of the highest concentration of biomolecule in neighborhood; if it's false, the versor will be directed in the exactly the opposite direction.
-
-
Method Detail
-
cloneAction
ChemotacticPolarization<P> cloneAction(Node<Double> node, Reaction<Double> reaction)
-
execute
void execute()
-
getContext
Context getContext()
-
-
-
-