public interface IEnvironmentSpace extends IPropertyObject, IExtensionInstance
Modifier and Type | Method and Description |
---|---|
void |
addDataView(String name,
IDataView view)
Adds a dataview to the space.
|
void |
addEnvironmentListener(IEnvironmentListener listener)
Add an environment listener.
|
void |
addObjectTaskType(String typename,
Class clazz,
List properties)
Add a object task type.
|
void |
addPerceptGenerator(Object id,
IPerceptGenerator gen)
Adds a percept generator.
|
void |
addPerceptType(PerceptType percepttype)
Add a space percept type.
|
void |
addSpaceAction(String name,
ISpaceAction action)
Adds an space action.
|
void |
addSpaceObjectType(String typename,
IPropertyMetaDataSet properties)
Add a space object type.
|
void |
addSpaceProcessType(String typename,
Class clazz,
List properties)
Add a space process type.
|
void |
addTaskListener(Object taskid,
Object objectid,
IResultListener listener)
Add a result listener to an object task.
|
void |
cancelSpaceAction(int id)
Cancel a queued space action.
|
Object |
createObjectTask(String typename,
Map properties,
Object objectid)
Creates an object task.
|
ISpaceObject |
createSpaceObject(String typename,
Map properties,
List tasks)
Creates an object in this space.
|
void |
createSpaceProcess(String type,
Map props)
Creates a space process.
|
void |
destroySpaceObject(Object id)
Destroys an object in this space.
|
ISpaceObject |
getAvatar(IComponentDescription owner)
Get the avatar.
|
ISpaceObject[] |
getAvatars(IComponentDescription owner)
Get the owned objects.
|
IDataView |
getDataView(String name)
Gets a specific dataview.
|
Map |
getDataViews()
Get all available dataviews in this space.
|
IExternalAccess |
getExternalAccess()
Get the component of the space.
|
PerceptType |
getPerceptType(String percepttype)
Get a space percept type.
|
ISpaceObject |
getSpaceObject(Object id)
Returns an object in this space.
|
ISpaceObject[] |
getSpaceObjectsByType(String type)
Get all space object of a specific type.
|
ISpaceProcess |
getSpaceProcess(Object id)
Returns a space process.
|
int |
performSpaceAction(String name,
Map parameters,
IResultListener listener)
Perform an space action.
|
void |
removeDataView(String name)
Removes a dataview from the space.
|
void |
removeEnvironmentListener(IEnvironmentListener listener)
Remove an environment listener.
|
void |
removeObjectTask(Object taskid,
Object objectid)
Remove an object task.
|
void |
removeObjectTaskType(String typename)
Remove an object task type.
|
void |
removePerceptGenerator(Object id)
Remove a percept generator.
|
void |
removePerceptType(String typename)
Remove a space process type.
|
void |
removeSpaceAction(String name)
Removes an space action.
|
void |
removeSpaceObjectType(String typename)
Remove a space object type.
|
void |
removeSpaceProcess(Object id)
Removes a space process.
|
void |
removeSpaceProcessType(String typename)
Remove a space process type.
|
void |
removeTaskListener(Object taskid,
Object objectid,
IResultListener listener)
Remove a result listener from an object task.
|
void |
setOwner(Object id,
IComponentDescription owner)
Set the owner of an object.
|
IFuture<Void> |
waitForTask(Object taskid,
Object objectid)
Add a result listener to an object task.
|
getProperty, getPropertyNames, hasProperty, setProperty
init, terminate
IExternalAccess getExternalAccess()
void addPerceptType(PerceptType percepttype)
typename
- The percept name.objecttypes
- The objecttypes.componenttypes
- The componenttypes.void removePerceptType(String typename)
typename
- The type name.PerceptType getPerceptType(String percepttype)
percepttype
- The name of the percept type.void addSpaceProcessType(String typename, Class clazz, List properties)
typename
- The type name.properties
- The properties (list of maps with name/value/dynamic).void removeSpaceProcessType(String typename)
typename
- The type name.void createSpaceProcess(String type, Map props)
id
- ID of the space processtype
- The process type.ISpaceProcess getSpaceProcess(Object id)
id
- ID of the space processvoid removeSpaceProcess(Object id)
id
- ID of the space processISpaceObject createSpaceObject(String typename, Map properties, List tasks)
typename
- the object's typeproperties
- initial properties (may be null)tasks
- initial task list (may be null)void addSpaceObjectType(String typename, IPropertyMetaDataSet properties)
typename
- The type name.properties
- The properties (map of maps with name->name/value/dynamic/event).void removeSpaceObjectType(String typename)
typename
- The type name.void destroySpaceObject(Object id)
id
- the object's IDISpaceObject getSpaceObject(Object id)
id
- the object's IDISpaceObject[] getSpaceObjectsByType(String type)
type
- The space object type.void addObjectTaskType(String typename, Class clazz, List properties)
typename
- The type name.properties
- The properties (list of maps with name/value/dynamic).void removeObjectTaskType(String typename)
typename
- The type name.Object createObjectTask(String typename, Map properties, Object objectid)
typename
- The type name.properties
- The properties.void removeObjectTask(Object taskid, Object objectid)
typename
- The type name.properties
- The properties.void addTaskListener(Object taskid, Object objectid, IResultListener listener)
void removeTaskListener(Object taskid, Object objectid, IResultListener listener)
IFuture<Void> waitForTask(Object taskid, Object objectid)
void addSpaceAction(String name, ISpaceAction action)
name
- the action IDaction
- the actionvoid removeSpaceAction(String name)
name
- the action IDint performSpaceAction(String name, Map parameters, IResultListener listener)
name
- Id of the actionparameters
- parameters for the action (may be null)listener
- the result listenervoid cancelSpaceAction(int id)
void addPerceptGenerator(Object id, IPerceptGenerator gen)
id
- The percept generator id.gen
- The percept generator.void removePerceptGenerator(Object id)
id
- The percept generator id.void setOwner(Object id, IComponentDescription owner)
id
- The object id.owner
- The object owner.ISpaceObject[] getAvatars(IComponentDescription owner)
ISpaceObject getAvatar(IComponentDescription owner)
void addDataView(String name, IDataView view)
name
- name of the viewview
- the viewvoid removeDataView(String name)
name
- name of the dataviewIDataView getDataView(String name)
name
- name of the dataviewMap getDataViews()
void addEnvironmentListener(IEnvironmentListener listener)
listener
- The environment listener.void removeEnvironmentListener(IEnvironmentListener listener)
listener
- The environment listener.Copyright © 2013. All Rights Reserved.