Package net.simplace.pipe.processors
Class FilterParameterProcessor
java.lang.Object
net.simplace.pipe.control.FWProcessor
net.simplace.pipe.processors.FilterParameterProcessor
This processor filters the parameters in Map. It is used to free memory for example at
pipeline
Required input parameters:
- Key
#0
,#1
, ...: References-key to Parameter key-object. Several of these parameters are allowed. - Key
type
: taking Values as DELETE or KEEP: KEEP keeps only in '#0' ... mentioned parameters, DELETE deletes only '#0', '#1' ... mentioned parameters.
- Version:
- 1.0
- Author:
- Andreas Enders
-
Field Summary
Modifier and TypeFieldDescriptionConstant Array of Parameters to Keepstatic final String
Constant for input type "Map".static final String
Constant for input type "List".static final String
Constant for in-channel parameter key "type".Fields inherited from class net.simplace.pipe.control.FWProcessor
iAllreadyLoopedCount, iContainer, iInObservable, iObservable, iProgressTasks
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks whether the in-channel contains all required parameters.protected boolean
process()
Deletes parameters that are not protected and mentioned in parameters.Methods inherited from class net.simplace.pipe.control.FWProcessor
checkOutParameterMap, clone, containsParameter, createProcessor, createProcessor, fireTaskEvent, getAllStringInParameters, getConfiguration, getInitialParameters, getInParameter, getInParameter, getInParameters, getNewProgressTask, getOutParameter, getOutParameterKeys, getPipeLine, getProgressTask, getStringInParameter, getStringInParameter, getSystemID, hasConfiguration, isEndOfPipe, pipe, removeOutParameter, setConfiguration, setEndOfPipeFlag, setInitialParameters, setInParameterMap, setLoopedCount, setOutParameter, setStateOfTask, setStateProgressing, toXML
-
Field Details
-
TYPE_KEY
Constant for in-channel parameter key "type".- See Also:
-
TYPE_DELETE
Constant for input type "Map".- See Also:
-
TYPE_KEEP
Constant for input type "List".- See Also:
-
PARAM_TO_KEEP
Constant Array of Parameters to Keep
-
-
Constructor Details
-
FilterParameterProcessor
public FilterParameterProcessor()Default constructor for this processor.
-
-
Method Details
-
checkInParameterMap
public boolean checkInParameterMap()Checks whether the in-channel contains all required parameters.- Overrides:
checkInParameterMap
in classFWProcessor
- Returns:
- true if not overridden by implementations
-
process
Deletes parameters that are not protected and mentioned in parameters.- Specified by:
process
in classFWProcessor
- Returns:
- ever
true
- Throws:
PipeLineException
- in case of errors- See Also:
-