|
GraphLab Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NotifiableAttributeSet
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.
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 |
---|
void addAttributeListener(AttributeListener attributeListener)
List
because of
getAttributeListeners()
method.
attributeListener
- the listener!attrNames
- the name of attributes to addListener for changejava.util.Collection<AttributeListener> getAttributeListeners()
attrNames
-
void removeAttributeListener(AttributeListener attributeListener)
attributeListener
-
|
GraphLab Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |