public class OperationsProcessor
extends java.lang.Object
Constructor and Description |
---|
OperationsProcessor() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
getArgumentIndex(java.lang.String arg,
int deft)
container for the logic for slicing at an index vs slicing at a datum.
|
static QDataSet |
process(QDataSet ds,
java.lang.String c,
ProgressMonitor mon)
process implements the poorly-named filters string / process string of Autoplot, allowing
clients to "pipe" data through a chain of operations.
|
static QDataSet |
sprocess(java.lang.String c,
QDataSet fillDs,
ProgressMonitor mon)
Deprecated.
|
public static java.lang.Object getArgumentIndex(java.lang.String arg, int deft)
arg
- String that encodes a datum position or index.deft
- default value.public static QDataSet sprocess(java.lang.String c, QDataSet fillDs, ProgressMonitor mon) throws java.lang.Exception
c
- process string like "slice0(9)|histogram()"fillDs
- The dataset loaded from the data source controller, with initial filters (like fill) applied.mon
- monitor for the processing.java.lang.Exception
process(org.das2.qds.QDataSet, java.lang.String, org.das2.util.monitor.ProgressMonitor)
public static QDataSet process(QDataSet ds, java.lang.String c, ProgressMonitor mon) throws java.lang.Exception
ds
- The dataset loaded from the data source controller, with initial filters (like fill) applied.c
- process string like "slice0(9)|histogram()"mon
- monitor for the processing.java.text.ParseException
- when the string cannot be parsedjava.lang.Exception
- when a function cannot be processed (e.g. index out of bounds)FilterEditorPanel
,
https://sourceforge.net/p/autoplot/bugs/2378/