Class RequestEat
- java.lang.Object
-
- jadex.bdi.examples.hunterprey_classic.RequestEat
-
- All Implemented Interfaces:
IComponentAction
public class RequestEat extends java.lang.Object implements IComponentAction
Java class for concept RequestEat of hunterprey_beans ontology.
-
-
Field Summary
Fields Modifier and Type Field Description protected Creature
creature
The creature.protected WorldObject
object
The object being eaten.
-
Constructor Summary
Constructors Constructor Description RequestEat()
Default Constructor.RequestEat(Creature creature, WorldObject object)
Init Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.java.lang.String
toString()
Get a string representation of this RequestEat.
-
-
-
Field Detail
-
creature
protected Creature creature
The creature.
-
object
protected WorldObject object
The object being eaten.
-
-
Constructor Detail
-
RequestEat
public RequestEat()
Default Constructor.
RequestEat.
-
RequestEat
public RequestEat(Creature creature, WorldObject object)
Init Constructor.
- 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 java.lang.String toString()
Get a string representation of this RequestEat.- Overrides:
toString
in classjava.lang.Object
- Returns:
- The string representation.
-
-
-