|
|||||||||
| 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.Vector<ParamModel>>
edu.jhu.ece.iacl.jist.pipeline.parameter.ParamCollection
public class ParamCollection
Parameter Collection.
| 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.String |
category
The Category |
protected java.lang.String |
pkg
The Category |
| 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 | |
|---|---|
ParamCollection()
Construct parameter collection. |
|
ParamCollection(java.lang.String name)
Construct parameter collection. |
|
| Method Summary | |
|---|---|
void |
add(java.lang.Object val)
Add object. |
void |
add(ParamModel model)
Add parameter to children. |
void |
clean()
Clean collection and its children. |
void |
clear()
Clear children. |
ParamCollection |
clone()
Clone collections. |
int |
compareTo(ParamModel model)
Compare the names of two collections to see if they are the same. |
boolean |
equals(ParamModel<java.util.Vector<ParamModel>> collection)
|
protected java.util.Vector<ParamModel> |
getAllDescedants(boolean acceptHidden)
Get all descendants. |
java.util.Vector<ParamModel> |
getAllDescendants()
Get all children, including hidden ones. |
java.util.LinkedList<ParamModel> |
getAllDescendantsByClass(java.lang.Class cls)
Get all descendants by class. |
protected void |
getAllDescendantsByClass(java.lang.Class cls,
java.util.List<ParamModel> list)
Get all descendants and append them to the list. |
java.util.Vector<ParamModel> |
getAllVisibleDescendants()
Get all visible descendants. |
java.lang.String |
getCategory()
|
CompatibilityChecker |
getChecker()
Get compatibility checker. |
java.util.Vector<ParamModel> |
getChildren()
Get child parameters. |
java.util.Hashtable<java.lang.String,ParamModel> |
getChildrenHash()
Get hash that maps parameter names to parameters. |
java.util.Hashtable<java.lang.String,ParamModel> |
getDescendantChildrenHash()
Get hash that maps parameter names to parameters. |
ParamModel |
getFirstChildByClass(java.lang.Class cls)
Get first child that is of the specified class type. |
ParamModel |
getFirstChildByLabel(java.lang.String name)
Get first child that has the specified label. |
ParamModel |
getFirstChildByName(java.lang.String name)
Get first child that has the specified name. |
ParamHeader |
getHeader()
|
java.lang.String |
getHumanReadableDataType()
|
java.util.ArrayList<java.lang.String> |
getLabels()
Get all children labels. |
int |
getNumberOfAddedConnections()
|
java.lang.String |
getPackage()
|
java.util.Vector<ParamModel> |
getValue()
Get the parameter's children. |
ParamModel |
getValue(int i)
Get child value. |
java.lang.String |
getXMLValue()
|
void |
init()
Initialize parameter. |
boolean |
isCompatible(PipePort model)
Check for compatibility between parameters. |
java.lang.String |
probeDefaultValue()
|
boolean |
remove(ParamModel model)
Add parameter to children. |
void |
replacePath(java.io.File originalPath,
java.io.File replacePath)
Replace path in all file type objects with this path. |
void |
set(int i,
java.lang.Object val)
Set item value in list |
void |
setCategory(java.lang.String category)
|
void |
setChecker(CompatibilityChecker checker)
Set compatibility checker. |
void |
setCollection(int index,
ObjectCollection src)
Set item value in list to the first element of the colleciton. |
void |
setPackage(java.lang.String pkg)
|
void |
setValue(java.util.Vector<ParamModel> obj)
Set the parameter value. |
void |
setXMLValue(java.lang.String arg)
|
int |
size()
Get size of collection. |
java.lang.String |
toString()
Get description of parameters. |
void |
validate()
Validate the collection my validating all the children. |
| Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel |
|---|
createMipavParameter, createTreeNode, dispose, getCliTag, getDescription, getFactory, getInputView, getLabel, getName, getOutputView, getShortLabel, getView, hide, importMipavParameter, importParameter, isConnectible, isHidden, isMandatory, loadResources, loadResources, read, read, saveResources, setCliTag, setDescription, setFactory, setHidden, setInputView, setLabel, setLoadAndSaveOnValidate, setMandatory, 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.lang.String category
protected java.lang.String pkg
| Constructor Detail |
|---|
public ParamCollection()
public ParamCollection(java.lang.String name)
name - parameter name| Method Detail |
|---|
public java.lang.String getCategory()
public void setCategory(java.lang.String category)
public java.lang.String getPackage()
public void setPackage(java.lang.String pkg)
public ParamHeader getHeader()
public void add(java.lang.Object val)
add in interface ObjectCollectionval - the valpublic void add(ParamModel model)
model - the modelpublic void clear()
clear in interface ObjectCollectionpublic ParamCollection clone()
clone in class ParamModel<java.util.Vector<ParamModel>>public int compareTo(ParamModel model)
compareTo in interface java.lang.Comparable<ParamModel>compareTo in class ParamModel<java.util.Vector<ParamModel>>model - the model
public void clean()
clean in class ParamModel<java.util.Vector<ParamModel>>
public void replacePath(java.io.File originalPath,
java.io.File replacePath)
ParamModel
replacePath in class ParamModel<java.util.Vector<ParamModel>>protected java.util.Vector<ParamModel> getAllDescedants(boolean acceptHidden)
acceptHidden - true indicates hidden children will be added to the list
public java.util.Vector<ParamModel> getAllDescendants()
protected void getAllDescendantsByClass(java.lang.Class cls,
java.util.List<ParamModel> list)
cls - classlist - listpublic java.util.LinkedList<ParamModel> getAllDescendantsByClass(java.lang.Class cls)
cls - class
public java.util.Vector<ParamModel> getAllVisibleDescendants()
public CompatibilityChecker getChecker()
public java.util.Vector<ParamModel> getChildren()
public java.util.Hashtable<java.lang.String,ParamModel> getChildrenHash()
public java.util.Hashtable<java.lang.String,ParamModel> getDescendantChildrenHash()
public ParamModel getFirstChildByClass(java.lang.Class cls)
cls - class
public ParamModel getFirstChildByLabel(java.lang.String name)
name - label
public ParamModel getFirstChildByName(java.lang.String name)
name - child name
public java.util.ArrayList<java.lang.String> getLabels()
public java.util.Vector<ParamModel> getValue()
getValue in class ParamModel<java.util.Vector<ParamModel>>public ParamModel getValue(int i)
getValue in interface ObjectCollectioni - the i
public void init()
init in class PipePort<java.util.Vector<ParamModel>>public boolean isCompatible(PipePort model)
isCompatible in class ParamModel<java.util.Vector<ParamModel>>model - foreign parameter
public boolean remove(ParamModel model)
model - the model
public void setChecker(CompatibilityChecker checker)
checker - the checkerpublic void setValue(java.util.Vector<ParamModel> obj)
ParamModel
setValue in class ParamModel<java.util.Vector<ParamModel>>obj - the valuepublic int size()
size in interface ObjectCollectionpublic int getNumberOfAddedConnections()
public java.lang.String toString()
toString in class ParamModel<java.util.Vector<ParamModel>>
public void validate()
throws InvalidParameterException
validate in class ParamModel<java.util.Vector<ParamModel>>InvalidParameterException - parameter does not meet value restrictions
public void set(int i,
java.lang.Object val)
ObjectCollection
set in interface ObjectCollectioni - the indexval - the val
public void setCollection(int index,
ObjectCollection src)
ObjectCollection
setCollection in interface ObjectCollectionpublic boolean equals(ParamModel<java.util.Vector<ParamModel>> collection)
equals in class ParamModel<java.util.Vector<ParamModel>>public java.lang.String getHumanReadableDataType()
getHumanReadableDataType in class ParamModel<java.util.Vector<ParamModel>>public java.lang.String getXMLValue()
getXMLValue in class ParamModel<java.util.Vector<ParamModel>>public void setXMLValue(java.lang.String arg)
setXMLValue in class ParamModel<java.util.Vector<ParamModel>>public java.lang.String probeDefaultValue()
probeDefaultValue in class ParamModel<java.util.Vector<ParamModel>>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||