Jadex 0.96

jadex.examples.hunterprey
Class VisionData

java.lang.Object
  extended by jadex.examples.hunterprey.VisionData
All Implemented Interfaces:
nuggets.INugget
Direct Known Subclasses:
Vision

public abstract class VisionData
extends Object
implements nuggets.INugget

Java class for concept Vision of hunterprey_beans ontology.


Nested Class Summary
 
Nested classes/interfaces inherited from interface nuggets.INugget
nuggets.INugget.Helper
 
Constructor Summary
VisionData()
          Default Constructor.
 
Method Summary
 void _persist(nuggets.ICruncher c)
          Persist this Vision using the nuggets utility.
 void _set(String a, Object v)
          Restore this Vision
 void addObject(WorldObject object)
          Add a object to this Vision.
 WorldObject getObject(int idx)
          Get an objects of this Vision.
 WorldObject[] getObjects()
          Get the objects of this Vision.
 boolean removeObject(WorldObject object)
          Remove a object from this Vision.
 void setObject(int idx, WorldObject object)
          Set a object to this Vision.
 void setObjects(WorldObject[] objects)
          Set the objects of this Vision.
 String toString()
          Get a string representation of this Vision.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VisionData

public VisionData()
Default Constructor.
Create a new Vision.

Method Detail

getObjects

public WorldObject[] getObjects()
Get the objects of this Vision. The visible objects with locations relative to the creature.

Returns:
objects

setObjects

public void setObjects(WorldObject[] objects)
Set the objects of this Vision. The visible objects with locations relative to the creature.

Parameters:
objects - the value to be set

getObject

public WorldObject getObject(int idx)
Get an objects of this Vision. The visible objects with locations relative to the creature.

Parameters:
idx - The index.
Returns:
objects

setObject

public void setObject(int idx,
                      WorldObject object)
Set a object to this Vision. The visible objects with locations relative to the creature.

Parameters:
idx - The index.
object - a value to be added

addObject

public void addObject(WorldObject object)
Add a object to this Vision. The visible objects with locations relative to the creature.

Parameters:
object - a value to be removed

removeObject

public boolean removeObject(WorldObject object)
Remove a object from this Vision. The visible objects with locations relative to the creature.

Parameters:
object - a value to be removed
Returns:
True when the objects have changed.

toString

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

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

_persist

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

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

_set

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

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.