|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- Type of object this Interface is an Attribute for (e.g. the type of the node data structure)public interface DoubleAttribute<T>
The DoubleAttribute enables access to a specific attribute of any type of objects. CentiLib uses this Interface to handle node and edge attributes.
Method Summary | |
---|---|
String |
getName()
The name of the attribute. |
Double |
getValue(T element)
Returns the attribute value for element if it exists, null or Double.NaN otherwise. |
String |
toString()
The method toString() should be overwritten to return the name of the attribute. |
Method Detail |
---|
String toString()
toString
in class Object
String getName()
Double getValue(T element)
element
- the object to get the attribute value for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |