| Modifier and Type | Interface and Description |
|---|---|
interface |
IWorldObjectUpdateResult<OBJECT extends IWorldObject>
A generic interface for updateResult returned by all IWorldObjectUpdated events
(ie.
|
static class |
IWorldObjectUpdateResult.WorldObjectUpdateResult<OBJECT extends IWorldObject>
Implementation of the IGenericObjectUpdateResult interface.
|
| Modifier and Type | Method and Description |
|---|---|
IWorldObjectUpdateResult<IWorldObject> |
IWorldObjectUpdatedEvent.update(IWorldObject obj) |
IWorldObjectUpdateResult<IWorldObject> |
IWorldObjectUpdatedEvent.DestroyWorldObject.update(IWorldObject obj) |
| Modifier and Type | Method and Description |
|---|---|
IWorldObjectUpdateResult<IWorldObject> |
IWorldObjectUpdatedEvent.update(IWorldObject obj) |
IWorldObjectUpdateResult<IWorldObject> |
IWorldObjectUpdatedEvent.DestroyWorldObject.update(IWorldObject obj) |
| Constructor and Description |
|---|
IWorldObjectUpdatedEvent.DestroyWorldObject(IWorldObject object,
long simTime) |
| Modifier and Type | Method and Description |
|---|---|
<T extends IWorldObject> |
IWorldView.get(WorldObjectId id,
Class<T> clazz)
Returns a world object of the specific id and class (if exists inside the world view).
|
<T extends IWorldObject> |
IWorldView.getAll(Class<T> type)
Returns map of all objects of a specific type that are present in the world view.
|
<T extends IWorldObject> |
IWorldView.getSingle(Class<T> cls)
Returns the only instance of required object if present, if there are
more instances of this object then
IllegalArgumentException will be thrown. |
| Modifier and Type | Method and Description |
|---|---|
IWorldObject |
IWorldView.get(WorldObjectId id)
Returns a world object of the specific id (if exists inside the world view).
|
| Modifier and Type | Method and Description |
|---|---|
Map<WorldObjectId,IWorldObject> |
IWorldView.get()
Returns map with objects inserted according to their id.
|
Map<Class,Map<WorldObjectId,IWorldObject>> |
IWorldView.getAll()
Returns map of all objects that are present in the world view.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends IWorldObject> |
AbstractWorldView.get(WorldObjectId id,
Class<T> clazz) |
<T extends IWorldObject> |
AbstractWorldView.getAll(Class<T> type) |
<T extends IWorldObject> |
AbstractWorldView.getSingle(Class<T> cls) |
| Modifier and Type | Method and Description |
|---|---|
IWorldObject |
AbstractWorldView.get(WorldObjectId objectId) |
| Modifier and Type | Method and Description |
|---|---|
Map<WorldObjectId,IWorldObject> |
AbstractWorldView.get() |
Map<Class,Map<WorldObjectId,IWorldObject>> |
AbstractWorldView.getAll() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractWorldView.addWorldObject(IWorldObject worldObject)
Method that adds a new world object to the object maps.
|
protected void |
EventDrivenWorldView.objectCreated(IWorldObject obj)
Must be called whenever an object was created, raises correct events.
|
protected void |
EventDrivenWorldView.objectDestroyed(IWorldObject obj)
Must be called whenever an object was destroyed - raises correct events.
|
protected void |
EventDrivenWorldView.objectUpdated(IWorldObject obj)
Must be called whenever an object was updated - raises correct event.
|
protected void |
AbstractWorldView.removeWorldObject(IWorldObject worldObject)
Removes world object from the world view - this will be called from the descendants
of the AbstractWorldView whenever world object should disappear from the world view
(was destroyed in the world).
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
IWorldObjectEvent<OBJECT extends IWorldObject>
IWorldObject related event.
|
interface |
IWorldObjectEventListener<OBJECT extends IWorldObject,EVENT extends IWorldObjectEvent<OBJECT>>
Listens on object events.
|
interface |
IWorldObjectListener<OBJECT extends IWorldObject>
Listens on object events.
|
class |
WorldObjectFuture<T extends IWorldObject>
Use this if you want to wait for first appearance of some IWorldObject with known string ID.
|
| Modifier and Type | Class and Description |
|---|---|
class |
WorldObjectDestroyedEvent<T extends IWorldObject>
This event is raised by the WorldView whenever the object is removed from the world.
|
class |
WorldObjectEvent<T extends IWorldObject>
Default world object event implementation wrapping some object inside the event.
|
class |
WorldObjectFirstEncounteredEvent<T extends IWorldObject>
This event is raised by WorldView whenever new object appears in the worldview.
|
class |
WorldObjectUpdatedEvent<T extends IWorldObject>
This event is raised by WorldView whenever the object is updated (possibly one of it's
fields has changed - warning it's not neccesery the object's field might be updated
to the same value).
|
| Modifier and Type | Class and Description |
|---|---|
class |
ObjectEventReact<OBJECT extends IWorldObject,EVENT extends IWorldObjectEvent<OBJECT>>
This abstract class allows you to easily hook a specific event-handling behavior.
|
class |
ObjectEventReactOnce<OBJECT extends IWorldObject,EVENT extends IWorldObjectEvent<OBJECT>>
This abstract class allows you to easily hook a specific event-handling behavior.
|
class |
ObjectReact<OBJECT extends IWorldObject> |
class |
ObjectReactOnce<OBJECT extends IWorldObject> |
| Modifier and Type | Method and Description |
|---|---|
IWorldObject |
Vision.getSee(WorldObjectId id)
If agents sees item of 'id' it returns it instances, otherwise it returns null.
|
protected IWorldObject |
Vision.getSeeObject(WorldObjectId objectId)
Returns world object of the given id or null if the object is not yet in the world view.
|
| Modifier and Type | Method and Description |
|---|---|
Map<Class,Map<WorldObjectId,IWorldObject>> |
Vision.getSee()
Returns map of all objects the agent can currently see.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
Vision.addSeeObject(IWorldObject seeObject)
Method that adds a new world object to the object maps.
|
protected void |
Vision.removeSeeObject(IWorldObject worldObject)
Removes world object from the world view - this will be called from the descendants
of the AbstractWorldView whenever world object should disappear from the world view.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
VisionWorldView.objectCreated(IWorldObject obj)
Additionally, it provides handling of
IViewable objects raising WorldObjectAppearedEvent automatically (if object is visible). |
protected void |
VisionWorldView.objectDestroyed(IWorldObject obj)
Additionally it handles
IViewable objects automatically raising WorldObjectDisappearedEvent if object was visible
before it was destroyed. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IViewable
General interface for objects whose visibility may change through time.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends IWorldObject> |
ILocalWorldView.getAll(Class<T> type) |
<T extends IWorldObject> |
ILocalWorldView.getSingle(Class<T> cls) |
| Modifier and Type | Method and Description |
|---|---|
<T extends IWorldObject> |
LocalWorldViewAdapter.get(WorldObjectId objectId,
Class<T> clazz) |
<T extends IWorldObject> |
LocalWorldViewAdapter.getAll(Class<T> type) |
<T extends IWorldObject> |
AbstractLocalWorldView.getAll(Class<T> type) |
protected <T extends IWorldObject> |
AbstractLocalWorldView.getAll(Class<T> type,
TimeKey time)
Returns a lazy-implemented classMap containing CompositeWorldObjects current to the specified TimeKey.
|
<T extends IWorldObject> |
LocalWorldViewAdapter.getSingle(Class<T> cls) |
<T extends IWorldObject> |
AbstractLocalWorldView.getSingle(Class<T> cls) |
protected <T extends IWorldObject> |
AbstractLocalWorldView.getSingle(Class<T> cls,
TimeKey time) |
| Modifier and Type | Method and Description |
|---|---|
IWorldObject |
LocalWorldViewAdapter.get(WorldObjectId id) |
| Modifier and Type | Method and Description |
|---|---|
Map<WorldObjectId,IWorldObject> |
LocalWorldViewAdapter.get() |
Map<Class,Map<WorldObjectId,IWorldObject>> |
LocalWorldViewAdapter.getAll() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
EventDrivenSharedWorldView.objectDestroyed(IWorldObject obj,
long time)
Must be called whenever an object was destroyed - raises correct events.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ICompositeWorldObject
General interface for all compositeWorldObjects
Composite world objects are the equivalent of old WorldObjects.
|
interface |
ILocalViewable
General interface for local parts of objects whose visiblility may change over time.
|
interface |
ILocalWorldObject
General interface for all localWorldObjects
|
interface |
ISharedWorldObject
general interface for all sharedWorldObjects.
|
interface |
IStaticWorldObject
General interface for all staticWorldObjects.
|
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.