|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.simulator.SimObject
hades.models.imaging.ParametrizedFilter
ParametrizedFilter - stub baseclass for simple per-pixel image filters Signals are expected to be ImageSignals.
Field Summary | |
protected double |
d0
|
protected double |
d1
|
protected double |
d2
|
protected double |
d3
|
protected double |
d4
|
protected double |
d5
|
protected double |
d6
|
protected double |
d7
|
protected double |
d8
|
protected double |
d9
|
protected java.awt.Image |
inputImage
|
protected java.awt.Image |
outputImage
|
protected int |
p0
|
protected int |
p1
|
protected int |
p2
|
protected int |
p3
|
protected int |
p4
|
protected int |
p5
|
protected int |
p6
|
protected int |
p7
|
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 | |
ParametrizedFilter()
|
Method Summary | |
int |
_clip(int min,
int max,
int value)
|
double |
_toDouble(java.lang.String s)
|
int |
_toInt(java.lang.String s)
|
void |
applyValuesHook()
|
void |
buildPorts()
|
void |
checkApplyCallsEvaluate()
check whether to call evaluate() from apply() in the property sheet. |
void |
configure()
create and display a 'ConfigDialog' to set the parameters for a SimObject. |
SimObject |
copy()
copy(): This function is used to create a clone of the current 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)
|
java.awt.image.BufferedImage |
getBufferedImage(java.awt.Image image)
|
java.awt.image.BufferedImage |
getClone(java.awt.Image image)
|
double |
getD0()
|
double |
getD1()
|
double |
getD2()
|
double |
getD3()
|
double |
getD4()
|
double |
getD5()
|
double |
getD6()
|
double |
getD7()
|
double |
getD8()
|
double |
getD9()
|
int |
getP0()
|
int |
getP1()
|
int |
getP2()
|
int |
getP3()
|
int |
getP4()
|
int |
getP5()
|
int |
getP6()
|
int |
getP7()
|
java.lang.String[] |
getPropertySheetFieldNames()
|
boolean |
initialize(java.lang.String s)
initialize a ParametrizedFilter from a String that contains the integer version id and (up to eight) integer paramters. |
void |
msg(java.lang.String s)
|
void |
setD0(double v)
|
void |
setD0(java.lang.String s)
|
void |
setD1(double v)
|
void |
setD1(java.lang.String s)
|
void |
setD2(double v)
|
void |
setD2(java.lang.String s)
|
void |
setD3(double v)
|
void |
setD3(java.lang.String s)
|
void |
setD4(double v)
|
void |
setD4(java.lang.String s)
|
void |
setD5(double v)
|
void |
setD5(java.lang.String s)
|
void |
setD6(double v)
|
void |
setD6(java.lang.String s)
|
void |
setD7(double v)
|
void |
setD7(java.lang.String s)
|
void |
setD8(double v)
|
void |
setD8(java.lang.String s)
|
void |
setD9(double v)
|
void |
setD9(java.lang.String s)
|
void |
setP0(int v)
|
void |
setP0(java.lang.String s)
|
void |
setP1(int v)
|
void |
setP1(java.lang.String s)
|
void |
setP2(int v)
|
void |
setP2(java.lang.String s)
|
void |
setP3(int v)
|
void |
setP3(java.lang.String s)
|
void |
setP4(int v)
|
void |
setP4(java.lang.String s)
|
void |
setP5(int v)
|
void |
setP5(java.lang.String s)
|
void |
setP6(int v)
|
void |
setP6(java.lang.String s)
|
void |
setP7(int v)
|
void |
setP7(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, 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 |
protected Port port_A
protected Port port_Y
protected java.awt.Image inputImage
protected java.awt.Image outputImage
protected double t_delay
protected int p0
protected int p1
protected int p2
protected int p3
protected int p4
protected int p5
protected int p6
protected int p7
protected double d0
protected double d1
protected double d2
protected double d3
protected double d4
protected double d5
protected double d6
protected double d7
protected double d8
protected double d9
Constructor Detail |
public ParametrizedFilter()
Method Detail |
public void buildPorts()
public void elaborate(java.lang.Object arg)
Simulatable
elaborate
in interface Simulatable
elaborate
in class SimObject
public void evaluate(java.lang.Object arg)
Simulatable
evaluate
in interface Simulatable
evaluate
in class SimObject
arg
- an arbitrary object argumentpublic java.awt.Image filter(java.awt.Image inputImage)
public java.awt.image.BufferedImage getBufferedImage(java.awt.Image image)
public java.awt.image.BufferedImage getClone(java.awt.Image image)
public void checkApplyCallsEvaluate()
public void applyValuesHook()
public int getP0()
public int getP1()
public int getP2()
public int getP3()
public int getP4()
public int getP5()
public int getP6()
public int getP7()
public void setP0(int v)
public void setP1(int v)
public void setP2(int v)
public void setP3(int v)
public void setP4(int v)
public void setP5(int v)
public void setP6(int v)
public void setP7(int v)
public void setP0(java.lang.String s)
public void setP1(java.lang.String s)
public void setP2(java.lang.String s)
public void setP3(java.lang.String s)
public void setP4(java.lang.String s)
public void setP5(java.lang.String s)
public void setP6(java.lang.String s)
public void setP7(java.lang.String s)
public double getD0()
public double getD1()
public double getD2()
public double getD3()
public double getD4()
public double getD5()
public double getD6()
public double getD7()
public double getD8()
public double getD9()
public void setD0(double v)
public void setD1(double v)
public void setD2(double v)
public void setD3(double v)
public void setD4(double v)
public void setD5(double v)
public void setD6(double v)
public void setD7(double v)
public void setD8(double v)
public void setD9(double v)
public void setD0(java.lang.String s)
public void setD1(java.lang.String s)
public void setD2(java.lang.String s)
public void setD3(java.lang.String s)
public void setD4(java.lang.String s)
public void setD5(java.lang.String s)
public void setD6(java.lang.String s)
public void setD7(java.lang.String s)
public void setD8(java.lang.String s)
public void setD9(java.lang.String s)
public int _toInt(java.lang.String s)
public double _toDouble(java.lang.String s)
public int _clip(int min, int max, int value)
public java.lang.String[] getPropertySheetFieldNames()
public void configure()
SimObject
configure
in class SimObject
public SimObject copy()
SimObject
I am not yet sure about the correct and best semantic for copy(). Currently a new object of the current class is created by calling the default constructor.
copy
in class SimObject
public boolean initialize(java.lang.String s)
initialize
in class SimObject
public void write(java.io.PrintWriter ps)
write
in class SimObject
public void msg(java.lang.String s)
public java.lang.String toString()
toString
in class SimObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |