Class GoAction
- java.lang.Object
- 
- jadex.commons.SimplePropertyObject
- 
- jadex.bdiv3.examples.garbagecollector.GoAction
 
 
- 
- All Implemented Interfaces:
- IPropertyObject,- ISpaceAction
 
 public class GoAction extends SimplePropertyObject implements ISpaceAction The go action for moving one field in one of four directions.
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringDIRECTIONstatic java.lang.StringDOWNstatic java.lang.StringLEFTstatic java.lang.StringRIGHTstatic java.lang.StringUPThe directions.- 
Fields inherited from class jadex.commons.SimplePropertyObjectpcs, properties
 - 
Fields inherited from interface jadex.extension.envsupport.environment.ISpaceActionACTOR_ID, OBJECT_ID
 
- 
 - 
Constructor SummaryConstructors Constructor Description GoAction()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetId()Returns the ID of the action.java.lang.Objectperform(java.util.Map<java.lang.String,java.lang.Object> parameters, IEnvironmentSpace space)Performs the action.- 
Methods inherited from class jadex.commons.SimplePropertyObjectaddPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toString
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface jadex.commons.IPropertyObjectgetProperty, getPropertyNames, hasProperty, setProperty
 
- 
 
- 
- 
- 
Field Detail- 
UPpublic static final java.lang.String UP The directions.- See Also:
- Constant Field Values
 
 - 
DOWNpublic static final java.lang.String DOWN - See Also:
- Constant Field Values
 
 - 
LEFTpublic static final java.lang.String LEFT - See Also:
- Constant Field Values
 
 - 
RIGHTpublic static final java.lang.String RIGHT - See Also:
- Constant Field Values
 
 - 
DIRECTIONpublic static final java.lang.String DIRECTION - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
performpublic java.lang.Object perform(java.util.Map<java.lang.String,java.lang.Object> parameters, IEnvironmentSpace space)Performs the action.- Specified by:
- performin interface- ISpaceAction
- Parameters:
- parameters- parameters for the action
- space- the environment space
- Returns:
- action return value
 
 - 
getIdpublic java.lang.Object getId() Returns the ID of the action.- Returns:
- ID of the action
 
 
- 
 
-