harpoon.Analysis.GraphColoring
Class ColorableNode
java.lang.Object
harpoon.Analysis.GraphColoring.Node
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>
color
protected Color color
ColorableNode
public ColorableNode()
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