jadex.micro.examples.hunterprey
Class EatAction

java.lang.Object
  extended by jadex.commons.SimplePropertyObject
      extended by jadex.micro.examples.hunterprey.EatAction
All Implemented Interfaces:
ISpaceAction, IPropertyObject

public class EatAction
extends SimplePropertyObject
implements ISpaceAction

Action for eating food or another creature.


Field Summary
static java.lang.String PROPERTY_POINTS
          The property for the points of a creature.
 
Fields inherited from class jadex.commons.SimplePropertyObject
pcs, properties
 
Fields inherited from interface jadex.application.space.envsupport.environment.ISpaceAction
ACTOR_ID, OBJECT_ID
 
Constructor Summary
EatAction()
           
 
Method Summary
 java.lang.Object perform(java.util.Map parameters, IEnvironmentSpace space)
          Performs the action.
 
Methods inherited from class jadex.commons.SimplePropertyObject
addPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jadex.commons.IPropertyObject
getProperty, getPropertyNames, hasProperty, setProperty
 

Field Detail

PROPERTY_POINTS

public static final java.lang.String PROPERTY_POINTS
The property for the points of a creature.

See Also:
Constant Field Values
Constructor Detail

EatAction

public EatAction()
Method Detail

perform

public java.lang.Object perform(java.util.Map parameters,
                                IEnvironmentSpace space)
Performs the action.

Specified by:
perform in interface ISpaceAction
Parameters:
parameters - parameters for the action
space - the environment space
Returns:
action return value


Copyright © 2010. All Rights Reserved.