Class SAPEREChemotaxis
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Action
,it.unibo.alchemist.model.sapere.ILsaAction
,java.io.Serializable
public final class SAPEREChemotaxis<P extends Position<P>> extends SAPERENeighborAgent<P>
This class provides a chemotaxis implementation for SAPERE, namely, an agent able to move a molecule towards a specific node.
-
-
Constructor Summary
Constructors Constructor Description SAPEREChemotaxis(Environment<List<ILsaMolecule>, P> environment, ILsaNode node, ILsaMolecule response, ILsaMolecule gradient, int idPosition)
Builds a new SAPEREChemotaxis.
-
Method Summary
Modifier and Type Method Description void
execute()
-
Methods inherited from class it.unibo.alchemist.model.sapere.actions.SAPERENeighborAgent
getContext
-
Methods inherited from class it.unibo.alchemist.model.sapere.actions.SAPEREAgent
cloneAction, toString
-
Methods inherited from class it.unibo.alchemist.model.sapere.actions.LsaAbstractAction
cloneAction, getNode, setExecutionContext
-
Methods inherited from class it.unibo.alchemist.model.actions.AbstractAction
getOutboundDependencies, toString
-
Methods inherited from class it.unibo.alchemist.model.sapere.ILsaAction
cloneAction, getOutboundDependencies, setExecutionContext
-
Methods inherited from class it.unibo.alchemist.model.Action
cloneAction, getContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SAPEREChemotaxis
SAPEREChemotaxis(Environment<List<ILsaMolecule>, P> environment, ILsaNode node, ILsaMolecule response, ILsaMolecule gradient, int idPosition)
Builds a new SAPEREChemotaxis.- Parameters:
environment
- the environmentnode
- the noderesponse
- the molecule to movegradient
- the molecule template that, once matched, will contain the node ID where move the moleculeidPosition
- the argument number where to search for the node ID
-
-
Method Detail
-
execute
void execute()
-
-
-
-