|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.Alida.demo.ApplyToMatrix
@ALDAOperator(genericExecutionMode=ALL, level=APPLICATION) public class ApplyToMatrix
Demo operator to apply a summarizing operation to a 2D array in row or column wise fashion. The summarizing operator is assumed to take a 1D array as input and return a summarizing scalar, e.g. the mean or the maxium value.
Nested Class Summary | |
---|---|
static class |
ApplyToMatrix.SummarizeMode
Choose row or colum wise sum |
Nested classes/interfaces inherited from class de.unihalle.informatik.Alida.operator.ALDOperator |
---|
ALDOperator.HidingMode |
Field Summary |
---|
Fields inherited from class de.unihalle.informatik.Alida.operator.ALDOperator |
---|
completeDAG, name, operatorExecutionEventlistenerList, portHashAccess, verbose, versionProvider |
Constructor Summary | |
---|---|
ApplyToMatrix()
Default constructor. |
|
ApplyToMatrix(Double[][] _matrix)
Constructor. |
Method Summary | |
---|---|
long |
getElapsedTime()
Get value of elapsedTime. |
Double[][] |
getMatrix()
Get value of matrix. |
boolean |
getReturnElapsedTime()
Get value of returnElapsedTime. |
Double[] |
getSummaries()
Get value of summaries. |
ApplyToMatrix.SummarizeMode |
getSummarizeMode()
Get value of summarizeMode. |
ALDSummarizeArrayOp |
getSummarizeOp()
Get value of summarizeOp. |
Boolean |
getVerbose()
Get value of verbose. |
protected void |
operate()
This method does the actual work and needs to be implemented by every subclass. |
void |
setElapsedTime(long value)
Set value of elapsedTime. |
void |
setMatrix(Double[][] value)
Set value of matrix. |
void |
setReturnElapsedTime(boolean value)
Set value of returnElapsedTime. |
void |
setSummaries(Double[] value)
Set value of summaries. |
void |
setSummarizeMode(ApplyToMatrix.SummarizeMode value)
Set value of summarizeMode. |
void |
setSummarizeOp(ALDSummarizeArrayOp value)
Set value of summarizeOp. |
void |
setVerbose(Boolean value)
Set value of verbose. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApplyToMatrix() throws ALDOperatorException
ALDOperatorException
public ApplyToMatrix(Double[][] _matrix) throws ALDOperatorException
_matrix
- Input matrix.
ALDOperatorException
Method Detail |
---|
protected void operate() throws ALDOperatorException, ALDProcessingDAGException
ALDOperator
operate
in class ALDOperator
ALDOperatorException
ALDProcessingDAGException
public boolean getReturnElapsedTime()
public void setReturnElapsedTime(boolean value)
value
- New value of returnElapsedTimepublic Boolean getVerbose()
getVerbose
in class ALDOperator
public void setVerbose(Boolean value)
setVerbose
in class ALDOperator
value
- New value of verbosepublic ALDSummarizeArrayOp getSummarizeOp()
public void setSummarizeOp(ALDSummarizeArrayOp value)
value
- New value of summarizeOppublic ApplyToMatrix.SummarizeMode getSummarizeMode()
public void setSummarizeMode(ApplyToMatrix.SummarizeMode value)
value
- New value of summarizeModepublic long getElapsedTime()
public void setElapsedTime(long value)
value
- New value of elapsedTimepublic Double[][] getMatrix()
public void setMatrix(Double[][] value)
value
- New value of matrixpublic Double[] getSummaries()
public void setSummaries(Double[] value)
value
- New value of summaries
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |