Class AbstractEnvironmentSpace
- java.lang.Object
- 
- jadex.commons.SimplePropertyObject
- 
- jadex.commons.meta.TypedPropertyObject
- 
- jadex.extension.envsupport.environment.SynchronizedPropertyObject
- 
- jadex.extension.envsupport.environment.AbstractEnvironmentSpace
 
 
 
 
- 
- All Implemented Interfaces:
- jadex.application.IExtensionInstance,- IPropertyObject,- ITypedPropertyObject,- IEnvironmentSpace
 
 public abstract class AbstractEnvironmentSpace extends SynchronizedPropertyObject implements IEnvironmentSpace Abstract base class for environment space.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected classAbstractEnvironmentSpace.AtomicCounterSynchronized counter class
 - 
Field SummaryFields Modifier and Type Field Description protected ComponentActionListactionlistThe list of scheduled component actions.protected java.util.MapactionsAvailable component actions.protected MultiCollection<java.lang.String,AvatarMapping>avatarmappingsAvatar mappings.protected java.lang.ClassLoaderclassloaderThe class loader.protected MEnvSpaceInstanceconfigprotected java.util.MapdataconsumersThe data consumers.protected java.util.MapdataprovidersThe data providers (name -> provider).protected MultiCollection<java.lang.String,java.util.Map>dataviewmappingsData view mappings.protected IExternalAccessextaThe context.protected SimpleValueFetcherfetcherThe fetcher.protected IInternalAccessiaprotected java.util.MapinitialavatarsInitial avatar settings (cid -> [type, props]).protected java.util.ListlistenersThe environment listeners.protected AbstractEnvironmentSpace.AtomicCounterobjectidcounterObject id counter for new ids.protected java.util.MapobjecttypesThe space object types.protected java.util.MapobjecttypesMetaThe space object meta dataprotected java.util.ListobservercentersThe observers.protected java.util.MapperceptgeneratorsThe percept generators.protected PerceptListperceptlistThe list of scheduled percepts.protected MultiCollection<java.lang.String,java.lang.Object[]>perceptprocessorsThe percept processors.protected java.util.MappercepttypesThe percepttypes.protected IValueFetcherpfetcherprotected java.util.MapprocessesThe environment processes.protected java.util.MapprocesstypesThe space process types.protected java.util.MapspaceobjectsLong/ObjectIDs (keys) and environment objects (values).protected java.util.MapspaceobjectsbyownerSpace objects by owner.protected java.util.MapspaceobjectsbytypeTypes of EnvironmentObjects and lists of EnvironmentObjects of that type (typed view).protected AbstractEnvironmentSpace.AtomicCountertaskidcounterTask id counter for new ids.protected java.util.MaptasktypesThe object task types.protected java.util.MapviewsAvailable viewsprotected java.util.MapzombieobjectsThe zombie objects.- 
Fields inherited from class jadex.extension.envsupport.environment.SynchronizedPropertyObjectmonitor
 - 
Fields inherited from class jadex.commons.SimplePropertyObjectpcs, properties
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractEnvironmentSpace()Create an environment space
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAvatarMappings(AvatarMapping mapping)Adds an avatar mapping.voidaddDataConsumer(java.lang.String name, ITableDataConsumer consumer)Add a new data consumer.voidaddDataProvider(java.lang.String name, ITableDataProvider provider)Add a new data provider.voidaddDataView(java.lang.String name, IDataView view)Adds a view to the space.voidaddDataViewMapping(java.lang.String objecttype, java.util.Map view)Add a mapping from object type to data viewvoidaddEnvironmentListener(IEnvironmentListener listener)Add an environment listener.voidaddInitialAvatar(IComponentIdentifier ownerid, java.lang.String type, java.util.Map props)Initial settings for the avatar of a specific component.voidaddObjectTaskType(java.lang.String typename, java.lang.Class clazz, java.util.List properties)Add a object task type.voidaddPerceptGenerator(java.lang.Object id, IPerceptGenerator gen)Adds a percept generator.voidaddPerceptProcessor(java.lang.String componenttype, java.util.Set percepttypes, IPerceptProcessor proc)Add a percept processor.voidaddPerceptType(PerceptType percepttype)Add a space percept type.voidaddSpaceAction(java.lang.String id, ISpaceAction action)Adds an space action.voidaddSpaceObjectType(java.lang.String typename, IPropertyMetaDataSet mobjecttype)Add a space type.voidaddSpaceProcessType(java.lang.String typename, java.lang.Class clazz, java.util.List properties)Add a space process type.voidaddTaskListener(java.lang.Object taskid, java.lang.Object objectid, IResultListener listener)Add a result listener to an object task.voidcancelSpaceAction(int id)Cancel a queued space action.voidcomponentAdded(IComponentDescription owner)Called when an component was added.voidcomponentRemoved(IComponentDescription desc)Called when an component was removed.protected ISpaceObjectcreateAvatar(IComponentDescription owner, java.lang.String fullname, boolean zombie)Create an avatar.java.lang.ObjectcreateObjectTask(java.lang.String typename, java.util.Map properties, java.lang.Object objectid)Creates an object task.voidcreatePercept(java.lang.String typename, java.lang.Object data, IComponentDescription comp, ISpaceObject avatar)Create a percept for the given component.ISpaceObjectcreateSpaceObject(java.lang.String typename, java.util.Map properties, java.util.List tasks)Creates an object in this space.ISpaceObjectcreateSpaceObjectZombie(java.lang.String typename, java.util.Map properties, java.util.List tasks)Creates a zombie object in this space.voidcreateSpaceProcess(java.lang.String typename, java.util.Map properties)Creates a space process.voiddestroySpaceObject(java.lang.Object id)Destroys an object in this space.protected voidfireEnvironmentEvent(EnvironmentEvent event)Fire an environment event.protected voidfireObjectEvent(SpaceObject object, java.lang.String property, java.lang.Object value)Fire an object event.ISpaceObjectgetAvatar(IComponentDescription owner)Get the avatar object.ISpaceObjectgetAvatar(IComponentDescription owner, java.lang.String fullname)Get the avatar object.protected AvatarMappinggetAvatarMapping(java.lang.String componenttype, java.lang.String avatartype)Get the avatar mapping for an component avatar combination.ISpaceObject[]getAvatars(IComponentDescription owner)Get the avatar objects.java.lang.ClassLoadergetClassLoader()Get the class loader.ComponentActionListgetComponentActionList()Get the list of scheduled component actionsIComponentDescription[]getComponents()Get the avatar objects.protected IFuturegetComponentType(IComponentIdentifier cid)ITableDataConsumergetDataConsumer(java.lang.String name)Get a data consumer.java.util.CollectiongetDataConsumers()Get the data consumers.ITableDataProvidergetDataProvider(java.lang.String name)Get a data provider.IDataViewgetDataView(java.lang.String name)Gets a specific view.java.util.MapgetDataViews()Get all available dataviews in this space.IExternalAccessgetExternalAccess()Get the context.SimpleValueFetchergetFetcher()Get the value fetcher.IComponentDescriptiongetOwner(java.lang.Object id)Get the owner of an object.PerceptListgetPerceptList()Get the list of scheduled percepts.PerceptTypegetPerceptType(java.lang.String percepttype)Get a space percept type.java.util.CollectiongetProcesses()Get the processes.java.lang.ObjectgetProperty(java.lang.String name)Returns a property.ISpaceActiongetSpaceAction(java.lang.String id)Adds an space action.ISpaceObjectgetSpaceObject(java.lang.Object id)Returns an object in this space.ISpaceObjectgetSpaceObject0(java.lang.Object id)Returns an object in this space.ISpaceObject[]getSpaceObjectsByType(java.lang.String type)Get all space object of a specific type.java.util.CollectiongetSpaceObjectsCollection()Get the space objects.MObjectTypegetSpaceObjectType(java.lang.String type)Get the object type.ISpaceProcessgetSpaceProcess(java.lang.Object id)Returns a space process.java.util.SetgetSpaceProcessNames()Returns then names of the space processes.java.util.CollectiongetViews()Get the views.IFuture<java.lang.Void>init()Initialize the extension.IFuture<java.lang.Void>initSpace()Create a space.voidinitSpaceObject(ISpaceObject ret)Creates an object in this space.protected java.util.MapmergeProperties(IPropertyMetaDataSet mObjectType, java.util.Map properties)Add type properties to runtime properties.protected java.util.MapmergeProperties(java.util.Collection typeprops, java.util.Map properties)Add type properties to runtime properties.java.lang.ObjectperformSpaceAction(java.lang.String id, java.util.Map parameters)Performs a space action.intperformSpaceAction(java.lang.String id, java.util.Map parameters, IResultListener listener)Schedules an space action.voidremoveAvatarMappings(AvatarMapping mapping)Remove an avatar mapping.voidremoveDataView(java.lang.String name)Removes a view from the space.voidremoveEnvironmentListener(IEnvironmentListener listener)Remove an environment listener.voidremoveObjectTask(java.lang.Object taskid, java.lang.Object objectid)Remove an object task.voidremoveObjectTaskType(java.lang.String typename)Remove an object task type.voidremovePerceptGenerator(java.lang.Object id)Remove a percept generator.voidremovePerceptProcessor(java.lang.String componenttype, IPerceptProcessor proc)remove a percept processor.voidremovePerceptType(java.lang.String typename)Remove a space process type.voidremoveSpaceAction(java.lang.String id)Removes an space action.voidremoveSpaceObjectType(java.lang.String typename)Remove a space object type.voidremoveSpaceProcess(java.lang.Object id)Removes a space process.voidremoveSpaceProcessType(java.lang.String typename)Remove a space process type.voidremoveTaskListener(java.lang.Object taskid, java.lang.Object objectid, IResultListener listener)Remove a result listener from an object task.voidsetFetcher(SimpleValueFetcher fetcher)Set the fetcher.voidsetInitData(IInternalAccess ia, MEnvSpaceInstance config, IValueFetcher pfetcher)voidsetOwner(java.lang.Object id, IComponentDescription owner)Set the owner of an object.IFuture<java.lang.Void>terminate()Terminate the extension.IFuture<java.lang.Void>waitForTask(java.lang.Object taskid, java.lang.Object objectid)Add a result listener to an object task.- 
Methods inherited from class jadex.extension.envsupport.environment.SynchronizedPropertyObjectaddPropertyChangeListener, getMonitor, getPropertyNames, hasProperty, removePropertyChangeListener, setProperty
 - 
Methods inherited from class jadex.commons.meta.TypedPropertyObjectgetMetaData, getMetaDatas
 - 
Methods inherited from class jadex.commons.SimplePropertyObjectgetProperties, setProperties, toString
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface jadex.commons.IPropertyObjectgetPropertyNames, hasProperty, setProperty
 
- 
 
- 
- 
- 
Field Detail- 
extaprotected IExternalAccess exta The context.
 - 
objecttypesprotected java.util.Map objecttypes The space object types.
 - 
objecttypesMetaprotected java.util.Map objecttypesMeta The space object meta data
 - 
tasktypesprotected java.util.Map tasktypes The object task types.
 - 
processtypesprotected java.util.Map processtypes The space process types.
 - 
percepttypesprotected java.util.Map percepttypes The percepttypes.
 - 
actionsprotected java.util.Map actions Available component actions.
 - 
perceptgeneratorsprotected java.util.Map perceptgenerators The percept generators.
 - 
perceptprocessorsprotected MultiCollection<java.lang.String,java.lang.Object[]> perceptprocessors The percept processors.
 - 
avatarmappingsprotected MultiCollection<java.lang.String,AvatarMapping> avatarmappings Avatar mappings.
 - 
initialavatarsprotected java.util.Map initialavatars Initial avatar settings (cid -> [type, props]).
 - 
dataviewmappingsprotected MultiCollection<java.lang.String,java.util.Map> dataviewmappings Data view mappings.
 - 
processesprotected java.util.Map processes The environment processes.
 - 
spaceobjectsprotected java.util.Map spaceobjects Long/ObjectIDs (keys) and environment objects (values).
 - 
spaceobjectsbytypeprotected java.util.Map spaceobjectsbytype Types of EnvironmentObjects and lists of EnvironmentObjects of that type (typed view).
 - 
spaceobjectsbyownerprotected java.util.Map spaceobjectsbyowner Space objects by owner.
 - 
objectidcounterprotected AbstractEnvironmentSpace.AtomicCounter objectidcounter Object id counter for new ids.
 - 
taskidcounterprotected AbstractEnvironmentSpace.AtomicCounter taskidcounter Task id counter for new ids.
 - 
actionlistprotected ComponentActionList actionlist The list of scheduled component actions.
 - 
perceptlistprotected PerceptList perceptlist The list of scheduled percepts.
 - 
viewsprotected java.util.Map views Available views
 - 
listenersprotected java.util.List listeners The environment listeners.
 - 
fetcherprotected SimpleValueFetcher fetcher The fetcher.
 - 
dataprovidersprotected java.util.Map dataproviders The data providers (name -> provider).
 - 
dataconsumersprotected java.util.Map dataconsumers The data consumers.
 - 
zombieobjectsprotected java.util.Map zombieobjects The zombie objects.
 - 
observercentersprotected java.util.List observercenters The observers.
 - 
classloaderprotected java.lang.ClassLoader classloader The class loader.
 - 
iaprotected IInternalAccess ia 
 - 
configprotected MEnvSpaceInstance config 
 - 
pfetcherprotected IValueFetcher pfetcher 
 
- 
 - 
Method Detail- 
setInitDatapublic void setInitData(IInternalAccess ia, MEnvSpaceInstance config, IValueFetcher pfetcher) 
 - 
initSpacepublic IFuture<java.lang.Void> initSpace() Create a space.
 - 
addSpaceObjectTypepublic void addSpaceObjectType(java.lang.String typename, IPropertyMetaDataSet mobjecttype)Add a space type.- Specified by:
- addSpaceObjectTypein interface- IEnvironmentSpace
- Parameters:
- typename- The type name.
- initproperties- The MobjectType.
 
 - 
removeSpaceObjectTypepublic void removeSpaceObjectType(java.lang.String typename) Remove a space object type.- Specified by:
- removeSpaceObjectTypein interface- IEnvironmentSpace
- Parameters:
- typename- The type name.
 
 - 
addSpaceProcessTypepublic void addSpaceProcessType(java.lang.String typename, java.lang.Class clazz, java.util.List properties)Add a space process type.- Specified by:
- addSpaceProcessTypein interface- IEnvironmentSpace
- Parameters:
- typename- The type name.
- properties- The properties.
 
 - 
removeSpaceProcessTypepublic void removeSpaceProcessType(java.lang.String typename) Remove a space process type.- Specified by:
- removeSpaceProcessTypein interface- IEnvironmentSpace
- Parameters:
- typename- The type name.
 
 - 
createSpaceProcesspublic void createSpaceProcess(java.lang.String typename, java.util.Map properties)Creates a space process.- Specified by:
- createSpaceProcessin interface- IEnvironmentSpace
- Parameters:
- typename- The type name.
- properties- The properties.
 
 - 
addObjectTaskTypepublic void addObjectTaskType(java.lang.String typename, java.lang.Class clazz, java.util.List properties)Add a object task type.- Specified by:
- addObjectTaskTypein interface- IEnvironmentSpace
- Parameters:
- typename- The type name.
- properties- The properties.
 
 - 
removeObjectTaskTypepublic void removeObjectTaskType(java.lang.String typename) Remove an object task type.- Specified by:
- removeObjectTaskTypein interface- IEnvironmentSpace
- Parameters:
- typename- The type name.
 
 - 
createObjectTaskpublic java.lang.Object createObjectTask(java.lang.String typename, java.util.Map properties, java.lang.Object objectid)Creates an object task.- Specified by:
- createObjectTaskin interface- IEnvironmentSpace
- Parameters:
- typename- The type name.
- properties- The properties.
- Returns:
- The task id.
 
 - 
removeObjectTaskpublic void removeObjectTask(java.lang.Object taskid, java.lang.Object objectid)Remove an object task.- Specified by:
- removeObjectTaskin interface- IEnvironmentSpace
- Parameters:
- typename- The type name.
- initproperties- The properties.
 
 - 
addTaskListenerpublic void addTaskListener(java.lang.Object taskid, java.lang.Object objectid, IResultListener listener)Add a result listener to an object task. The listener result will be the task id. If the task is already finished, the listener will be notified.- Specified by:
- addTaskListenerin interface- IEnvironmentSpace
 
 - 
removeTaskListenerpublic void removeTaskListener(java.lang.Object taskid, java.lang.Object objectid, IResultListener listener)Remove a result listener from an object task.- Specified by:
- removeTaskListenerin interface- IEnvironmentSpace
 
 - 
waitForTaskpublic IFuture<java.lang.Void> waitForTask(java.lang.Object taskid, java.lang.Object objectid) Add a result listener to an object task. The listener result will be the task id. If the task is already finished, the listener will be notified.- Specified by:
- waitForTaskin interface- IEnvironmentSpace
 
 - 
getSpaceProcessNamespublic java.util.Set getSpaceProcessNames() Returns then names of the space processes.- Returns:
- the names of the space processes
 
 - 
getSpaceProcesspublic ISpaceProcess getSpaceProcess(java.lang.Object id) Returns a space process.- Specified by:
- getSpaceProcessin interface- IEnvironmentSpace
- Parameters:
- id- ID of the space process
- Returns:
- the space process or null if not found
 
 - 
removeSpaceProcesspublic void removeSpaceProcess(java.lang.Object id) Removes a space process.- Specified by:
- removeSpaceProcessin interface- IEnvironmentSpace
- Parameters:
- id- ID of the space process
 
 - 
createSpaceObjectpublic final ISpaceObject createSpaceObject(java.lang.String typename, java.util.Map properties, java.util.List tasks) Creates an object in this space.- Specified by:
- createSpaceObjectin interface- IEnvironmentSpace
- Parameters:
- type- the object's type
- properties- initial properties (may be null)
- tasks- initial task list (may be null)
- Returns:
- the object's ID
 
 - 
createSpaceObjectZombiepublic ISpaceObject createSpaceObjectZombie(java.lang.String typename, java.util.Map properties, java.util.List tasks) Creates a zombie object in this space. Zombies are not (yet) visible in the space and must be inited separately.- Parameters:
- type- the object's type
- properties- initial properties (may be null)
- tasks- initial task list (may be null)
- Returns:
- the object's ID
 
 - 
initSpaceObjectpublic void initSpaceObject(ISpaceObject ret) Creates an object in this space.- Parameters:
- type- the object's type
- initproperties- initial properties (may be null)
- tasks- initial task list (may be null)
- listeners- initial listeners (may be null)
 
 - 
mergePropertiesprotected java.util.Map mergeProperties(java.util.Collection typeprops, java.util.Map properties)Add type properties to runtime properties. Runtime properties have precedence if specified.- Parameters:
- typeprops- The type properties (if any).
- properties- The runtime properties or null.
- Returns:
- The merged runtime properties.
 
 - 
mergePropertiesprotected java.util.Map mergeProperties(IPropertyMetaDataSet mObjectType, java.util.Map properties) Add type properties to runtime properties. Runtime properties have precedence if specified.- Parameters:
- typeprops- The type
- properties- The runtime properties or null.
- Returns:
- The merged runtime properties.
 
 - 
destroySpaceObjectpublic void destroySpaceObject(java.lang.Object id) Destroys an object in this space.- Specified by:
- destroySpaceObjectin interface- IEnvironmentSpace
- Parameters:
- id- the object's ID
 
 - 
getSpaceObjectpublic ISpaceObject getSpaceObject(java.lang.Object id) Returns an object in this space.- Specified by:
- getSpaceObjectin interface- IEnvironmentSpace
- Parameters:
- id- the object's ID
- Returns:
- the object in this space
 
 - 
getSpaceObject0public ISpaceObject getSpaceObject0(java.lang.Object id) Returns an object in this space.- Parameters:
- id- the object's ID
- Returns:
- the object in this space
 
 - 
getSpaceObjectsByTypepublic ISpaceObject[] getSpaceObjectsByType(java.lang.String type) Get all space object of a specific type.- Specified by:
- getSpaceObjectsByTypein interface- IEnvironmentSpace
- Parameters:
- type- The space object type.
- Returns:
- The space objects of the desired type.
 
 - 
addAvatarMappingspublic void addAvatarMappings(AvatarMapping mapping) Adds an avatar mapping.- Parameters:
- componenttype- The component type.
- objecttype- The object type to represent the component.
 
 - 
removeAvatarMappingspublic void removeAvatarMappings(AvatarMapping mapping) Remove an avatar mapping.- Parameters:
- componenttype- The component type.
- objecttype- The object type to represent the component.
 
 - 
addSpaceActionpublic void addSpaceAction(java.lang.String id, ISpaceAction action)Adds an space action.- Specified by:
- addSpaceActionin interface- IEnvironmentSpace
- Parameters:
- actionId- the action ID
- action- the action
 
 - 
getSpaceActionpublic ISpaceAction getSpaceAction(java.lang.String id) Adds an space action.- Parameters:
- actionId- the action ID
- action- the action
 
 - 
removeSpaceActionpublic void removeSpaceAction(java.lang.String id) Removes an space action.- Specified by:
- removeSpaceActionin interface- IEnvironmentSpace
- Parameters:
- actionId- the action ID
 
 - 
performSpaceActionpublic int performSpaceAction(java.lang.String id, java.util.Map parameters, IResultListener listener)Schedules an space action.- Specified by:
- performSpaceActionin interface- IEnvironmentSpace
- Parameters:
- id- Id of the action
- parameters- parameters for the action (may be null)
- listener- the result listener
- Returns:
- The id of the action instance for later access.
 
 - 
cancelSpaceActionpublic void cancelSpaceAction(int id) Cancel a queued space action.- Specified by:
- cancelSpaceActionin interface- IEnvironmentSpace
 
 - 
performSpaceActionpublic java.lang.Object performSpaceAction(java.lang.String id, java.util.Map parameters)Performs a space action.- Parameters:
- id- Id of the action
- parameters- parameters for the action (may be null)
- Returns:
- return value of the action
 
 - 
createPerceptpublic void createPercept(java.lang.String typename, java.lang.Object data, IComponentDescription comp, ISpaceObject avatar)Create a percept for the given component.- Parameters:
- typename- The percept type.
- data- The content of the percept (if any).
- cid- The component that should receive the percept.
 
 - 
getOwnerpublic IComponentDescription getOwner(java.lang.Object id) Get the owner of an object.- Parameters:
- id- The id.
- Returns:
- The owner.
 
 - 
setOwnerpublic void setOwner(java.lang.Object id, IComponentDescription owner)Set the owner of an object.- Specified by:
- setOwnerin interface- IEnvironmentSpace
- Parameters:
- id- The object id.
- pos- The object owner.
 
 - 
getAvatarspublic ISpaceObject[] getAvatars(IComponentDescription owner) Get the avatar objects.- Specified by:
- getAvatarsin interface- IEnvironmentSpace
- Returns:
- The avatar objects.
 
 - 
getComponentspublic IComponentDescription[] getComponents() Get the avatar objects.- Returns:
- The avatar objects.
 
 - 
getAvatarpublic ISpaceObject getAvatar(IComponentDescription owner) Get the avatar object.- Specified by:
- getAvatarin interface- IEnvironmentSpace
- Returns:
- The avatar object.
 
 - 
getAvatarpublic ISpaceObject getAvatar(IComponentDescription owner, java.lang.String fullname) Get the avatar object.- Returns:
- The avatar object.
 
 - 
createAvatarprotected ISpaceObject createAvatar(IComponentDescription owner, java.lang.String fullname, boolean zombie) Create an avatar.
 - 
addDataViewpublic void addDataView(java.lang.String name, IDataView view)Adds a view to the space.- Specified by:
- addDataViewin interface- IEnvironmentSpace
- Parameters:
- name- name of the view
- view- the view
 
 - 
removeDataViewpublic void removeDataView(java.lang.String name) Removes a view from the space.- Specified by:
- removeDataViewin interface- IEnvironmentSpace
- Parameters:
- name- name of the view
 
 - 
getDataViewpublic IDataView getDataView(java.lang.String name) Gets a specific view.- Specified by:
- getDataViewin interface- IEnvironmentSpace
- Parameters:
- name- name of the view
- Returns:
- the view
 
 - 
getDataViewspublic java.util.Map getDataViews() Get all available dataviews in this space.- Specified by:
- getDataViewsin interface- IEnvironmentSpace
- Returns:
- all available dataviews
 
 - 
addDataViewMappingpublic void addDataViewMapping(java.lang.String objecttype, java.util.Map view)Add a mapping from object type to data view- Parameters:
- objecttype- The object type.
- view- Settings for view creation.
 
 - 
addEnvironmentListenerpublic void addEnvironmentListener(IEnvironmentListener listener) Add an environment listener.- Specified by:
- addEnvironmentListenerin interface- IEnvironmentSpace
- Parameters:
- listener- The environment listener.
 
 - 
removeEnvironmentListenerpublic void removeEnvironmentListener(IEnvironmentListener listener) Remove an environment listener.- Specified by:
- removeEnvironmentListenerin interface- IEnvironmentSpace
- Parameters:
- listener- The environment listener.
 
 - 
addPerceptGeneratorpublic void addPerceptGenerator(java.lang.Object id, IPerceptGenerator gen)Adds a percept generator.- Specified by:
- addPerceptGeneratorin interface- IEnvironmentSpace
- Parameters:
- id- The percept generator id.
- gen- The percept generator.
 
 - 
removePerceptGeneratorpublic void removePerceptGenerator(java.lang.Object id) Remove a percept generator.- Specified by:
- removePerceptGeneratorin interface- IEnvironmentSpace
- Parameters:
- id- The percept generator id.
 
 - 
addPerceptProcessorpublic void addPerceptProcessor(java.lang.String componenttype, java.util.Set percepttypes, IPerceptProcessor proc)Add a percept processor.- Parameters:
- componenttype- The component type.
- proc- The percept processor.
 
 - 
removePerceptProcessorpublic void removePerceptProcessor(java.lang.String componenttype, IPerceptProcessor proc)remove a percept processor.- Parameters:
- componenttype- The component type.
- proc- The percept processor.
 
 - 
addPerceptTypepublic void addPerceptType(PerceptType percepttype) Add a space percept type.- Specified by:
- addPerceptTypein interface- IEnvironmentSpace
- Parameters:
- typename- The percept name.
- objecttypes- The objecttypes.
- componenttypes- The componenttypes.
 
 - 
removePerceptTypepublic void removePerceptType(java.lang.String typename) Remove a space process type.- Specified by:
- removePerceptTypein interface- IEnvironmentSpace
- Parameters:
- typename- The type name.
 
 - 
getPerceptTypepublic PerceptType getPerceptType(java.lang.String percepttype) Get a space percept type.- Specified by:
- getPerceptTypein interface- IEnvironmentSpace
- Parameters:
- percepttype- The name of the percept type.
- Returns:
- The percept type.
 
 - 
componentAddedpublic void componentAdded(IComponentDescription owner) Called when an component was added.
 - 
componentRemovedpublic void componentRemoved(IComponentDescription desc) Called when an component was removed.
 - 
getComponentTypeprotected IFuture getComponentType(IComponentIdentifier cid) 
 - 
getExternalAccesspublic IExternalAccess getExternalAccess() Get the context.- Specified by:
- getExternalAccessin interface- IEnvironmentSpace
- Returns:
- The context.
 
 - 
getPropertypublic java.lang.Object getProperty(java.lang.String name) Returns a property.- Specified by:
- getPropertyin interface- IPropertyObject
- Overrides:
- getPropertyin class- SynchronizedPropertyObject
- Parameters:
- name- name of the property
- Returns:
- the property
 
 - 
getFetcherpublic SimpleValueFetcher getFetcher() Get the value fetcher.- Returns:
- The fetcher.
 
 - 
setFetcherpublic void setFetcher(SimpleValueFetcher fetcher) Set the fetcher.- Parameters:
- fetcher- The fetcher to set.
 
 - 
getSpaceObjectsCollectionpublic java.util.Collection getSpaceObjectsCollection() Get the space objects.
 - 
getProcessespublic java.util.Collection getProcesses() Get the processes.
 - 
getComponentActionListpublic ComponentActionList getComponentActionList() Get the list of scheduled component actions
 - 
getPerceptListpublic PerceptList getPerceptList() Get the list of scheduled percepts.
 - 
getViewspublic java.util.Collection getViews() Get the views.
 - 
fireEnvironmentEventprotected void fireEnvironmentEvent(EnvironmentEvent event) Fire an environment event.- Parameters:
- event- The event.
 
 - 
fireObjectEventprotected void fireObjectEvent(SpaceObject object, java.lang.String property, java.lang.Object value) Fire an object event.- Parameters:
- object- The object.
- property- The changed property.
- value- The new property value.
 
 - 
addInitialAvatarpublic void addInitialAvatar(IComponentIdentifier ownerid, java.lang.String type, java.util.Map props) Initial settings for the avatar of a specific component.- Parameters:
- ownerid- The component id.
- type- The object type.
- props- The properties for the object (if any).
 
 - 
getAvatarMappingprotected AvatarMapping getAvatarMapping(java.lang.String componenttype, java.lang.String avatartype) Get the avatar mapping for an component avatar combination.
 - 
addDataProviderpublic void addDataProvider(java.lang.String name, ITableDataProvider provider)Add a new data provider.- Parameters:
- name- The name.
- provider- The provider.
 
 - 
getDataProviderpublic ITableDataProvider getDataProvider(java.lang.String name) Get a data provider.- Parameters:
- name- The name.
- Returns:
- The provider.
 
 - 
addDataConsumerpublic void addDataConsumer(java.lang.String name, ITableDataConsumer consumer)Add a new data consumer.- Parameters:
- consumer- The consumer.
 
 - 
getDataConsumerpublic ITableDataConsumer getDataConsumer(java.lang.String name) Get a data consumer.- Parameters:
- name- The name.
- Returns:
- The consumer.
 
 - 
getDataConsumerspublic java.util.Collection getDataConsumers() Get the data consumers.- Returns:
- The data consumers.
 
 - 
initpublic IFuture<java.lang.Void> init() Initialize the extension. Called once, when the extension is created.- Specified by:
- initin interface- jadex.application.IExtensionInstance
 
 - 
terminatepublic IFuture<java.lang.Void> terminate() Terminate the extension. Called once, when the extension is terminated.- Specified by:
- terminatein interface- jadex.application.IExtensionInstance
 
 - 
getClassLoaderpublic java.lang.ClassLoader getClassLoader() Get the class loader.
 - 
getSpaceObjectTypepublic MObjectType getSpaceObjectType(java.lang.String type) Get the object type.
 
- 
 
-