|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object CTL.Types.Tupel CTL.Types.Node
public class Node
Element of CTL graph
Field Summary | |
---|---|
private static TypeTree[] |
types
Type parameters of the underlying Tupel |
Fields inherited from class CTL.Types.Tupel |
---|
data, type |
Constructor Summary | |
---|---|
Node(java.lang.String name,
int cost)
Generate a new Node |
Method Summary | |
---|---|
int |
cost()
Retrieve the cost of this Node |
java.lang.String |
name()
Retrieve the name of this Node |
void |
read(OIStream in)
Serial read function |
void |
setTypes(TypeTree[] t)
This method just sets the statically defined 'types' array to this objects 'type' attribute, as defined in Tupel. |
java.lang.String |
toString()
Retrieve a String representation of this object |
Methods inherited from class CTL.Types.Tupel |
---|
equals, insert, item, length, read, setItem, type, write |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static TypeTree[] types
Constructor Detail |
---|
public Node(java.lang.String name, int cost) throws CTLException, java.lang.ClassNotFoundException
name
- Namecost
- Cost to reach this node
CTLException
java.lang.ClassNotFoundException
Method Detail |
---|
public void setTypes(TypeTree[] t)
setTypes
in interface TemplHack
setTypes
in class Tupel
t
- Dummy argument to satify the TemplHack interface used
by Tupel.public java.lang.String name()
public int cost()
public java.lang.String toString()
toString
in class Tupel
public void read(OIStream in) throws java.io.IOException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
in
- Input stream
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |