|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdsg.smart.SMBase
Base class useful in writing Stream Modules.
Constructor Summary | |
SMBase(int numInputs,
int numOutputs)
|
Method Summary | |
java.io.InputStream |
getInput(int i)
Returns the stream attached to the ith input. |
int |
getNumInputs()
How many inputs does this stream module have? |
int |
getNumOutputs()
How many outputs does this stream module have? |
java.io.OutputStream |
getOutput(int i)
Returns the output stream attached to the ith output. |
void |
setInput(int i,
java.io.InputStream fin)
Assigns input stream --- called by MIT code when connecting stream modules. |
void |
setOutput(int i,
java.io.OutputStream fout)
Assigns output stream --- called by MIT code when connecting stream modules. |
void |
stop()
Generally called from a separate thread from run(). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface dsg.smart.StreamModule |
run |
Constructor Detail |
public SMBase(int numInputs, int numOutputs)
Method Detail |
public int getNumInputs()
StreamModule
getNumInputs
in interface StreamModule
public int getNumOutputs()
StreamModule
getNumOutputs
in interface StreamModule
public void setInput(int i, java.io.InputStream fin)
setInput
in interface StreamModule
public java.io.InputStream getInput(int i)
StreamModule
getInput
in interface StreamModule
public void setOutput(int i, java.io.OutputStream fout)
setOutput
in interface StreamModule
public java.io.OutputStream getOutput(int i)
StreamModule
getOutput
in interface StreamModule
public void stop()
StreamModule
stop
in interface StreamModule
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |