public interface IResult
IResult is produced by the IOperator by
processing of an IWorkPackage. Since the output of an
IOperator can be heterogeneous (e.g. image AND plot AND table),
the results are stored in a List. Each index position on the list
corresponds to a unique data type (see IQM’s DataModel specification). For
instance, if ten images are the output of an operator, the list contains an
ArrayList of ten IqmDataBoxes at index 0.
The specified order of result elements in the list is:
IResult declares methods for convenient access
to and management of the single result elements.| Modifier and Type | Method and Description |
|---|---|
void |
addItem(IDataModel item)
Adds a
IDataModel item to the Result. |
void |
addItem(IqmDataBox item)
Adds an item to the
Result. |
boolean |
hasCustomResults()
Returns whether or not the result contains custom results.
|
boolean |
hasImages()
Returns whether or not the result contains images.
|
boolean |
hasPlots()
Returns whether or not the result contains plots.
|
boolean |
hasTables()
Returns whether or not the result contains tables.
|
boolean |
isMultiResult()
This function checks if the result holds more than one item.
|
List<ArrayList<IqmDataBox>> |
listAllElements()
Gets the registry of the results.
|
ArrayList<IqmDataBox> |
listCustomResults()
Gets all custom results as
IqmDataBoxes in this result object. |
ArrayList<IqmDataBox> |
listImageResults()
Gets all image results as
IqmDataBoxes in this result object. |
ArrayList<IqmDataBox> |
listPlotResults()
Gets all plot results as
IqmDataBoxes in this result object. |
ArrayList<IqmDataBox> |
listTableResults()
Gets all table results as
IqmDataBoxes in this result object. |
List<ArrayList<IqmDataBox>> listAllElements()
ArrayList<IqmDataBox> listImageResults()
IqmDataBoxes in this result object.null if no images are setArrayList<IqmDataBox> listPlotResults()
IqmDataBoxes in this result object.null if no plots are setArrayList<IqmDataBox> listTableResults()
IqmDataBoxes in this result object.null if no tables are setArrayList<IqmDataBox> listCustomResults()
IqmDataBoxes in this result object.null if no custom results are
setboolean hasImages()
true, if images are present, false
otherwiseboolean hasPlots()
true, if plots are present, false
otherwiseboolean hasTables()
true, if tables are present, false
otherwiseboolean hasCustomResults()
true, if custom results are present,
false otherwisevoid addItem(IqmDataBox item) throws IllegalArgumentException
Result.
The correct ArrayList of the item is determined by the data type
of the IqmDataBox.
item - IllegalArgumentException - if the item is nullvoid addItem(IDataModel item) throws IllegalArgumentException
IDataModel item to the Result.
The correct ArrayList of the item is determined by the data type
of the IqmDataBox.
item - IllegalArgumentException - if the item is nullboolean isMultiResult()
true, if the result contains more than one item,
false otherwiseCopyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.