Jadex 0.96

jadex.examples.hunterprey
Class CreatureData

java.lang.Object
  extended by jadex.examples.hunterprey.WorldObjectData
      extended by jadex.examples.hunterprey.WorldObject
          extended by jadex.examples.hunterprey.CreatureData
All Implemented Interfaces:
Serializable, nuggets.INugget
Direct Known Subclasses:
Creature

public abstract class CreatureData
extends WorldObject
implements nuggets.INugget, Serializable

Java class for concept Creature of hunterprey_beans ontology.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface nuggets.INugget
nuggets.INugget.Helper
 
Constructor Summary
CreatureData()
          Default Constructor.
 
Method Summary
 void _persist(nuggets.ICruncher c)
          Persist this Creature using the nuggets utility.
 void _set(String a, Object v)
          Restore this Creature
 int getAge()
          Get the age of this Creature.
 AgentIdentifier getAID()
          Get the aid of this Creature.
 int getLeaseticks()
          Get the leaseticks of this Creature.
 String getName()
          Get the name of this Creature.
 int getPoints()
          Get the points of this Creature.
 int getVisionRange()
          Get the visionrange of this Creature.
 int getWorldHeight()
          Get the world-height of this Creature.
 int getWorldWidth()
          Get the world-width of this Creature.
 void setAge(int age)
          Set the age of this Creature.
 void setAID(AgentIdentifier aid)
          Set the aid of this Creature.
 void setLeaseticks(int leaseticks)
          Set the leaseticks of this Creature.
 void setName(String name)
          Set the name of this Creature.
 void setPoints(int points)
          Set the points of this Creature.
 void setVisionRange(int visionrange)
          Set the visionrange of this Creature.
 void setWorldHeight(int worldheight)
          Set the world-height of this Creature.
 void setWorldWidth(int worldwidth)
          Set the world-width of this Creature.
 String toString()
          Get a string representation of this Creature.
 
Methods inherited from class jadex.examples.hunterprey.WorldObject
equals, hashCode
 
Methods inherited from class jadex.examples.hunterprey.WorldObjectData
getLocation, setLocation
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreatureData

public CreatureData()
Default Constructor.
Create a new Creature.

Method Detail

getAge

public int getAge()
Get the age of this Creature. The age of the creature (in simulation steps).

Returns:
age

setAge

public void setAge(int age)
Set the age of this Creature. The age of the creature (in simulation steps).

Parameters:
age - the value to be set

getPoints

public int getPoints()
Get the points of this Creature.

Returns:
points

setPoints

public void setPoints(int points)
Set the points of this Creature.

Parameters:
points - the value to be set

getName

public String getName()
Get the name of this Creature. Unique name for this creature.

Returns:
name

setName

public void setName(String name)
Set the name of this Creature. Unique name for this creature.

Parameters:
name - the value to be set

getAID

public AgentIdentifier getAID()
Get the aid of this Creature. Agent identifier of the creature.

Returns:
aid

setAID

public void setAID(AgentIdentifier aid)
Set the aid of this Creature. Agent identifier of the creature.

Parameters:
aid - the value to be set

getVisionRange

public int getVisionRange()
Get the visionrange of this Creature. The distance a creature is able to see.

Returns:
visionrange

setVisionRange

public void setVisionRange(int visionrange)
Set the visionrange of this Creature. The distance a creature is able to see.

Parameters:
visionrange - the value to be set

getWorldWidth

public int getWorldWidth()
Get the world-width of this Creature. The width of the world.

Returns:
world-width

setWorldWidth

public void setWorldWidth(int worldwidth)
Set the world-width of this Creature. The width of the world.

Parameters:
worldwidth - the value to be set

getWorldHeight

public int getWorldHeight()
Get the world-height of this Creature. The height of the world.

Returns:
world-height

setWorldHeight

public void setWorldHeight(int worldheight)
Set the world-height of this Creature. The height of the world.

Parameters:
worldheight - the value to be set

getLeaseticks

public int getLeaseticks()
Get the leaseticks of this Creature. The number of simulation ticks, this creature is considered alive.

Returns:
leaseticks

setLeaseticks

public void setLeaseticks(int leaseticks)
Set the leaseticks of this Creature. The number of simulation ticks, this creature is considered alive.

Parameters:
leaseticks - the value to be set

toString

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

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

_persist

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

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

_set

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

Specified by:
_set in interface nuggets.INugget
Overrides:
_set in class WorldObjectData
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.