Class Vision
- java.lang.Object
- 
- jadex.bdi.examples.hunterprey_classic.Vision
 
- 
 public class Vision extends java.lang.ObjectEditable Java class for concept Vision of hunterprey ontology.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.util.ListobjectsThe visible objects with locations relative to the creature.
 - 
Constructor SummaryConstructors Constructor Description Vision()Create a new Vision.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddObject(WorldObject object)Add a object to this Vision.booleancontains(WorldObject object)Test if an object is currently seen.Creature[]getCreatures()Get the creatures in the vision.WorldObjectgetObject(int idx)Get an objects of this Vision.WorldObject[]getObjects()Get the objects of this Vision.booleanremoveObject(WorldObject object)Remove a object from this Vision.voidsetObject(int idx, WorldObject object)Set a object to this Vision.voidsetObjects(WorldObject[] objects)Set the objects of this Vision.java.lang.StringtoString()Get a string representation of this Vision.
 
- 
- 
- 
Method Detail- 
getObjectspublic WorldObject[] getObjects() Get the objects of this Vision. The visible objects with locations relative to the creature.- Returns:
- objects
 
 - 
setObjectspublic 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
 
 - 
getObjectpublic 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
 
 - 
setObjectpublic 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
 
 - 
addObjectpublic 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
 
 - 
removeObjectpublic 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.
 
 - 
getCreaturespublic Creature[] getCreatures() Get the creatures in the vision.
 - 
containspublic boolean contains(WorldObject object) Test if an object is currently seen.- Returns:
- True, if seen.
 
 - 
toStringpublic java.lang.String toString() Get a string representation of this Vision.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- The string representation.
 
 
- 
 
-