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

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

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


Field Summary
 int cost
           
 StreamDist.Path path
           
 
Constructor Summary
protected StreamDist.Cell(StreamDist.Path path, int cost)
           
 
Method Summary
 void consume(StreamDist.Cell c, Token x, int dir)
           
 void consume(StreamDist.Cell c, Token x, Token y)
           
 int consumption(Token x, int dir)
          calculates cost after consumption.
 int consumption(Token x, Token y)
          calculates cost after consumption.
 void copy(StreamDist.Cell c)
           
static StreamDist.Cell create()
           
static StreamDist.Cell createRoot()
           
 int getCost()
           
 boolean isEmpty()
           
 void setEmpty()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cost

public int cost

path

public StreamDist.Path path
Constructor Detail

StreamDist.Cell

protected StreamDist.Cell(StreamDist.Path path,
                          int cost)
Method Detail

consume

public void consume(StreamDist.Cell c,
                    Token x,
                    int dir)

consume

public void consume(StreamDist.Cell c,
                    Token x,
                    Token y)

consumption

public int consumption(Token x,
                       int dir)
calculates cost after consumption.

Returns:
INF if operation is inappropriate

consumption

public int consumption(Token x,
                       Token y)
calculates cost after consumption.

Returns:
INF if operation is inappropriate

copy

public void copy(StreamDist.Cell c)

create

public static StreamDist.Cell create()

createRoot

public static StreamDist.Cell createRoot()

getCost

public int getCost()

isEmpty

public boolean isEmpty()

setEmpty

public void setEmpty()

toString

public java.lang.String toString()