Class GoAction

  • All Implemented Interfaces:
    jadex.commons.IPropertyObject, jadex.extension.envsupport.environment.ISpaceAction

    public class GoAction
    extends jadex.commons.SimplePropertyObject
    implements jadex.extension.envsupport.environment.ISpaceAction
    The go action for moving one field in one of four directions.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DIRECTION  
      static java.lang.String DOWN  
      static java.lang.String LEFT  
      static java.lang.String RIGHT  
      static java.lang.String UP
      The directions.
      • Fields inherited from class jadex.commons.SimplePropertyObject

        pcs, properties
      • Fields inherited from interface jadex.extension.envsupport.environment.ISpaceAction

        ACTOR_ID, OBJECT_ID
    • Constructor Summary

      Constructors 
      Constructor Description
      GoAction()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getId()
      Returns the ID of the action.
      java.lang.Object perform​(java.util.Map<java.lang.String,​java.lang.Object> parameters, jadex.extension.envsupport.environment.IEnvironmentSpace space)
      Performs the action.
      • Methods inherited from class jadex.commons.SimplePropertyObject

        addPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface jadex.commons.IPropertyObject

        getProperty, getPropertyNames, hasProperty, setProperty
    • Constructor Detail

      • GoAction

        public GoAction()
    • Method Detail

      • perform

        public java.lang.Object perform​(java.util.Map<java.lang.String,​java.lang.Object> parameters,
                                        jadex.extension.envsupport.environment.IEnvironmentSpace space)
        Performs the action.
        Specified by:
        perform in interface jadex.extension.envsupport.environment.ISpaceAction
        Parameters:
        parameters - parameters for the action
        space - the environment space
        Returns:
        action return value
      • getId

        public java.lang.Object getId()
        Returns the ID of the action.
        Returns:
        ID of the action