|
|||||||||
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.util.List> edu.jhu.ece.iacl.jist.pipeline.parameter.ParamNumberCollection
public class ParamNumberCollection
Number collection stores a collection of numbers. The restrictions on the numbers are set to be the same as the collection. Note: The type of number in the collection is defined by the type of the maximum range. By default this is a double. As of 12/23/2008, the min/max are not updated until the module library is completely rebuilt (new library directory).
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. |
protected java.lang.Number |
min
The min. |
protected java.util.Vector<ParamNumber> |
numParams
The num params. |
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 | |
---|---|
ParamNumberCollection()
Construct double parameter with no restrictions on value. |
|
ParamNumberCollection(java.lang.Number min,
java.lang.Number max)
Construct double parameter with restrictions on min and max value. |
|
ParamNumberCollection(java.lang.String name)
Construct double parameter with no restrictions on value. |
|
ParamNumberCollection(java.lang.String name,
java.lang.Number min,
java.lang.Number max)
Construct double parameter with restrictions on min and max value. |
Method Summary | |
---|---|
void |
add(java.lang.Number val)
Add file to collection. |
ParamNumber |
add(java.lang.Object value)
Add a new value to the collection. |
void |
clear()
Remove all numbers from collection. |
ParamNumberCollection |
clone()
Clone object. |
int |
compareTo(ParamModel model)
Compare restriction of one file collection to another. |
protected ParamNumber |
create(java.lang.Object value)
Create a new ParamNumber with the same restrictions as the collection and the specified value. |
java.lang.String |
getHumanReadableDataType()
|
java.lang.Number |
getMax()
Gets the max. |
java.lang.Number |
getMin()
Gets the min. |
java.util.List<ParamNumber> |
getParameterList()
Get list of parameter numbers. |
java.util.List<java.lang.Number> |
getValue()
Get the value stored in the parameter. |
java.lang.Number |
getValue(int i)
Get value at specified index. |
java.lang.String |
getXMLValue()
|
void |
init()
Initialize parameter. |
boolean |
isCompatible(PipePort model)
Returns true if port is compatible with this parameter's extension filter. |
boolean |
isMandatory()
Number field is mandatory. |
java.lang.String |
probeDefaultValue()
|
void |
set(int i,
java.lang.Number val)
Set item value in list |
ParamNumber |
set(int i,
java.lang.Object value)
Set value |
void |
setCollection(int index,
ObjectCollection src)
Set item value in list to the first element of the colleciton. |
void |
setMandatory(boolean mandatory)
Set the mandatory field. |
void |
setMax(java.lang.Number max)
Sets the max. |
void |
setMin(java.lang.Number min)
Sets the min. |
void |
setValue(java.util.List value)
Set the file collection. |
void |
setXMLValue(java.lang.String arg)
|
int |
size()
Returns size of collection. |
java.lang.String |
toString()
Get description of numbers. |
void |
validate()
Validate that the numbers meet all restrictions. |
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel |
---|
clean, createMipavParameter, createTreeNode, dispose, equals, getCliTag, getDescription, getFactory, getInputView, getLabel, getName, getOutputView, getShortLabel, getView, hide, importMipavParameter, importParameter, isConnectible, isHidden, loadResources, loadResources, read, read, replacePath, saveResources, setCliTag, setDescription, setFactory, setHidden, setInputView, setLabel, setLoadAndSaveOnValidate, setName, setOutputView, setShortLabel, toXML, 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, 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 |
---|
protected java.util.Vector<ParamNumber> numParams
protected java.lang.Number min
protected java.lang.Number max
Constructor Detail |
---|
public ParamNumberCollection()
public ParamNumberCollection(java.lang.Number min, java.lang.Number max)
min
- minimum value restrictionmax
- maximum value restrictionpublic ParamNumberCollection(java.lang.String name)
name
- parameter namepublic ParamNumberCollection(java.lang.String name, java.lang.Number min, java.lang.Number max)
name
- parameter namemin
- minimum value restrictionmax
- maximum value restrictionMethod Detail |
---|
public void add(java.lang.Number val)
add
in interface ObjectCollection<java.lang.Number>
val
- the valpublic void set(int i, java.lang.Number val)
ObjectCollection
set
in interface ObjectCollection<java.lang.Number>
i
- the indexval
- the valpublic ParamNumber set(int i, java.lang.Object value)
i
- indexvalue
- value
public void setCollection(int index, ObjectCollection src)
ObjectCollection
setCollection
in interface ObjectCollection<java.lang.Number>
public ParamNumber add(java.lang.Object value)
value
- the value
public void clear()
clear
in interface ObjectCollection<java.lang.Number>
public ParamNumberCollection clone()
clone
in class ParamModel<java.util.List>
public int compareTo(ParamModel model)
compareTo
in interface java.lang.Comparable<ParamModel>
compareTo
in class ParamModel<java.util.List>
model
- the model
protected ParamNumber create(java.lang.Object value)
value
- the value
public java.util.List<ParamNumber> getParameterList()
public java.util.List<java.lang.Number> getValue()
ParamModel
getValue
in class ParamModel<java.util.List>
public java.lang.Number getValue(int i)
ObjectCollection
getValue
in interface ObjectCollection<java.lang.Number>
i
- index
public void init()
init
in class PipePort<java.util.List>
public boolean isCompatible(PipePort model)
isCompatible
in class ParamModel<java.util.List>
model
- the model
public boolean isMandatory()
isMandatory
in class ParamModel<java.util.List>
public void setMandatory(boolean mandatory)
setMandatory
in class ParamModel<java.util.List>
mandatory
- the mandatorypublic void setValue(java.util.List value)
setValue
in class ParamModel<java.util.List>
value
- parameter valuepublic int size()
ObjectCollection
size
in interface ObjectCollection<java.lang.Number>
public java.lang.String toString()
toString
in class ParamModel<java.util.List>
public void validate() throws InvalidParameterException
validate
in class ParamModel<java.util.List>
InvalidParameterException
- parameter does not meet value restrictionspublic java.lang.Number getMin()
public void setMin(java.lang.Number min)
min
- the new minpublic java.lang.Number getMax()
public void setMax(java.lang.Number max)
max
- the new maxpublic java.lang.String getHumanReadableDataType()
getHumanReadableDataType
in class ParamModel<java.util.List>
public java.lang.String getXMLValue()
getXMLValue
in class ParamModel<java.util.List>
public void setXMLValue(java.lang.String arg)
setXMLValue
in class ParamModel<java.util.List>
public java.lang.String probeDefaultValue()
probeDefaultValue
in class ParamModel<java.util.List>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |