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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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 environment
        node - the node
        response - the molecule to move
        gradient - the molecule template that, once matched, will contain the node ID where move the molecule
        idPosition - the argument number where to search for the node ID