de.saar.chorus.ubench
Class NodeType
Object
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
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
NodeType
public NodeType(int type)
- Parameters:
type
-
getType
public int getType()
- Returns:
- Returns the type.
toString
public String toString()
- Overrides:
toString
in class Object