|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.ece.iacl.jist.pipeline.PipePort<T> edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel<java.lang.Number> edu.jhu.ece.iacl.jist.pipeline.parameter.ParamNumber
public abstract class ParamNumber
Number Parameter storage.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort |
---|
PipePort.PortListener, PipePort.type |
Field Summary | |
---|---|
protected java.lang.Number |
max
The max. |
static double |
MAX_DOUBLE_VALUE
The Constant MAX_DOUBLE_VALUE. |
static float |
MAX_FLOAT_VALUE
The Constant MAX_FLOAT_VALUE. |
static int |
MAX_INT_VALUE
The Constant MAX_INT_VALUE. |
static long |
MAX_LONG_VALUE
The Constant MAX_LONG_VALUE. |
protected java.lang.Number |
min
The min. |
static double |
MIN_DOUBLE_VALUE
The Constant MIN_DOUBLE_VALUE. |
static float |
MIN_FLOAT_VALUE
The Constant MIN_FLOAT_VALUE. |
static int |
MIN_INT_VALUE
The Constant MIN_INT_VALUE. |
static long |
MIN_LONG_VALUE
The Constant MIN_LONG_VALUE. |
protected java.lang.Number |
value
The value. |
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel |
---|
cliTag, description, factory, hidden, label, loadAndSaveOnValidate, mandatory, shortLabel |
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort |
---|
connectible, gport, incomingConnectors, listeners, maxIncoming, maxOutgoing, outgoingConnectors, owner, portType, useWire |
Constructor Summary | |
---|---|
ParamNumber()
|
Method Summary | |
---|---|
abstract ParamNumber |
clone()
Clone parameter. |
boolean |
equals(ParamModel<java.lang.Number> model)
|
double |
getDouble()
Get the number value as double. |
float |
getFloat()
Get the number value as float. |
int |
getInt()
Get the number value as int. |
long |
getLong()
Get the number value as long. |
java.lang.Number |
getMax()
Get maximum possible value. |
java.lang.Number |
getMin()
Get minimum possible value. |
java.lang.Number |
getValue()
Get the number value. |
boolean |
isCompatible(PipePort model)
Check compatiblity between parameters. |
java.lang.String |
probeDefaultValue()
|
void |
setValue(java.lang.Number value)
Set the parameter. |
abstract void |
setValue(java.lang.String str)
Set the parameter. |
java.lang.String |
toString()
Get description of parameter. |
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel |
---|
clean, compareTo, createMipavParameter, createTreeNode, dispose, getCliTag, getDescription, getFactory, getHumanReadableDataType, getInputView, getLabel, getName, getOutputView, getShortLabel, getView, getXMLValue, hide, importMipavParameter, importParameter, isConnectible, isHidden, isMandatory, loadResources, loadResources, read, read, replacePath, saveResources, setCliTag, setDescription, setFactory, setHidden, setInputView, setLabel, setLoadAndSaveOnValidate, setMandatory, setName, setOutputView, setShortLabel, setXMLValue, toXML, validate, write, write, writeAndFreeNow |
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort |
---|
addListener, disconnect, disconnect, disconnect, disconnect, getGraphPort, getIncomingConnector, getIncomingConnectors, getIncomingPorts, getListeners, getMaxIncoming, getMaxOutgoing, getOutgoingConnector, getOutgoingConnectors, getOutgoingPorts, getOwner, getPortType, init, isConnected, isConnectedTo, isInputPort, isOutputPort, notifyListenersOfConnection, notifyListenersOfDisconnection, removeAllListeners, removeListener, setConnectable, setGraphPort, setMaxIncoming, setMaxOutgoing, setOwner, setPortType, setUseConnector, usingConnector |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final double MIN_DOUBLE_VALUE
public static final double MAX_DOUBLE_VALUE
public static final float MIN_FLOAT_VALUE
public static final float MAX_FLOAT_VALUE
public static final int MIN_INT_VALUE
public static final int MAX_INT_VALUE
public static final long MIN_LONG_VALUE
public static final long MAX_LONG_VALUE
protected java.lang.Number value
protected java.lang.Number min
protected java.lang.Number max
Constructor Detail |
---|
public ParamNumber()
Method Detail |
---|
public abstract ParamNumber clone()
PipePort
clone
in class ParamModel<java.lang.Number>
public double getDouble()
public float getFloat()
public int getInt()
public long getLong()
public java.lang.Number getMax()
public java.lang.Number getMin()
public java.lang.Number getValue()
getValue
in class ParamModel<java.lang.Number>
public boolean isCompatible(PipePort model)
isCompatible
in class ParamModel<java.lang.Number>
model
- the model
public void setValue(java.lang.Number value)
setValue
in class ParamModel<java.lang.Number>
value
- number valuepublic abstract void setValue(java.lang.String str)
str
- the strpublic java.lang.String toString()
ParamModel
toString
in class ParamModel<java.lang.Number>
public boolean equals(ParamModel<java.lang.Number> model)
equals
in class ParamModel<java.lang.Number>
public java.lang.String probeDefaultValue()
probeDefaultValue
in class ParamModel<java.lang.Number>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |