Class SAPEREWalker

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

    
    public final class SAPEREWalker
    extends MoveOnMap<T, O, S> implements ILsaAction
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      SAPEREWalker cloneAction(Node<List<ILsaMolecule>> node, Reaction<List<ILsaMolecule>> reaction)
      ILsaNode getNode()
      void setExecutionContext(Map<HashString, ITreeNode<out Object>> matches, List<ILsaNode> nodes) Sets the context in which this action will execute.
      • Methods inherited from class it.unibo.alchemist.model.maps.actions.MoveOnMap

        getEnvironment
      • Methods inherited from class it.unibo.alchemist.model.sapere.ILsaAction

        getOutboundDependencies
      • Methods inherited from class it.unibo.alchemist.model.actions.AbstractConfigurableMoveNode

        getNextPosition
      • Methods inherited from class it.unibo.alchemist.model.actions.AbstractMoveNode

        execute, getContext
      • Methods inherited from class it.unibo.alchemist.model.actions.AbstractAction

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

        cloneAction
      • Methods inherited from class java.lang.Object

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

      • SAPEREWalker

        SAPEREWalker(MapEnvironment<List<ILsaMolecule>, GraphHopperOptions, GraphHopperRoutingService> environment, ILsaNode node, Reaction<List<ILsaMolecule>> reaction, double speed, double interaction, double range)
        Parameters:
        environment - the environment
        node - the node
        reaction - the reaction (used to compute the movement length)
        speed - the average speed of the node
        interaction - the interaction factor
        range - the interaction range
      • SAPEREWalker

        SAPEREWalker(MapEnvironment<List<ILsaMolecule>, GraphHopperOptions, GraphHopperRoutingService> environment, ILsaNode node, Reaction<List<ILsaMolecule>> reaction, ILsaMolecule tag, double speed, double interaction, double range)
        Parameters:
        environment - the environment
        node - the node
        reaction - the reaction (used to compute the movement length)
        tag - the molecule which identifies the interacting nodes
        speed - the average speed of the node
        interaction - the interaction factor
        range - the interaction range