jass.engine
Class FilterUG

java.lang.Object
  extended by jass.engine.Out
      extended by jass.engine.InOut
          extended by jass.engine.FilterUG
All Implemented Interfaces:
Sink, Source
Direct Known Subclasses:
Delay, DelayUG, OnePoleLowPass, Probe

public abstract class FilterUG
extends InOut

FilterUG abstract class. Like InOUt but only allows one source.

Author:
Kees van den Doel (kvdoel@cs.ubc.ca)

Field Summary
 
Fields inherited from class jass.engine.InOut
sourceContainer, sourcePassivity, srcBuffers
 
Fields inherited from class jass.engine.Out
buf, bufferSize, bufOld, lock
 
Constructor Summary
FilterUG(int bufferSize)
           
 
Method Summary
 java.lang.Object addSource(Source s)
          Add source to Sink.
 
Methods inherited from class jass.engine.InOut
addSource, getBuffer, getSources, removeSource, resetTime
 
Methods inherited from class jass.engine.Out
clearBuffer, computeBuffer, copyToOld, getBuffer, getBufferSize, getTime, peekAtBuffer, setBufferSize, setTime, setTimeAndNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterUG

public FilterUG(int bufferSize)
Method Detail

addSource

public java.lang.Object addSource(Source s)
                           throws SinkIsFullException
Add source to Sink. Override to allow one input only

Specified by:
addSource in interface Sink
Overrides:
addSource in class InOut
Parameters:
s - Source to add.
Returns:
object representing Source in Sink (may be null).
Throws:
SinkIsFullException