Package 

Class LsaAllNeighborsAction

  • All Implemented Interfaces:
    it.unibo.alchemist.model.interfaces.Action , it.unibo.alchemist.model.interfaces.ILsaAction , java.io.Serializable

    
    public final class LsaAllNeighborsAction
    extends LsaRandomNeighborAction
                        

    The execution involves all neighbours. The molecule can be different from a neighbor to the other, because some special Variable (#D) are specific for each node. This is why N molecules are instanced if there are N neighbours.

    • 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()
      String toString()
      • Methods inherited from class it.unibo.alchemist.model.implementations.actions.LsaRandomNeighborAction

        cloneAction, getContext
      • Methods inherited from class it.unibo.alchemist.model.implementations.actions.LsaStandardAction

        cloneAction, getMolecule
      • Methods inherited from class it.unibo.alchemist.model.implementations.actions.LsaAbstractAction

        cloneAction, getNode, setExecutionContext
      • Methods inherited from class it.unibo.alchemist.model.implementations.actions.AbstractAction

        getOutboundDependencies, toString
      • Methods inherited from class it.unibo.alchemist.model.interfaces.ILsaAction

        cloneAction, getOutboundDependencies, setExecutionContext
      • Methods inherited from class it.unibo.alchemist.model.interfaces.Action

        cloneAction, execute, getContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LsaAllNeighborsAction

        LsaAllNeighborsAction(ILsaNode node, ILsaMolecule molecule, Environment<List<ILsaMolecule>, out Object> environment)
        Parameters:
        node - the node in which the reaction is programmed
        molecule - the lsa which is involved
        environment - the current environment
      • LsaAllNeighborsAction

        LsaAllNeighborsAction(ILsaNode node, ILsaMolecule molecule, Environment<List<ILsaMolecule>, out Object> environment, RandomGenerator randomGenerator)
        Parameters:
        node - the node in which the reaction is programmed
        molecule - the lsa which is involved
        environment - the current environment
        randomGenerator - unused.