public abstract class Module extends ProcessingChainComponent implements ModuleCallback, ProgressReportInterface
| Modifier and Type | Field and Description |
|---|---|
protected static int |
CONFIG |
protected static int |
INPUT_SPACE_DEF |
protected java.util.ArrayList<SpaceProcessingChainComponent> |
input_spaces |
protected java.util.ArrayList<ch.specchio.proc_modules.OutputSpaceStruct> |
output_space_definitions |
protected java.util.ArrayList<SpaceProcessingChainComponent> |
output_spaces |
protected java.util.ArrayList<RequiredInputSpaceStruct> |
required_input_spaces |
protected SPECCHIOClient |
specchio_client |
protected boolean |
valid_configuration |
info_panel, owner, popup, ppo, processing_plane| Constructor and Description |
|---|
Module(java.awt.Frame owner,
SPECCHIOClient specchio_client) |
get_owner, get_ppo, set_ppo, set_processing_plane, show_menuactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected java.util.ArrayList<SpaceProcessingChainComponent> input_spaces
protected java.util.ArrayList<SpaceProcessingChainComponent> output_spaces
protected java.util.ArrayList<RequiredInputSpaceStruct> required_input_spaces
protected java.util.ArrayList<ch.specchio.proc_modules.OutputSpaceStruct> output_space_definitions
protected static int CONFIG
protected static int INPUT_SPACE_DEF
protected boolean valid_configuration
protected SPECCHIOClient specchio_client
public Module(java.awt.Frame owner,
SPECCHIOClient specchio_client)
public void set_component(java.lang.String c)
set_component in interface ProgressReportInterfacepublic void set_indeterminate(boolean indeterminate)
set_indeterminate in interface ProgressReportInterfacepublic boolean set_progress(double value)
set_progress in interface ProgressReportInterfacepublic boolean set_progress(int value)
set_progress in interface ProgressReportInterfacepublic void set_operation(java.lang.String op)
set_operation in interface ProgressReportInterfacepublic void set_min_max(int min,
int max)
set_min_max in interface ProgressReportInterfacepublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic abstract void configure()
public void input_space_definition()
public void define_output_spaces()
public SpaceProcessingChainComponent add_input_space(SpaceProcessingChainComponent spcc, int index)
public void remove_input_space(SpaceProcessingChainComponent space)
public void remove_output_space(SpaceProcessingChainComponent space)
public void update_output_spaces()
throws SPECCHIOClientException
SPECCHIOClientExceptionpublic java.util.ArrayList<SpaceProcessingChainComponent> create_output_spaces_and_add_to_processing_plane(int x, int y) throws SPECCHIOClientException
SPECCHIOClientExceptionpublic void add_space_to_processing_plane_and_connect(SpaceProcessingChainComponent spcc, int x, int y)
public java.util.ArrayList<SpaceProcessingChainComponent> create_output_spaces() throws SPECCHIOClientException
SPECCHIOClientExceptionpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void exchange_space(SpaceProcessingChainComponent old_space, SpaceProcessingChainComponent new_space)
public void revalidate_input_spaces()
public SpaceProcessingChainComponent get_main_input_space()
public SpaceProcessingChainComponent get_main_output_space()
public void process()
throws SPECCHIOClientException,
ModuleException
public abstract void transform()
throws SPECCHIOClientException,
ModuleException
public abstract int get_output_space_type()
public abstract int get_required_input_space_type()
public abstract double[] get_output_space_vector()
throws SPECCHIOClientException
SPECCHIOClientExceptionpublic abstract MeasurementUnit get_measurement_unit()
public javax.swing.JPanel get_info_panel()
get_info_panel in class ProcessingChainComponentpublic void add_and_connect_input_space(SpaceProcessingChainComponent s)
public void add_and_connect_input_space(SpaceProcessingChainComponent spcc, int index)
public void user_data_provided(DialogThread dt) throws SPECCHIOClientException
user_data_provided in interface ModuleCallbackSPECCHIOClientException