de.cau.cs.kieler.klay.layered.graph
Class LGraphElement

java.lang.Object
  extended by de.cau.cs.kieler.core.properties.MapPropertyHolder
      extended by de.cau.cs.kieler.klay.layered.graph.LGraphElement
All Implemented Interfaces:
IPropertyHolder, Comparable<LGraphElement>
Direct Known Subclasses:
Layer, LayeredGraph, LEdge, LShape

public abstract class LGraphElement
extends MapPropertyHolder
implements Comparable<LGraphElement>

Abstract superclass for the layers, nodes, ports, and edges of a layered graph.

Rating red

Field Summary
 int id
          Identifier value, may be arbitrarily used by algorithms.
 
Constructor Summary
LGraphElement()
           
 
Method Summary
 int compareTo(LGraphElement other)
          Compares this with another Object.
 
Methods inherited from class de.cau.cs.kieler.core.properties.MapPropertyHolder
checkProperties, copyProperties, getAllProperties, getProperty, getProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public int id
Identifier value, may be arbitrarily used by algorithms.

Constructor Detail

LGraphElement

public LGraphElement()
Method Detail

compareTo

public int compareTo(LGraphElement other)
Compares this with another Object. Returns -1 if this object is smaller, 0 if both objects are equal and 1 if this object is bigger.

Specified by:
compareTo in interface Comparable<LGraphElement>
Parameters:
other - the object to compare with
Returns:
one of the values -1, 0, 1