harpoon.Analysis.GraphColoring
Class ColorableNode

java.lang.Object
  extended by harpoon.Analysis.GraphColoring.Node
      extended by harpoon.Analysis.GraphColoring.ColorableNode
Direct Known Subclasses:
SparseNode

public abstract class ColorableNode
extends Node

ColorableNode

Version:
$Id: ColorableNode.java,v 1.2 2002/02/25 20:57:17 cananian Exp $
Author:
Felix S. Klock II <pnkfelix@mit.edu>

Field Summary
protected  Color color
           
 
Constructor Summary
ColorableNode()
           
 
Method Summary
 Color getColor()
          Returns the color of this.
 boolean isModifiable()
          Modifiability check.
 
Methods inherited from class harpoon.Analysis.GraphColoring.Node
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

color

protected Color color
Constructor Detail

ColorableNode

public ColorableNode()
Method Detail

isModifiable

public boolean isModifiable()
Modifiability check.
effects: If this is allowed to be modified, returns true. Else returns false.

Overrides:
isModifiable in class Node

getColor

public Color getColor()
               throws NodeNotColoredException
Returns the color of this.
requires: this has been colored.
effects: If the color of this has been set, returns the Color object representing the color of this.

Throws:
NodeNotColoredException