|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.UCL.satin.arch.components.Component edu.UCL.satin.impl.arch.components.comms.Discovery
Represents a SATIN discovery component
Field Summary |
Fields inherited from class edu.UCL.satin.arch.components.Component |
immutable, properties |
Fields inherited from interface edu.UCL.satin.arch.facets.ComponentFacet |
DISABLED, ENABLED |
Constructor Summary | |
Discovery(java.lang.Object id)
Creates a new Discovery component with the given component identifier |
Method Summary | |
abstract void |
addListener(ComponentListener c)
Adds a listener that will be notified when any new component is discovered. |
abstract void |
addListener(ComponentListener c,
java.util.Hashtable filter)
Adds a listener that will be notified when any new component matching the filter given is discovered. |
abstract Component[] |
getComponents(java.util.Hashtable properties)
Returns an array of Components found that match the given property set |
abstract void |
removeListener(ComponentListener c)
Removes all instances of the given listener (including any different filters) from the list of listeners to be notified. |
abstract void |
removeListener(ComponentListener c,
java.util.Hashtable filter)
Removes the particular listener+filter pair from the list of listeners to be notified. |
Methods inherited from class edu.UCL.satin.arch.components.Component |
addAttribute, construct, destroy, getAttribute, getProperties, hasAttribute, isEnabled, match, setEnabled, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Discovery(java.lang.Object id)
id
- The component identifierMethod Detail |
public abstract void addListener(ComponentListener c)
addListener
in interface DiscoveryFacet
c
- the listener that will be notifiedpublic abstract void addListener(ComponentListener c, java.util.Hashtable filter)
addListener
in interface DiscoveryFacet
c
- the listener to be notifiedfilter
- The filter, as a hashtable of attributespublic abstract void removeListener(ComponentListener c)
removeListener
in interface DiscoveryFacet
c
- The listener to be removed.public abstract void removeListener(ComponentListener c, java.util.Hashtable filter)
removeListener
in interface DiscoveryFacet
c
- The listener to be removedfilter
- The filter matches of which this listener will not be notified any more.public abstract Component[] getComponents(java.util.Hashtable properties)
getComponents
in interface DiscoveryFacet
properties
- The properties that the returned components need to match
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |