edu.buffalo.nsf.xmlcqa.data.stream
Class StreamDist.Path

java.lang.Object
  extended byedu.buffalo.nsf.xmlcqa.data.stream.StreamDist.Path
Enclosing class:
StreamDist

protected static class StreamDist.Path
extends java.lang.Object


Field Summary
protected  int cost
           
protected  int dir
           
protected static StreamDist.Path EMPTY
           
protected  StreamDist.Path parent
           
protected static StreamDist.Path ROOT
           
 
Constructor Summary
protected StreamDist.Path(StreamDist.Path parent, int dir, int cost)
           
 
Method Summary
 StreamDist.Path consume(Token t, int dir)
           
 StreamDist.Path consume(Token x, Token y)
           
 int getCost()
           
 int getDir()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cost

protected int cost

dir

protected int dir

EMPTY

protected static final StreamDist.Path EMPTY

parent

protected StreamDist.Path parent

ROOT

protected static final StreamDist.Path ROOT
Constructor Detail

StreamDist.Path

protected StreamDist.Path(StreamDist.Path parent,
                          int dir,
                          int cost)
Method Detail

consume

public StreamDist.Path consume(Token t,
                               int dir)

consume

public StreamDist.Path consume(Token x,
                               Token y)

getCost

public int getCost()

getDir

public int getDir()

toString

public java.lang.String toString()