dsg.smart.test
Class SinSource

java.lang.Object
  extended bydsg.smart.SMBase
      extended bydsg.smart.test.SinSource
All Implemented Interfaces:
StreamModule

public class SinSource
extends SMBase

A stream module with one output. Steps through the value of the sin() function, 45 degrees at a time. Outputs one "sample point" per second. Output is as a stream of serialized Double objects.


Constructor Summary
SinSource()
           
 
Method Summary
 void run(SMContext con)
          Entry point --- should never exit.
 
Methods inherited from class dsg.smart.SMBase
getInput, getNumInputs, getNumOutputs, getOutput, setInput, setOutput, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SinSource

public SinSource()
Method Detail

run

public void run(SMContext con)
Entry point --- should never exit.

Parameters:
con - a context object, containing any Smart system calls one wishes to provide to the Stream Modules.
See Also:
Session