jadex.application.space.envsupport.environment
Class AbstractEnvironmentSpace

java.lang.Object
  extended by jadex.commons.SimplePropertyObject
      extended by jadex.commons.meta.TypedPropertyObject
          extended by jadex.application.space.envsupport.environment.SynchronizedPropertyObject
              extended by jadex.application.space.envsupport.environment.AbstractEnvironmentSpace
All Implemented Interfaces:
ISpace, IEnvironmentSpace, IPropertyObject, ITypedPropertyObject
Direct Known Subclasses:
Space2D

public abstract class AbstractEnvironmentSpace
extends SynchronizedPropertyObject
implements IEnvironmentSpace, ISpace

Abstract base class for environment space.


Field Summary
protected  ComponentActionList actionlist
          The list of scheduled component actions.
protected  Map actions
          Available component actions.
protected  IApplication application
          The context.
protected  MultiCollection avatarmappings
          Avatar mappings.
protected  Map dataconsumers
          The data consumers.
protected  Map dataproviders
          The data providers (name -> provider).
protected  MultiCollection dataviewmappings
          Data view mappings.
protected  SimpleValueFetcher fetcher
          The fetcher.
protected  Map initialavatars
          Initial avatar settings (aid -> [type, props]).
protected  List listeners
          The environment listeners.
protected  String name
          The space name.
protected  jadex.application.space.envsupport.environment.AbstractEnvironmentSpace.AtomicCounter objectidcounter
          Object id counter for new ids.
protected  Map objecttypes
          The space object types.
protected  Map objecttypesMeta
          The space object meta data
protected  Map perceptgenerators
          The percept generators.
protected  PerceptList perceptlist
          The list of scheduled percepts.
protected  MultiCollection perceptprocessors
          The percept processors.
protected  Map percepttypes
          The percepttypes.
protected  Map processes
          The environment processes.
protected  Map processtypes
          The space process types.
protected  Map spaceobjects
          Long/ObjectIDs (keys) and environment objects (values).
protected  Map spaceobjectsbyowner
           
protected  Map spaceobjectsbytype
          Types of EnvironmentObjects and lists of EnvironmentObjects of that type (typed view).
protected  jadex.application.space.envsupport.environment.AbstractEnvironmentSpace.AtomicCounter taskidcounter
          Task id counter for new ids.
protected  Map tasktypes
          The object task types.
protected  Map views
          Available views
protected  Map zombieobjects
          The zombie objects.
 
Fields inherited from class jadex.application.space.envsupport.environment.SynchronizedPropertyObject
monitor
 
Fields inherited from class jadex.commons.SimplePropertyObject
pcs, properties
 
Constructor Summary
AbstractEnvironmentSpace()
          Create an environment space
 
Method Summary
 void addAvatarMappings(AvatarMapping mapping)
          Adds an avatar mapping.
 void addDataConsumer(String name, ITableDataConsumer consumer)
          Add a new data consumer.
 void addDataProvider(String name, ITableDataProvider provider)
          Add a new data provider.
 void addDataView(String name, IDataView view)
          Adds a view to the space.
 void addDataViewMapping(String objecttype, Map view)
          Add a mapping from object type to data view
 void addEnvironmentListener(IEnvironmentListener listener)
          Add an environment listener.
 void addInitialAvatar(IComponentIdentifier ownerid, String type, Map props)
          Initial settings for the avatar of a specific component.
 void addObjectTaskType(String typename, Class clazz, List properties)
          Add a object task type.
 void addPerceptGenerator(Object id, IPerceptGenerator gen)
          Adds a percept generator.
 void addPerceptProcessor(String componenttype, Set percepttypes, IPerceptProcessor proc)
          Add a percept processor.
 void addPerceptType(PerceptType percepttype)
          Add a space percept type.
 void addSpaceAction(String id, ISpaceAction action)
          Adds an space action.
 void addSpaceObjectType(String typename, IPropertyMetaDataSet mobjecttype)
          Add a space 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 componentAdded(IComponentIdentifier aid)
          Called when an component was added.
 void componentRemoved(IComponentIdentifier aid)
          Called when an component was removed.
protected  ISpaceObject createAvatar(IComponentIdentifier owner, String fullname, boolean zombie)
          Create an avatar.
 Object createObjectTask(String typename, Map properties, Object objectid)
          Creates an object task.
 void createPercept(String typename, Object data, IComponentIdentifier component, ISpaceObject avatar)
          Create a percept for the given component.
 ISpaceObject createSpaceObject(String typename, Map properties, List tasks)
          Creates an object in this space.
 ISpaceObject createSpaceObjectZombie(String typename, Map properties, List tasks)
          Creates a zombie object in this space.
 void createSpaceProcess(String typename, Map properties)
          Creates a space process.
 void destroySpaceObject(Object id)
          Destroys an object in this space.
protected  void fireEnvironmentEvent(EnvironmentEvent event)
          Fire an environment event.
protected  void fireObjectEvent(SpaceObject object, String property, Object value)
          Fire an object event.
 ISpaceObject getAvatar(IComponentIdentifier owner)
          Get the avatar object.
 ISpaceObject getAvatar(IComponentIdentifier owner, String fullname)
          Get the avatar object.
protected  AvatarMapping getAvatarMapping(String componenttype, String avatartype)
          Get the avatar mapping for an component avatar combination.
 ISpaceObject[] getAvatars(IComponentIdentifier owner)
          Get the avatar objects.
 ComponentActionList getComponentActionList()
          Get the list of scheduled component actions
 IComponentIdentifier[] getComponents()
          Get the avatar objects.
 IApplication getContext()
          Get the context.
 ITableDataConsumer getDataConsumer(String name)
          Get a data consumer.
 Collection getDataConsumers()
          Get the data consumers.
 ITableDataProvider getDataProvider(String name)
          Get a data provider.
 IDataView getDataView(String name)
          Gets a specific view.
 Map getDataViews()
          Get all available dataviews in this space.
 SimpleValueFetcher getFetcher()
          Get the value fetcher.
 IComponentIdentifier getOwner(Object id)
          Get the owner of an object.
 PerceptList getPerceptList()
          Get the list of scheduled percepts.
 PerceptType getPerceptType(String percepttype)
          Get a space percept type.
 Collection getProcesses()
          Get the processes.
 Object getProperty(String name)
          Returns a property.
 ISpaceAction getSpaceAction(String id)
          Adds an space action.
 ISpaceObject getSpaceObject(Object id)
          Returns an object in this space.
 ISpaceObject getSpaceObject0(Object id)
          Returns an object in this space.
 ISpaceObject[] getSpaceObjectsByType(String type)
          Get all space object of a specific type.
 Collection getSpaceObjectsCollection()
          Get the space objects.
 ISpaceProcess getSpaceProcess(Object id)
          Returns a space process.
 Set getSpaceProcessNames()
          Returns then names of the space processes.
 Collection getViews()
          Get the views.
 void initSpace(IApplication context, MSpaceInstance config, IValueFetcher pfetcher)
          Create a space.
 void initSpaceObject(ISpaceObject ret)
          Creates an object in this space.
protected  Map mergeProperties(Collection typeprops, Map properties)
          Add type properties to runtime properties.
protected  Map mergeProperties(IPropertyMetaDataSet mObjectType, Map properties)
          Add type properties to runtime properties.
 Object performSpaceAction(String id, Map parameters)
          Performs a space action.
 void performSpaceAction(String id, Map parameters, IResultListener listener)
          Schedules an space action.
 void removeAvatarMappings(AvatarMapping mapping)
          Remove an avatar mapping.
 void removeDataView(String name)
          Removes a view 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 removePerceptProcessor(String componenttype, IPerceptProcessor proc)
          remove a percept processor.
 void removePerceptType(String typename)
          Remove a space process type.
 void removeSpaceAction(String id)
          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 setFetcher(SimpleValueFetcher fetcher)
          Set the fetcher.
 void setOwner(Object id, IComponentIdentifier owner)
          Set the owner of an object.
 void terminate()
          Terminate the space.
 
Methods inherited from class jadex.application.space.envsupport.environment.SynchronizedPropertyObject
addPropertyChangeListener, getMonitor, getPropertyNames, hasProperty, removePropertyChangeListener, setProperty
 
Methods inherited from class jadex.commons.meta.TypedPropertyObject
getMetaData, getMetaDatas
 
Methods inherited from class jadex.commons.SimplePropertyObject
getProperties, setProperties
 
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
getPropertyNames, hasProperty, setProperty
 

Field Detail

name

protected String name
The space name.


application

protected IApplication application
The context.


objecttypes

protected Map objecttypes
The space object types.


objecttypesMeta

protected Map objecttypesMeta
The space object meta data


tasktypes

protected Map tasktypes
The object task types.


processtypes

protected Map processtypes
The space process types.


percepttypes

protected Map percepttypes
The percepttypes.


actions

protected Map actions
Available component actions.


perceptgenerators

protected Map perceptgenerators
The percept generators.


perceptprocessors

protected MultiCollection perceptprocessors
The percept processors.


avatarmappings

protected MultiCollection avatarmappings
Avatar mappings.


initialavatars

protected Map initialavatars
Initial avatar settings (aid -> [type, props]).


dataviewmappings

protected MultiCollection dataviewmappings
Data view mappings.


processes

protected Map processes
The environment processes.


spaceobjects

protected Map spaceobjects
Long/ObjectIDs (keys) and environment objects (values).


spaceobjectsbytype

protected Map spaceobjectsbytype
Types of EnvironmentObjects and lists of EnvironmentObjects of that type (typed view).


spaceobjectsbyowner

protected Map spaceobjectsbyowner

objectidcounter

protected jadex.application.space.envsupport.environment.AbstractEnvironmentSpace.AtomicCounter objectidcounter
Object id counter for new ids.


taskidcounter

protected jadex.application.space.envsupport.environment.AbstractEnvironmentSpace.AtomicCounter taskidcounter
Task id counter for new ids.


actionlist

protected ComponentActionList actionlist
The list of scheduled component actions.


perceptlist

protected PerceptList perceptlist
The list of scheduled percepts.


views

protected Map views
Available views


listeners

protected List listeners
The environment listeners.


fetcher

protected SimpleValueFetcher fetcher
The fetcher.


dataproviders

protected Map dataproviders
The data providers (name -> provider).


dataconsumers

protected Map dataconsumers
The data consumers.


zombieobjects

protected Map zombieobjects
The zombie objects.

Constructor Detail

AbstractEnvironmentSpace

public AbstractEnvironmentSpace()
Create an environment space

Method Detail

initSpace

public void initSpace(IApplication context,
                      MSpaceInstance config,
                      IValueFetcher pfetcher)
               throws Exception
Create a space.

Specified by:
initSpace in interface ISpace
Throws:
Exception

addSpaceObjectType

public void addSpaceObjectType(String typename,
                               IPropertyMetaDataSet mobjecttype)
Add a space type.

Specified by:
addSpaceObjectType in interface IEnvironmentSpace
Parameters:
typename - The type name.
properties - The MobjectType.

removeSpaceObjectType

public void removeSpaceObjectType(String typename)
Remove a space object type.

Specified by:
removeSpaceObjectType in interface IEnvironmentSpace
Parameters:
typename - The type name.

addSpaceProcessType

public void addSpaceProcessType(String typename,
                                Class clazz,
                                List properties)
Add a space process type.

Specified by:
addSpaceProcessType in interface IEnvironmentSpace
Parameters:
typename - The type name.
properties - The properties.

removeSpaceProcessType

public void removeSpaceProcessType(String typename)
Remove a space process type.

Specified by:
removeSpaceProcessType in interface IEnvironmentSpace
Parameters:
typename - The type name.

createSpaceProcess

public void createSpaceProcess(String typename,
                               Map properties)
Creates a space process.

Specified by:
createSpaceProcess in interface IEnvironmentSpace
Parameters:
typename - The type name.
properties - The properties.

addObjectTaskType

public void addObjectTaskType(String typename,
                              Class clazz,
                              List properties)
Add a object task type.

Specified by:
addObjectTaskType in interface IEnvironmentSpace
Parameters:
typename - The type name.
properties - The properties.

removeObjectTaskType

public void removeObjectTaskType(String typename)
Remove an object task type.

Specified by:
removeObjectTaskType in interface IEnvironmentSpace
Parameters:
typename - The type name.

createObjectTask

public Object createObjectTask(String typename,
                               Map properties,
                               Object objectid)
Creates an object task.

Specified by:
createObjectTask in interface IEnvironmentSpace
Parameters:
typename - The type name.
properties - The properties.
Returns:
The task id.

removeObjectTask

public void removeObjectTask(Object taskid,
                             Object objectid)
Remove an object task.

Specified by:
removeObjectTask in interface IEnvironmentSpace
Parameters:
typename - The type name.
properties - The properties.

addTaskListener

public void addTaskListener(Object taskid,
                            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:
addTaskListener in interface IEnvironmentSpace

removeTaskListener

public void removeTaskListener(Object taskid,
                               Object objectid,
                               IResultListener listener)
Remove a result listener from an object task.

Specified by:
removeTaskListener in interface IEnvironmentSpace

getSpaceProcessNames

public Set getSpaceProcessNames()
Returns then names of the space processes.

Returns:
the names of the space processes

getSpaceProcess

public ISpaceProcess getSpaceProcess(Object id)
Returns a space process.

Specified by:
getSpaceProcess in interface IEnvironmentSpace
Parameters:
id - ID of the space process
Returns:
the space process or null if not found

removeSpaceProcess

public void removeSpaceProcess(Object id)
Removes a space process.

Specified by:
removeSpaceProcess in interface IEnvironmentSpace
Parameters:
id - ID of the space process

createSpaceObject

public final ISpaceObject createSpaceObject(String typename,
                                            Map properties,
                                            List tasks)
Creates an object in this space.

Specified by:
createSpaceObject in 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

createSpaceObjectZombie

public ISpaceObject createSpaceObjectZombie(String typename,
                                            Map properties,
                                            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

initSpaceObject

public void initSpaceObject(ISpaceObject ret)
Creates an object in this space.

Parameters:
type - the object's type
properties - initial properties (may be null)
tasks - initial task list (may be null)
listeners - initial listeners (may be null)

mergeProperties

protected Map mergeProperties(Collection typeprops,
                              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.

mergeProperties

protected Map mergeProperties(IPropertyMetaDataSet mObjectType,
                              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.

destroySpaceObject

public void destroySpaceObject(Object id)
Destroys an object in this space.

Specified by:
destroySpaceObject in interface IEnvironmentSpace
Parameters:
id - the object's ID

getSpaceObject

public ISpaceObject getSpaceObject(Object id)
Returns an object in this space.

Specified by:
getSpaceObject in interface IEnvironmentSpace
Parameters:
id - the object's ID
Returns:
the object in this space

getSpaceObject0

public ISpaceObject getSpaceObject0(Object id)
Returns an object in this space.

Parameters:
id - the object's ID
Returns:
the object in this space

getSpaceObjectsByType

public ISpaceObject[] getSpaceObjectsByType(String type)
Get all space object of a specific type.

Specified by:
getSpaceObjectsByType in interface IEnvironmentSpace
Parameters:
type - The space object type.
Returns:
The space objects of the desired type.

addAvatarMappings

public void addAvatarMappings(AvatarMapping mapping)
Adds an avatar mapping.

Parameters:
componenttype - The component type.
objecttype - The object type to represent the component.

removeAvatarMappings

public void removeAvatarMappings(AvatarMapping mapping)
Remove an avatar mapping.

Parameters:
componenttype - The component type.
objecttype - The object type to represent the component.

addSpaceAction

public void addSpaceAction(String id,
                           ISpaceAction action)
Adds an space action.

Specified by:
addSpaceAction in interface IEnvironmentSpace
Parameters:
actionId - the action ID
action - the action

getSpaceAction

public ISpaceAction getSpaceAction(String id)
Adds an space action.

Parameters:
actionId - the action ID
action - the action

removeSpaceAction

public void removeSpaceAction(String id)
Removes an space action.

Specified by:
removeSpaceAction in interface IEnvironmentSpace
Parameters:
actionId - the action ID

performSpaceAction

public void performSpaceAction(String id,
                               Map parameters,
                               IResultListener listener)
Schedules an space action.

Specified by:
performSpaceAction in interface IEnvironmentSpace
Parameters:
id - Id of the action
parameters - parameters for the action (may be null)
listener - the result listener

performSpaceAction

public Object performSpaceAction(String id,
                                 Map parameters)
Performs a space action.

Specified by:
performSpaceAction in interface IEnvironmentSpace
Parameters:
id - Id of the action
parameters - parameters for the action (may be null)
Returns:
return value of the action

createPercept

public void createPercept(String typename,
                          Object data,
                          IComponentIdentifier component,
                          ISpaceObject avatar)
Create a percept for the given component.

Parameters:
typename - The percept type.
data - The content of the percept (if any).
component - The component that should receive the percept.

getOwner

public IComponentIdentifier getOwner(Object id)
Get the owner of an object.

Parameters:
id - The id.
Returns:
The owner.

setOwner

public void setOwner(Object id,
                     IComponentIdentifier owner)
Set the owner of an object.

Specified by:
setOwner in interface IEnvironmentSpace
Parameters:
id - The object id.
pos - The object owner.

getAvatars

public ISpaceObject[] getAvatars(IComponentIdentifier owner)
Get the avatar objects.

Specified by:
getAvatars in interface IEnvironmentSpace
Returns:
The avatar objects.

getComponents

public IComponentIdentifier[] getComponents()
Get the avatar objects.

Returns:
The avatar objects.

getAvatar

public ISpaceObject getAvatar(IComponentIdentifier owner)
Get the avatar object.

Specified by:
getAvatar in interface IEnvironmentSpace
Returns:
The avatar object.

getAvatar

public ISpaceObject getAvatar(IComponentIdentifier owner,
                              String fullname)
Get the avatar object.

Returns:
The avatar object.

createAvatar

protected ISpaceObject createAvatar(IComponentIdentifier owner,
                                    String fullname,
                                    boolean zombie)
Create an avatar.


addDataView

public void addDataView(String name,
                        IDataView view)
Adds a view to the space.

Specified by:
addDataView in interface IEnvironmentSpace
Parameters:
name - name of the view
view - the view

removeDataView

public void removeDataView(String name)
Removes a view from the space.

Specified by:
removeDataView in interface IEnvironmentSpace
Parameters:
name - name of the view

getDataView

public IDataView getDataView(String name)
Gets a specific view.

Specified by:
getDataView in interface IEnvironmentSpace
Parameters:
name - name of the view
Returns:
the view

getDataViews

public Map getDataViews()
Get all available dataviews in this space.

Specified by:
getDataViews in interface IEnvironmentSpace
Returns:
all available dataviews

addDataViewMapping

public void addDataViewMapping(String objecttype,
                               Map view)
Add a mapping from object type to data view

Parameters:
objecttype - The object type.
view - Settings for view creation.

addEnvironmentListener

public void addEnvironmentListener(IEnvironmentListener listener)
Add an environment listener.

Specified by:
addEnvironmentListener in interface IEnvironmentSpace
Parameters:
listener - The environment listener.

removeEnvironmentListener

public void removeEnvironmentListener(IEnvironmentListener listener)
Remove an environment listener.

Specified by:
removeEnvironmentListener in interface IEnvironmentSpace
Parameters:
listener - The environment listener.

addPerceptGenerator

public void addPerceptGenerator(Object id,
                                IPerceptGenerator gen)
Adds a percept generator.

Specified by:
addPerceptGenerator in interface IEnvironmentSpace
Parameters:
id - The percept generator id.
gen - The percept generator.

removePerceptGenerator

public void removePerceptGenerator(Object id)
Remove a percept generator.

Specified by:
removePerceptGenerator in interface IEnvironmentSpace
Parameters:
id - The percept generator id.

addPerceptProcessor

public void addPerceptProcessor(String componenttype,
                                Set percepttypes,
                                IPerceptProcessor proc)
Add a percept processor.

Parameters:
componenttype - The component type.
proc - The percept processor.

removePerceptProcessor

public void removePerceptProcessor(String componenttype,
                                   IPerceptProcessor proc)
remove a percept processor.

Parameters:
componenttype - The component type.
proc - The percept processor.

addPerceptType

public void addPerceptType(PerceptType percepttype)
Add a space percept type.

Specified by:
addPerceptType in interface IEnvironmentSpace
Parameters:
typename - The percept name.
objecttypes - The objecttypes.
componenttypes - The componenttypes.

removePerceptType

public void removePerceptType(String typename)
Remove a space process type.

Specified by:
removePerceptType in interface IEnvironmentSpace
Parameters:
typename - The type name.

getPerceptType

public PerceptType getPerceptType(String percepttype)
Get a space percept type.

Specified by:
getPerceptType in interface IEnvironmentSpace
Parameters:
percepttype - The name of the percept type.
Returns:
The percept type.

componentAdded

public void componentAdded(IComponentIdentifier aid)
Called when an component was added.

Specified by:
componentAdded in interface ISpace
Parameters:
aid - The id of the added component.

componentRemoved

public void componentRemoved(IComponentIdentifier aid)
Called when an component was removed.

Specified by:
componentRemoved in interface ISpace
Parameters:
aid - The id of the removed component.

getContext

public IApplication getContext()
Get the context.

Specified by:
getContext in interface IEnvironmentSpace
Returns:
The context.

terminate

public void terminate()
Terminate the space.

Specified by:
terminate in interface ISpace

getProperty

public Object getProperty(String name)
Returns a property.

Specified by:
getProperty in interface IPropertyObject
Overrides:
getProperty in class SynchronizedPropertyObject
Parameters:
name - name of the property
Returns:
the property

getFetcher

public SimpleValueFetcher getFetcher()
Get the value fetcher.

Returns:
The fetcher.

setFetcher

public void setFetcher(SimpleValueFetcher fetcher)
Set the fetcher.

Parameters:
fetcher - The fetcher to set.

getSpaceObjectsCollection

public Collection getSpaceObjectsCollection()
Get the space objects.


getProcesses

public Collection getProcesses()
Get the processes.


getComponentActionList

public ComponentActionList getComponentActionList()
Get the list of scheduled component actions


getPerceptList

public PerceptList getPerceptList()
Get the list of scheduled percepts.


getViews

public Collection getViews()
Get the views.


fireEnvironmentEvent

protected void fireEnvironmentEvent(EnvironmentEvent event)
Fire an environment event.

Parameters:
event - The event.

fireObjectEvent

protected void fireObjectEvent(SpaceObject object,
                               String property,
                               Object value)
Fire an object event.

Parameters:
object - The object.
property - The changed property.
value - The new property value.

addInitialAvatar

public void addInitialAvatar(IComponentIdentifier ownerid,
                             String type,
                             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).

getAvatarMapping

protected AvatarMapping getAvatarMapping(String componenttype,
                                         String avatartype)
Get the avatar mapping for an component avatar combination.


addDataProvider

public void addDataProvider(String name,
                            ITableDataProvider provider)
Add a new data provider.

Parameters:
name - The name.
provider - The provider.

getDataProvider

public ITableDataProvider getDataProvider(String name)
Get a data provider.

Parameters:
name - The name.
Returns:
The provider.

addDataConsumer

public void addDataConsumer(String name,
                            ITableDataConsumer consumer)
Add a new data consumer.

Parameters:
consumer - The consumer.

getDataConsumer

public ITableDataConsumer getDataConsumer(String name)
Get a data consumer.

Parameters:
name - The name.
Returns:
The consumer.

getDataConsumers

public Collection getDataConsumers()
Get the data consumers.

Returns:
The data consumers.


Copyright © 2010. All Rights Reserved.