Jadex 0.96

jadex.examples.hunterprey
Class RequestMove

java.lang.Object
  extended by jadex.adapter.fipa.AgentAction
      extended by jadex.examples.hunterprey.RequestMove
All Implemented Interfaces:
BeanInfo, Serializable, nuggets.INugget

public class RequestMove
extends AgentAction
implements nuggets.INugget

Java class for concept RequestMove of hunterprey_beans ontology.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface nuggets.INugget
nuggets.INugget.Helper
 
Field Summary
static String DIRECTION_DOWN
          Predefined value "down" for slot direction.
static String DIRECTION_LEFT
          Predefined value "left" for slot direction.
static String DIRECTION_RIGHT
          Predefined value "right" for slot direction.
static String DIRECTION_UP
          Predefined value "up" for slot direction.
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
RequestMove()
          Default Constructor.
RequestMove(Creature creature, String direction)
          Init Constructor.
 
Method Summary
 void _persist(nuggets.ICruncher c)
          Persist this RequestMove using the nuggets utility.
 void _set(String a, Object v)
          Restore this RequestMove
 Creature getCreature()
          Get the creature of this RequestMove.
 String getDirection()
          Get the direction of this RequestMove.
 void setCreature(Creature creature)
          Set the creature of this RequestMove.
 void setDirection(String direction)
          Set the direction of this RequestMove.
 String toString()
          Get a string representation of this RequestMove.
 
Methods inherited from class jadex.adapter.fipa.AgentAction
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getPropertyDescriptors, loadImage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DIRECTION_UP

public static String DIRECTION_UP
Predefined value "up" for slot direction.


DIRECTION_DOWN

public static String DIRECTION_DOWN
Predefined value "down" for slot direction.


DIRECTION_LEFT

public static String DIRECTION_LEFT
Predefined value "left" for slot direction.


DIRECTION_RIGHT

public static String DIRECTION_RIGHT
Predefined value "right" for slot direction.

Constructor Detail

RequestMove

public RequestMove()
Default Constructor.
Create a new RequestMove.


RequestMove

public RequestMove(Creature creature,
                   String direction)
Init Constructor.
Create a new RequestMove.
Initializes the object with required attributes.

Parameters:
creature -
direction -
Method Detail

getCreature

public Creature getCreature()
Get the creature of this RequestMove. The creature.

Returns:
creature

setCreature

public void setCreature(Creature creature)
Set the creature of this RequestMove. The creature.

Parameters:
creature - the value to be set

getDirection

public String getDirection()
Get the direction of this RequestMove. The movement direction.

Returns:
direction

setDirection

public void setDirection(String direction)
Set the direction of this RequestMove. The movement direction.

Parameters:
direction - the value to be set

toString

public String toString()
Get a string representation of this RequestMove.

Overrides:
toString in class AgentAction
Returns:
The string representation.

_persist

public void _persist(nuggets.ICruncher c)
Persist this RequestMove using the nuggets utility.

Specified by:
_persist in interface nuggets.INugget
Parameters:
c -

_set

public void _set(String a,
                 Object v)
Restore this RequestMove

Specified by:
_set in interface nuggets.INugget
Parameters:
a - the name of the attribute
v - the value of the attribute

Jadex 0.96

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.