Class GoAction
- java.lang.Object
-
- jadex.commons.SimplePropertyObject
-
- jadex.bdiv3.examples.garbagecollector.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.
-
-
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
-
-
-
-
Field Detail
-
UP
public static final java.lang.String UP
The directions.- See Also:
- Constant Field Values
-
DOWN
public static final java.lang.String DOWN
- See Also:
- Constant Field Values
-
LEFT
public static final java.lang.String LEFT
- See Also:
- Constant Field Values
-
RIGHT
public static final java.lang.String RIGHT
- See Also:
- Constant Field Values
-
DIRECTION
public static final java.lang.String DIRECTION
- See Also:
- Constant Field Values
-
-
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 interfacejadex.extension.envsupport.environment.ISpaceAction
- Parameters:
parameters
- parameters for the actionspace
- the environment space- Returns:
- action return value
-
getId
public java.lang.Object getId()
Returns the ID of the action.- Returns:
- ID of the action
-
-