GraphLab Project

graphlab.platform.attribute
Interface NotifiableAttributeSet

All Superinterfaces:
AttributeSet
All Known Subinterfaces:
NotifiableAttributeSetView
All Known Implementing Classes:
EdgeNotifiableAttrSet, GraphNotifiableAttrSet, NotifiableAttributeSetImpl, PortableNotifiableAttributeSetImpl, TimeLimitedNotifiableAttrSet, VertexNotifiableAttrSet

public interface NotifiableAttributeSet
extends AttributeSet

An Interface which is an AttributeSet and also it is notifiable
as an example see NotifiableAttributeSetImpl
The difference between a NotifiableAttributeSet and a BlackBoard is that, NotifiableAttributeSet is designed for a small set of attributes, so for example getAttributeListeners() will return all listeners of all attributes, but BlackBoard is for a bigger set of attributes, and there you can give listeners for just one key at a time.

Author:
Azin Azadi
See Also:
NotifiableAttributeSetImpl

Method Summary
 void addAttributeListener(AttributeListener attributeListener)
          Add a listener to changes of an AttributeSet.
 java.util.Collection<AttributeListener> getAttributeListeners()
           
 void removeAttributeListener(AttributeListener attributeListener)
          Remove a listener from list of listeners.
 
Methods inherited from interface graphlab.platform.attribute.AttributeSet
get, getAttrs, put
 

Method Detail

addAttributeListener

void addAttributeListener(AttributeListener attributeListener)
Add a listener to changes of an AttributeSet.
It's better to use a List because of getAttributeListeners() method.

Parameters:
attributeListener - the listener!
attrNames - the name of attributes to addListener for change

getAttributeListeners

java.util.Collection<AttributeListener> getAttributeListeners()
Parameters:
attrNames -
Returns:
List of listeners

removeAttributeListener

void removeAttributeListener(AttributeListener attributeListener)
Remove a listener from list of listeners.

Parameters:
attributeListener -

GraphLab Project