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_menu
activeCount, 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, yield
protected 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 ProgressReportInterface
public void set_indeterminate(boolean indeterminate)
set_indeterminate
in interface ProgressReportInterface
public boolean set_progress(double value)
set_progress
in interface ProgressReportInterface
public boolean set_progress(int value)
set_progress
in interface ProgressReportInterface
public void set_operation(java.lang.String op)
set_operation
in interface ProgressReportInterface
public void set_min_max(int min, int max)
set_min_max
in interface ProgressReportInterface
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public 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
SPECCHIOClientException
public java.util.ArrayList<SpaceProcessingChainComponent> create_output_spaces_and_add_to_processing_plane(int x, int y) throws SPECCHIOClientException
SPECCHIOClientException
public void add_space_to_processing_plane_and_connect(SpaceProcessingChainComponent spcc, int x, int y)
public java.util.ArrayList<SpaceProcessingChainComponent> create_output_spaces() throws SPECCHIOClientException
SPECCHIOClientException
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public 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
SPECCHIOClientException
public abstract MeasurementUnit get_measurement_unit()
public javax.swing.JPanel get_info_panel()
get_info_panel
in class ProcessingChainComponent
public 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 ModuleCallback
SPECCHIOClientException