org.caida.otter
Class Line

java.lang.Object
  |
  +--org.caida.otter.Line

public class Line
extends java.lang.Object


Field Summary
 AttributeSet attribSet
           
 Coordinate coord1
           
 Coordinate coord2
           
 java.lang.String name
           
 
Constructor Summary
Line(Coordinate coord1, Coordinate coord2, java.lang.String name)
           
 
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 an attribute 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
 Coordinate getCoord1()
           
 Coordinate getCoord2()
           
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name

coord1

public Coordinate coord1

coord2

public Coordinate coord2

attribSet

public AttributeSet attribSet
Constructor Detail

Line

public Line(Coordinate coord1,
            Coordinate coord2,
            java.lang.String name)
Method Detail

getName

public java.lang.String getName()

getCoord1

public Coordinate getCoord1()

getCoord2

public Coordinate getCoord2()

addCategory

public java.lang.Object addCategory(java.lang.Object category)
Add a category to the set.

addAttribute

public java.lang.Object addAttribute(java.lang.Object category,
                                     java.lang.Object attribute,
                                     java.lang.Object value)
Add an attribute to inside a category

getAttribute

public java.lang.Object getAttribute(java.lang.Object category,
                                     java.lang.Object attribute)
Get an attribute from inside a category

deleteCategory

public java.lang.Object deleteCategory(java.lang.Object category)
Remove an attribute from the set of categories.

deleteAttribute

public java.lang.Object deleteAttribute(java.lang.Object category,
                                        java.lang.Object attribute)
Remove an attribute from inside a category

changeAttribute

public java.lang.Object changeAttribute(java.lang.Object category,
                                        java.lang.Object attribute,
                                        java.lang.Object value)
Replace an attribute inside a category

enumerateCategories

public java.lang.Object[] enumerateCategories()
Get a list of objects that represent all of the categories contained in this node's category set.

enumerateAttributes

public java.lang.Object[] enumerateAttributes(java.lang.Object category)
Get a list of attributes in a given category