|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.commons.SimplePropertyObject
jadex.application.space.envsupport.environment.space2d.DefaultVisionGenerator
public class DefaultVisionGenerator
Percept generator for moving components.
| Field Summary | |
|---|---|
protected Map |
actiontypes
The percept receiving component types. |
static String |
APPEARED
The appeared percept type. |
static String |
CREATED
The created percept type. |
static String |
DESTROYED
The destroyed percept type. |
static String |
DISAPPEARED
The disappeared percept type. |
protected static ISpaceObject[] |
EMPTY_SPACEOBJECTS
Empty spaceobjects array. |
static String |
MOVED
The moved percept type. |
static String |
PROPERTY_MAXRANGE
The maxrange property. |
static String |
PROPERTY_PERCEPTTYPES
The percept types property. |
static String |
PROPERTY_RANGE
The maxrange property. |
| Fields inherited from class jadex.commons.SimplePropertyObject |
|---|
pcs, properties |
| Constructor Summary | |
|---|---|
DefaultVisionGenerator()
|
|
| Method Summary | |
|---|---|
void |
componentAdded(IComponentIdentifier component,
IEnvironmentSpace space)
Called when an component was added to the space. |
void |
componentRemoved(IComponentIdentifier component,
IEnvironmentSpace space)
Called when an component was remove from the space. |
void |
dispatchEnvironmentEvent(EnvironmentEvent event)
Dispatch an environment event to this listener. |
protected Set |
getActionTypes(PerceptType pt)
Get the action types for a percept. |
protected IVector1 |
getDefaultRange()
Get the default range. |
protected String |
getPerceptType(IEnvironmentSpace space,
String componenttype,
String objecttype,
String actiontype)
Get the percept type. |
protected Object[] |
getPerceptTypes()
Get the percept types defined for this generator. |
protected IVector1 |
getRange(ISpaceObject avatar)
Get the range. |
protected String |
getRangePropertyName()
Get the range property name. |
| Methods inherited from class jadex.commons.SimplePropertyObject |
|---|
addPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jadex.commons.IPropertyObject |
|---|
getProperty, getPropertyNames, hasProperty, setProperty |
| Field Detail |
|---|
public static String PROPERTY_MAXRANGE
public static String PROPERTY_RANGE
public static String PROPERTY_PERCEPTTYPES
public static String APPEARED
public static String DISAPPEARED
public static String CREATED
public static String DESTROYED
public static String MOVED
protected static final ISpaceObject[] EMPTY_SPACEOBJECTS
protected Map actiontypes
| Constructor Detail |
|---|
public DefaultVisionGenerator()
| Method Detail |
|---|
public void componentAdded(IComponentIdentifier component,
IEnvironmentSpace space)
componentAdded in interface IPerceptGeneratorcomponent - The component identifier.space - The space.
public void componentRemoved(IComponentIdentifier component,
IEnvironmentSpace space)
componentRemoved in interface IPerceptGeneratorcomponent - The component identifier.space - The space.public void dispatchEnvironmentEvent(EnvironmentEvent event)
dispatchEnvironmentEvent in interface IEnvironmentListenerevent - The event.
protected String getPerceptType(IEnvironmentSpace space,
String componenttype,
String objecttype,
String actiontype)
space - The space.componenttype - The component type.objecttype - The object type.actiontype - The action type.
protected Set getActionTypes(PerceptType pt)
pt - The percept type.protected Object[] getPerceptTypes()
protected IVector1 getRange(ISpaceObject avatar)
protected IVector1 getDefaultRange()
protected String getRangePropertyName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||