de.saar.chorus.ubench
Class NodeType

Object
  extended by NodeType

public class NodeType
extends Object

A node type -- either labelled or unlabelled (i.e. non-hole or hole). TODO This should be replaced by a proper enumeration. But Eclipse doesn't support enum types yet, so we'll use this hack for now. It is safe (and encouraged) to use NodeType.labelled and NodeType.unlabelled and compare them with ==.

Author:
Alexander Koller

Field Summary
static NodeType labelled
           
static int labelledVal
           
static NodeType unlabelled
           
static int unlabelledVal
           
 
Constructor Summary
NodeType(int type)
           
 
Method Summary
 int getType()
           
 String toString()
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

labelledVal

public static final int labelledVal
See Also:
Constant Field Values

unlabelledVal

public static final int unlabelledVal
See Also:
Constant Field Values

labelled

public static final NodeType labelled

unlabelled

public static final NodeType unlabelled
Constructor Detail

NodeType

public NodeType(int type)
Parameters:
type -
Method Detail

getType

public int getType()
Returns:
Returns the type.

toString

public String toString()
Overrides:
toString in class Object