cage
Class CaGePipe

java.lang.Object
  extended by lisken.systoolbox.Pipe
      extended by cage.CaGePipe
All Implemented Interfaces:
CaGeRunner
Direct Known Subclasses:
NativeCaGePipe

public abstract class CaGePipe
extends Pipe
implements CaGeRunner


Field Summary
protected  java.util.Vector propertyChangeListeners
           
 
Fields inherited from class lisken.systoolbox.Pipe
cmds, e_name, i_fd, i_name, o_append, o_fd, o_name, path, pipe_pid, reader_fd, runDir, writer_fd
 
Constructor Summary
CaGePipe(java.lang.String[][] generatorCmds, java.lang.String inFilename, java.lang.String outFilename, java.lang.String errFilename)
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
abstract  void advanceBy(int n)
           
 void fireExceptionOccurred(java.lang.Exception e)
           
 void fireFlowingChanged()
           
 void fireGraphNoChanged()
           
protected  void firePropertyChange(java.beans.PropertyChangeEvent e)
           
 void fireRunningChanged()
           
abstract  EmbeddableGraph getGraph()
           
 int getGraphNo()
           
 boolean isFlowing()
           
 boolean isRunning()
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void setFlowing(boolean flowing)
           
 void setGraphNo(int n)
           
abstract  void setGraphNoFireInterval(int interval)
           
 void start()
           
abstract  void yieldAndAdvanceBy(int n)
           
 
Methods inherited from class lisken.systoolbox.Pipe
checkForExit, finalize, finalizePipe, getInputStream, getOutputStream, main, setPath, setRunDir, startPipe, stop, waitForExit, yieldUntilExit
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyChangeListeners

protected final java.util.Vector propertyChangeListeners
Constructor Detail

CaGePipe

public CaGePipe(java.lang.String[][] generatorCmds,
                java.lang.String inFilename,
                java.lang.String outFilename,
                java.lang.String errFilename)
         throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

advanceBy

public abstract void advanceBy(int n)
                        throws java.lang.Exception
Throws:
java.lang.Exception

yieldAndAdvanceBy

public abstract void yieldAndAdvanceBy(int n)
                                throws java.lang.Exception
Throws:
java.lang.Exception

setGraphNoFireInterval

public abstract void setGraphNoFireInterval(int interval)

getGraph

public abstract EmbeddableGraph getGraph()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Overrides:
start in class Pipe
Throws:
java.lang.Exception

getGraphNo

public int getGraphNo()
Specified by:
getGraphNo in interface CaGeRunner

setGraphNo

public void setGraphNo(int n)
                throws java.lang.Exception
Throws:
java.lang.Exception

setFlowing

public void setFlowing(boolean flowing)
                throws java.lang.Exception
Throws:
java.lang.Exception

isFlowing

public boolean isFlowing()

isRunning

public boolean isRunning()

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface CaGeRunner

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Specified by:
removePropertyChangeListener in interface CaGeRunner

fireGraphNoChanged

public void fireGraphNoChanged()
Specified by:
fireGraphNoChanged in interface CaGeRunner

fireFlowingChanged

public void fireFlowingChanged()

fireRunningChanged

public void fireRunningChanged()
Specified by:
fireRunningChanged in interface CaGeRunner

fireExceptionOccurred

public void fireExceptionOccurred(java.lang.Exception e)
Specified by:
fireExceptionOccurred in interface CaGeRunner

firePropertyChange

protected void firePropertyChange(java.beans.PropertyChangeEvent e)