edu.buffalo.nsf.xmlcqa.data.stream
Class StreamDist.Cell
java.lang.Object
edu.buffalo.nsf.xmlcqa.data.stream.StreamDist.Cell
- Enclosing class:
- StreamDist
- protected static class StreamDist.Cell
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
cost
public int cost
path
public StreamDist.Path path
StreamDist.Cell
protected StreamDist.Cell(StreamDist.Path path,
int cost)
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()