|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Object | +--org.caida.otter.AttributeSet
This is a hash of hashes. At the top level a category defines a top level name category. Under this top level, there may be several key->value pairs. The following is a schematic of how data is represented.
[Set of categories]- category 1 (i.e. inbound path info)
| |------> attribute1:value1 (i.e. from host 1: 70%)
| |------> attribute2:value2 (i.e. from host 2: 90%)
|
- category 2 (i.e. outbound path info)
| |------> attribute1:value1 (i.e. to host 1: 70%)
| |------> attribute2:value2 (i.e. to host 2: 90%)
etc.
| Constructor Summary | |
AttributeSet()
Create an empty attribute set. |
|
| Method Summary | |
java.lang.Object |
addAttribute(java.lang.Object category,
java.lang.Object attribute,
java.lang.Object value)
Add an attribute to inside a category |
java.lang.Object |
addCategory(java.lang.Object category)
Add a category to the set. |
java.lang.Object |
changeAttribute(java.lang.Object category,
java.lang.Object attribute,
java.lang.Object value)
Replace an attribute inside a category |
java.lang.Object |
deleteAttribute(java.lang.Object category,
java.lang.Object attribute)
Remove an attribute from inside a category |
java.lang.Object |
deleteCategory(java.lang.Object category)
Remove a category from the set of categories. |
java.lang.Object[] |
enumerateAttributes(java.lang.Object category)
Get a list of attributes in a given category |
java.lang.Object[] |
enumerateCategories()
Get a list of objects that represent all of the categories contained in this node's category set. |
java.lang.Object |
getAttribute(java.lang.Object category,
java.lang.Object attribute)
Get an attribute from inside a category |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public AttributeSet()
| Method Detail |
public java.lang.Object addCategory(java.lang.Object category)
category - An object that will represent a category in the
attribute set.
public java.lang.Object addAttribute(java.lang.Object category,
java.lang.Object attribute,
java.lang.Object value)
category - The category to insert the new object in.attribute - The attribute we're setting.value - The value we're assigning to that attribute.
public java.lang.Object getAttribute(java.lang.Object category,
java.lang.Object attribute)
category - The category to look for the attribute in.attribute - The value of the attribute to retrieve.public java.lang.Object deleteCategory(java.lang.Object category)
category - The category to remove from the set.
public java.lang.Object deleteAttribute(java.lang.Object category,
java.lang.Object attribute)
category - The category to look for the attribute in.attribute - The attribute to remove from the set.
public java.lang.Object changeAttribute(java.lang.Object category,
java.lang.Object attribute,
java.lang.Object value)
category - The category to look for the attribute in.attribute - The attribute we want to change the value of.value - The new value to assign to the attribute.public java.lang.Object[] enumerateCategories()
public java.lang.Object[] enumerateAttributes(java.lang.Object category)
category - The category to list the attributes in.
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||