|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.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.ParamFileCollection
edu.jhu.ece.iacl.jist.pipeline.parameter.ParamVolumeCollection
public class ParamVolumeCollection
Volume collection stores a collection of files. The restrictions on the files are set to be the same as the collection.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort |
|---|
PipePort.PortListener, PipePort.type |
| Field Summary | |
|---|---|
protected int |
cols
The cols. |
protected int |
components
The components. |
protected int |
rows
The rows. |
protected int |
slices
The slices. |
protected VoxelType |
type
The type. |
| Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamFileCollection |
|---|
extensionFilter, fileParams, mandatory, readerWriter |
| Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel |
|---|
cliTag, description, factory, hidden, label, loadAndSaveOnValidate, shortLabel |
| Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort |
|---|
connectible, gport, incomingConnectors, listeners, maxIncoming, maxOutgoing, outgoingConnectors, owner, portType, useWire |
| Constructor Summary | |
|---|---|
ParamVolumeCollection()
Default constructor. |
|
ParamVolumeCollection(java.lang.String name)
Constructor. |
|
ParamVolumeCollection(java.lang.String name,
VoxelType type)
Construct volume collection with specified restrictions. |
|
ParamVolumeCollection(java.lang.String name,
VoxelType type,
int rows,
int cols,
int slices,
int components)
Construct volume collection parameter with a restriction on the dimensions and data type. |
|
ParamVolumeCollection(VoxelType type)
Constructor. |
|
ParamVolumeCollection(VoxelType type,
int rows,
int cols,
int slices,
int components)
Construct volume collection parameter with a restriction on the dimensions and data type. |
|
| Method Summary | |
|---|---|
ParamVolume |
add(java.lang.Object value)
Add a new value to the collection. |
void |
clear()
Remove all files from collection. |
ParamVolumeCollection |
clone()
Clone object. |
int |
compareTo(ParamModel model)
Compare restriction of one volume collection to another. |
ParamVolume |
create(java.lang.Object value)
Create a new ParamVolume with the same restrictions as the collection and the specified value. |
int |
getCols()
Get column restriction. |
int |
getComponents()
Get component restriction. |
java.util.List<java.io.File> |
getFileList()
Get list of volume file locations. |
java.util.List<ImageData> |
getImageDataList()
Get list of volumes. |
java.util.List<java.lang.String> |
getImageNames()
Get list of model image names. |
ParamVolume |
getParamVolume(int i)
|
java.util.List<ParamVolume> |
getParamVolumeList()
|
int |
getRows()
Get row restriction. |
int |
getSlices()
Get slice restriction. |
VoxelType |
getType()
Get voxel type restriction. |
java.util.List<java.io.File> |
getValue()
Get list of volume files. |
java.io.File |
getValue(int i)
Get file. |
void |
init()
Initialize parameter. |
boolean |
isCompatible(PipePort model)
Returns true if port is compatible with this parameter's extension filter. |
int |
size()
Get size of volume collection. |
void |
validate()
Validate that the volume meets all restrictions. |
void |
writeAndFreeNow(ProcessingAlgorithm src)
Attempt to export the current parameter now, and, if possible, free associated memory. |
| Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamFileCollection |
|---|
add, clean, getExtensionFilter, getHumanReadableDataType, getParameters, getReaderWriter, getXMLValue, isMandatory, probeDefaultValue, replacePath, set, set, setCollection, setExtensionFilter, setMandatory, setReaderWriter, setValue, setXMLValue, toString |
| Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel |
|---|
createMipavParameter, createTreeNode, dispose, equals, getCliTag, getDescription, getFactory, getInputView, getLabel, getName, getOutputView, getShortLabel, getView, hide, importMipavParameter, importParameter, isConnectible, isHidden, loadResources, loadResources, read, read, saveResources, setCliTag, setDescription, setFactory, setHidden, setInputView, setLabel, setLoadAndSaveOnValidate, setName, setOutputView, setShortLabel, toXML, write, write |
| 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 VoxelType type
protected int rows
protected int cols
protected int slices
protected int components
| Constructor Detail |
|---|
public ParamVolumeCollection()
public ParamVolumeCollection(java.lang.String name)
name - parameter name
public ParamVolumeCollection(java.lang.String name,
VoxelType type)
name - string nametype - voxel type restriction
public ParamVolumeCollection(java.lang.String name,
VoxelType type,
int rows,
int cols,
int slices,
int components)
name - volume nametype - data type restrictionrows - rows restrictioncols - columns restrictionslices - slices restrictioncomponents - components restrictionpublic ParamVolumeCollection(VoxelType type)
type - voxel type restriction
public ParamVolumeCollection(VoxelType type,
int rows,
int cols,
int slices,
int components)
type - data type restrictionrows - rows restrictioncols - columns restrictionslices - slices restrictioncomponents - components restriction| Method Detail |
|---|
public ParamVolume add(java.lang.Object value)
add in class ParamFileCollectionvalue - the value
public void clear()
clear in interface ObjectCollection<java.io.File>clear in class ParamFileCollectionpublic ParamVolumeCollection clone()
clone in class ParamFileCollectionpublic int compareTo(ParamModel model)
compareTo in interface java.lang.Comparable<ParamModel>compareTo in class ParamFileCollectionmodel - the model
public ParamVolume create(java.lang.Object value)
create in class ParamFileCollectionvalue - the value
public int getCols()
public int getComponents()
public java.util.List<java.io.File> getFileList()
public java.util.List<java.lang.String> getImageNames()
public int getRows()
public int getSlices()
public VoxelType getType()
public java.util.List<java.io.File> getValue()
getValue in class ParamFileCollectionpublic java.io.File getValue(int i)
getValue in interface ObjectCollection<java.io.File>getValue in class ParamFileCollectioni - the i
public ParamVolume getParamVolume(int i)
public java.util.List<ImageData> getImageDataList()
public void init()
init in class ParamFileCollectionpublic boolean isCompatible(PipePort model)
ParamFileCollection
isCompatible in class ParamFileCollectionmodel - the model
public int size()
size in interface ObjectCollection<java.io.File>size in class ParamFileCollection
public void validate()
throws InvalidParameterException
validate in class ParamFileCollectionInvalidParameterException - parameter does not meet value restrictionspublic void writeAndFreeNow(ProcessingAlgorithm src)
ParamModel
writeAndFreeNow in class ParamModel<java.util.List>src - - Parent ProcessingAlgorithm needed to determine output locationpublic java.util.List<ParamVolume> getParamVolumeList()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||