hades.models.imaging
Class SimpleFilter

java.lang.Object
  extended byhades.simulator.SimObject
      extended byhades.models.imaging.SimpleFilter
All Implemented Interfaces:
java.lang.Cloneable, ContextToolTip, java.io.Serializable, Simulatable
Direct Known Subclasses:
BlueFilter, ConvolutionFilter, DifferenceFilter, GaussFilter, GrayFilter, GreenFilter, InvertFilter, MirrorXFilter, MirrorYFilter, OpaqueFilter, RedFilter, TriggeredFilter

public class SimpleFilter
extends SimObject
implements Simulatable, java.io.Serializable

SimpleFilter - stub baseclass for simple per-pixel image filters Signals are expected to be ImageSignals.

See Also:
Serialized Form

Field Summary
protected  java.awt.Image inputImage
           
protected  java.awt.Image outputImage
           
protected  Port port_A
           
protected  Port port_Y
           
protected  double t_delay
           
 
Fields inherited from class hades.simulator.SimObject
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible
 
Constructor Summary
SimpleFilter()
           
 
Method Summary
 void configure()
          create and display a 'ConfigDialog' to set the parameters for a SimObject.
 void elaborate(java.lang.Object arg)
          elaborate(): This method is called by the simulation engine to initialize the simulation object.
 void evaluate(java.lang.Object arg)
          evaluate(): called by the simulation engine on all events that concern this object.
 java.awt.Image filter(java.awt.Image inputImage)
           
static java.awt.image.BufferedImage getBufferedImage(java.awt.Image image)
           
static java.awt.image.BufferedImage getClone(java.awt.Image image)
           
 boolean initialize(java.lang.String s)
          initialize a SimpleFilter from a String that contains the integer version id of this gate and its propagation delay (in seconds), e.g.
static void msg(java.lang.String s)
           
 java.lang.String toString()
          toString() - the usual info method
 void write(java.io.PrintWriter ps)
           
 
Methods inherited from class hades.simulator.SimObject
constructDynamicSymbol, copy, getBindkey, getClassLoader, getDebug, getEditor, getExternalResources, getFullName, getName, getParent, getPort, getPorts, getPropertySheet, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getToolTip, getVersionId, isVisible, keyPressed, message, mousePressed, needsDynamicSymbol, needsExternalResources, setClassLoader, setConsole, setDebug, setEditor, setName, setParent, setPorts, setSimulator, setSymbol, setVersionId, setVisible, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface hades.simulator.Simulatable
message
 

Field Detail

port_A

protected Port port_A

port_Y

protected Port port_Y

inputImage

protected java.awt.Image inputImage

outputImage

protected java.awt.Image outputImage

t_delay

protected double t_delay
Constructor Detail

SimpleFilter

public SimpleFilter()
Method Detail

elaborate

public void elaborate(java.lang.Object arg)
Description copied from interface: Simulatable
elaborate(): This method is called by the simulation engine to initialize the simulation object.

Specified by:
elaborate in interface Simulatable
Overrides:
elaborate in class SimObject

evaluate

public void evaluate(java.lang.Object arg)
Description copied from interface: Simulatable
evaluate(): called by the simulation engine on all events that concern this object. The object is responsible for updating its internal state and for scheduling all pending output events.

Specified by:
evaluate in interface Simulatable
Overrides:
evaluate in class SimObject
Parameters:
arg - an arbitrary object argument

filter

public java.awt.Image filter(java.awt.Image inputImage)

getBufferedImage

public static java.awt.image.BufferedImage getBufferedImage(java.awt.Image image)

getClone

public static java.awt.image.BufferedImage getClone(java.awt.Image image)

configure

public void configure()
Description copied from class: SimObject
create and display a 'ConfigDialog' to set the parameters for a SimObject. The default ConfigDialog for the base class (SimObject) itself is empty except for the 'instance name' of the SimObject.

Overrides:
configure in class SimObject

initialize

public boolean initialize(java.lang.String s)
initialize a SimpleFilter from a String that contains the integer version id of this gate and its propagation delay (in seconds), e.g. '1001 0.5E-8'.

Overrides:
initialize in class SimObject

write

public void write(java.io.PrintWriter ps)
Overrides:
write in class SimObject

msg

public static void msg(java.lang.String s)

toString

public java.lang.String toString()
toString() - the usual info method

Overrides:
toString in class SimObject