All Packages Class Hierarchy This Package Previous Next Index
public abstract boolean run(DataStore input, DataStore output, ParameterStore parameters) throws JNIException, ModuleException
If a Data element is missing from the output DataStore(its
entry contains the value null
or there are fewer
elements in the DataStore than OutConnectors in the Module
Description File), the Framework assumes the module has failed
to complete its task. The Data elements that are in the
output DataStore are considered to be valid. They may be used
as input for other modules, or their contents may be saved to
disk.
If the construction of a particular Data element is performed in several steps during which the Data element may be invalid, the module should hold the Data element in a local variable, and only add it to the output DataStore after it has become valid. If the Data element is added to early, while it still is invalid, the module may never be able to finish the construction of the Data element, because it may be interrupted by an exception. Then, the output DataStore could contain an invalid Data element, which might be given as input to other modules or which contents might be saved to disk.
false
. If everything went OK, it should return
true
. If the result is false
, the
Framework will display a message to the user of the Framework
to inform him or her that the module has failed. Please note
that even when the module fails, the Framework still searches
the output DataStore for Data elements. Any Data element
found is assumed to be valid and may be used as input for
another module or its contents may be saved to disk.
All Packages Class Hierarchy This Package Previous Next Index