|
|||||||||
| 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<Matrix>
edu.jhu.ece.iacl.jist.pipeline.parameter.ParamMatrix
public class ParamMatrix
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 int |
cols
The cols. |
protected Matrix |
matrix
The matrix. |
protected int |
rows
The rows. |
| 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 | |
|---|---|
ParamMatrix()
Instantiates a new param matrix. |
|
ParamMatrix(int rows,
int cols)
Instantiates a new param matrix. |
|
ParamMatrix(Matrix mat)
Instantiates a new param matrix. |
|
ParamMatrix(java.lang.String name,
int rows,
int cols)
Instantiates a new param matrix. |
|
ParamMatrix(java.lang.String name,
Matrix mat)
Instantiates a new param matrix. |
|
| Method Summary | |
|---|---|
ParamMatrix |
clone()
Clone parameter. |
boolean |
equals(ParamModel<Matrix> model)
|
int |
getCols()
Gets the cols. |
java.lang.String |
getHumanReadableDataType()
|
int |
getRows()
Gets the rows. |
Matrix |
getValue()
Get the value stored in the parameter. |
java.lang.String |
getXMLValue()
|
void |
init()
Initialized data that could not be deserialized. |
boolean |
isCompatible(PipePort model)
Check compatibility between parameters. |
java.lang.String |
probeDefaultValue()
|
void |
setCols(int cols)
Sets the cols. |
void |
setRows(int rows)
Sets the rows. |
void |
setValue(int i,
int j,
double val)
Sets the value. |
void |
setValue(Matrix matrix)
Set the parameter. |
void |
setXMLValue(java.lang.String arg)
|
java.lang.String |
toString()
Get description of parameter. |
void |
validate()
Validate parameter associated with this port. |
| Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel |
|---|
clean, compareTo, createMipavParameter, createTreeNode, dispose, getCliTag, getDescription, getFactory, getInputView, getLabel, getName, getOutputView, getShortLabel, getView, hide, importMipavParameter, importParameter, isConnectible, isHidden, isMandatory, loadResources, loadResources, read, read, replacePath, 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 Matrix matrix
protected int rows
protected int cols
| Constructor Detail |
|---|
public ParamMatrix()
public ParamMatrix(Matrix mat)
mat - the mat
public ParamMatrix(java.lang.String name,
Matrix mat)
name - the namemat - the mat
public ParamMatrix(java.lang.String name,
int rows,
int cols)
name - the namerows - the rowscols - the cols
public ParamMatrix(int rows,
int cols)
rows - the rowscols - the cols| Method Detail |
|---|
public ParamMatrix clone()
PipePort
clone in class ParamModel<Matrix>public Matrix getValue()
ParamModel
getValue in class ParamModel<Matrix>public boolean isCompatible(PipePort model)
isCompatible in class ParamModel<Matrix>model - the model
public void setValue(Matrix matrix)
setValue in class ParamModel<Matrix>matrix - the matrix
public void setValue(int i,
int j,
double val)
i - the ij - the jval - the valpublic java.lang.String toString()
ParamModel
toString in class ParamModel<Matrix>
public void validate()
throws InvalidParameterException
PipePort
validate in class ParamModel<Matrix>InvalidParameterException - the invalid parameter exceptionpublic void init()
PipePort
init in class PipePort<Matrix>public int getRows()
public void setRows(int rows)
rows - the new rowspublic int getCols()
public void setCols(int cols)
cols - the new colspublic boolean equals(ParamModel<Matrix> model)
equals in class ParamModel<Matrix>public java.lang.String getHumanReadableDataType()
getHumanReadableDataType in class ParamModel<Matrix>public java.lang.String getXMLValue()
getXMLValue in class ParamModel<Matrix>public void setXMLValue(java.lang.String arg)
setXMLValue in class ParamModel<Matrix>public java.lang.String probeDefaultValue()
probeDefaultValue in class ParamModel<Matrix>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||