public interface MEDCalculatorInterface extends FwkCommandInterface, FwkDialogPaneValueInterface
CONTROLLER_PROPERTY, MENU_REASON_CANCELED, MENU_REASON_DESELECTED, MENU_REASON_SELECTED
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
calculate()
The highlevelCalculate the results.
|
double[] |
calculate(double[] independent,
double[] data)
Calculate the results of a single channel.
|
FwkArrayInterface |
calculate(FwkColumnAccessInterface independent,
FwkArrayInterface channels,
FwkArrayInterface markers)
Calculate the results.
|
boolean |
canChangeChannel()
Returns a boolean that signals whether or not the calculator is able to
change a channel.
|
boolean |
canCopyChannel()
Returns a boolean that signals whether or not the calculator is able to
create a channel.
|
boolean |
canCreateImplicitChannel()
Returns a boolean that signals whether or not the calculator is able to
create an implicit channel.
|
boolean |
checkCalulatorPanel()
Check the calculator specific dialog panel values.
|
FwkPanelInterface |
getCalculatorPanel()
Get the calculator dialog.
|
java.lang.String |
getCalculatorPanelPosition()
Get the calculator panel position.
|
java.lang.String |
getChannelColumnName(FwkColumnAccessInterface col,
double[] limit)
Get the column name of a newly created channel.
|
boolean |
getChannelCopy()
Get the channel COPY flag.
|
boolean |
getChannelCut()
Get the channel CUT flag.
|
java.lang.String |
getChannelFilter()
Get the channel selection filter.
|
java.lang.String |
getChannelInfoBusName()
Get the name of the infobus from where the channel should be selected.
|
java.lang.String |
getChannelName(FwkColumnAccessInterface col,
double[] limit)
Get the name of a newly created channel.
|
java.lang.String[] |
getChannelNames()
Returns an array containing all selected channel names.
|
FwkDialogPaneInterface |
getDialogPanel()
Get the dialog panel to select channels and markers.
|
java.awt.Container |
getDialogParent(java.util.EventObject ev)
Returns the dialog parent, if available.
|
boolean |
getImplicitChannelCalculation()
Get the implicit channel calculation flag.
|
java.lang.String |
getIndependentChannelName()
Get the name of the independent column.
|
java.lang.String |
getIndependentFilter()
Get the independent channel selection filter.
|
java.lang.String |
getMarkerFilter()
Get the marker selection filter.
|
java.lang.String |
getMarkerInfoBusName()
Get the name of the infobus from where the marker should be selected.
|
java.lang.String[] |
getMarkerNames()
Returns an array containing all selected marker names.
|
MEDInterface |
getMED()
Returns the MED object belongs to that command if available.
|
void |
init()
Init the calculator.
|
void |
release()
Release the calculator.
|
void |
setCalculatorPanelPosition(java.lang.String position)
Set the calculator panel position.
|
void |
setChannelCopy(boolean flag)
Set the channel COPY flag.
|
void |
setChannelCut(boolean flag)
Set the channel CUT flag.
|
void |
setChannelFilter(java.lang.String filter)
Set the channel filter for dialog.
|
void |
setChannelNames(java.lang.String[] channels)
Sets an array containing all selected channel names.
|
void |
setImplicitChannelCalculation(boolean flag)
Set the implicit channel calculation flag.
|
void |
setIndependentChannelName(java.lang.String name)
Set the name of the independent column.
|
void |
setIndependentFilter(java.lang.String filter)
Set the indenpendent channel filter for dialog.
|
void |
setMarkerFilter(java.lang.String filter)
Set the marker filter for dialog.
|
void |
setMarkerNames(java.lang.String[] markers)
Sets an array containing all selected marker names.
|
addActionListener, addMenuListener, execute, getActionListenerArray, getButtonClass, getCommandName, getHelpID, getIcon, getIconKey, getMenuEventEnabled, getMenuItemClass, getMenuListenerArray, getMnemonic, getProperties, getProperty, getRadioGroupState, getSensitivity, getSeparator, getText, getTextKey, getToggle, getToggleState, getToolBarEnabled, getToolTipKey, getToolTipText, getVisibility, hasActionListeners, hasMenuListeners, isParent, menuSelect, register, registeredObjects, registrySize, removeActionListener, removeMenuListener, setAsParent, setButtonClass, setCommandName, setHelpID, setIcon, setIconKey, setMenuEventEnabled, setMenuItemClass, setMnemonic, setProperty, setRadioGroupState, setSensitivity, setSeparator, setText, setTextKey, setToggle, setToggleState, setToolBarEnabled, setToolTipKey, setToolTipText, setVisibility, unregister
addCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getCommands, getGroup, groupExists, removeCommand, removeFromGroup, setCommands
getPresentationString, getPresentationString
getVersion
getController, setController
getIdent, getProperties, getProperty, setIdent, setProperties, setProperty
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEvents
double[] calculate(double[] independent, double[] data) throws FwkException
independent
- An array containing The independent channel.data
- The array containing the channel data of interest.FwkException
FwkArrayInterface calculate(FwkColumnAccessInterface independent, FwkArrayInterface channels, FwkArrayInterface markers) throws FwkException
independent
- The independent channel.channels
- The array containing the channels.
This array may be null or empty.markers
- The array containing the markers.
This array may be null or empty.FwkException
java.lang.String[] calculate() throws FwkException
This method handles the infobus communication that is necessary to get the input data and to publish the result data. This method uses the lowe level calculation method for the core calculation.
FwkException
calculate(FwkArrayInterface, FwkArrayInterface)
FwkPanelInterface getCalculatorPanel()
This method should return a dialog to configurate the calculator specific properties.
boolean checkCalulatorPanel() throws FwkException
FwkException
- if the check failed. The calculator is responsable.
to signal the problem to the user.void setCalculatorPanelPosition(java.lang.String position)
position
- The position of the panel.java.lang.String getCalculatorPanelPosition()
position
- The position of the panel.setCalculatorPanelPosition(String)
FwkDialogPaneInterface getDialogPanel()
java.awt.Container getDialogParent(java.util.EventObject ev)
java.lang.String[] getChannelNames()
void setChannelNames(java.lang.String[] channels)
channels
- all selected channel names.void setIndependentChannelName(java.lang.String name)
name
- the name of the independent column.java.lang.String getIndependentChannelName()
java.lang.String getChannelInfoBusName()
java.lang.String[] getMarkerNames()
void setMarkerNames(java.lang.String[] markers)
markers
- all selected marker names.java.lang.String getMarkerInfoBusName()
void setChannelCopy(boolean flag)
flag
- if true the source channels will be copied.boolean getChannelCopy()
void setChannelCut(boolean flag)
flag
- if true the source area of interest will be cut
out of the source channel.boolean getChannelCut()
void setImplicitChannelCalculation(boolean flag)
flag
- if true the source channels will be calculated implicitly.
This means that the data will be calculated at every request.setImplictChannelCalculation()
boolean getImplicitChannelCalculation()
setImplictChannelCalculation(boolean)
java.lang.String getChannelName(FwkColumnAccessInterface col, double[] limit)
col
- the source channel.limit
- a two element array containing the upper and the lower limit.java.lang.String getChannelColumnName(FwkColumnAccessInterface col, double[] limit)
col
- the source channel.limit
- a two element array containing the upper and the lower limit.java.lang.String getMarkerFilter()
void setMarkerFilter(java.lang.String filter)
filter
- the marker dialog filter.java.lang.String getChannelFilter()
void setChannelFilter(java.lang.String filter)
filter
- the channel dialog filter.java.lang.String getIndependentFilter()
void setIndependentFilter(java.lang.String filter)
filter
- the independent channel dialog filter.void init()
void release()
release
in interface FwkInterface
FwkCommandInterface.execute(EventObject)
MEDInterface getMED()
boolean canCreateImplicitChannel()
boolean canChangeChannel()
boolean canCopyChannel()