Jadex 0.96

jadex.examples.hunterprey
Class RequestEat

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

public class RequestEat
extends AgentAction
implements nuggets.INugget

Java class for concept RequestEat of hunterprey_beans ontology.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface nuggets.INugget
nuggets.INugget.Helper
 
Field Summary
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
RequestEat()
          Default Constructor.
RequestEat(Creature creature, WorldObject object)
          Init Constructor.
 
Method Summary
 void _persist(nuggets.ICruncher c)
          Persist this RequestEat using the nuggets utility.
 void _set(String a, Object v)
          Restore this RequestEat
 Creature getCreature()
          Get the creature of this RequestEat.
 WorldObject getObject()
          Get the object of this RequestEat.
 void setCreature(Creature creature)
          Set the creature of this RequestEat.
 void setObject(WorldObject object)
          Set the object of this RequestEat.
 String toString()
          Get a string representation of this RequestEat.
 
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
 

Constructor Detail

RequestEat

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


RequestEat

public RequestEat(Creature creature,
                  WorldObject object)
Init Constructor.
Create a new RequestEat.
Initializes the object with required attributes.

Parameters:
creature -
object -
Method Detail

getCreature

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

Returns:
creature

setCreature

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

Parameters:
creature - the value to be set

getObject

public WorldObject getObject()
Get the object of this RequestEat. The object being eaten.

Returns:
object

setObject

public void setObject(WorldObject object)
Set the object of this RequestEat. The object being eaten.

Parameters:
object - the value to be set

toString

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

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

_persist

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

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

_set

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

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.