Interface Action

  • All Implemented Interfaces:
    java.io.Serializable

    
    public interface Action<T>
     implements Serializable
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Action<T> cloneAction(Node<T> node, Reaction<T> reaction) This method allows to clone this action on a new node.
      abstract void execute() Effectively executes this action.
      abstract Context getContext()
      abstract ListSet<out Dependency> getOutboundDependencies()
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • cloneAction

         abstract Action<T> cloneAction(Node<T> node, Reaction<T> reaction)

        This method allows to clone this action on a new node. It may result useful to support runtime creation of nodes with the same reaction programming, e.g. for morphogenesis.

        Parameters:
        node - The node where to clone this Action
        reaction - The reaction to which the CURRENT action is assigned
        Returns:

        the cloned action

      • execute

         abstract void execute()

        Effectively executes this action.