public class MathCalc extends Unit implements ComputeManager
CLONE_ALL_OUTPUT, CLONE_MULTIPLE_OUTPUT, COPY_OUTPUT, ESSENTIAL, ESSENTIAL_IF_CONNECTED, IMMEDIATE_UPDATE, INTERNAL, LATE_INITIALIZE, NO_UPDATE, ON_TASK_INSTANTATION, ON_USER_ACCESS, OPTIONAL, PROCESS_UPDATE, TRANSIENT, TRANSIENT_ACCESSIBLE, USER_ACCESSIBLE
Constructor and Description |
---|
MathCalc() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
defineVariable(java.lang.String undefinedVariable)
Prompts the user to define the variable which is currently undefined.
|
java.lang.String |
getHelpFile() |
double[] |
getInputData(int i)
Gets the data from the ith input node from the unit which implements this interface.
|
java.lang.String[] |
getInputTypes()
This method should return an array of the data types accepted by nodes not specified in getNodeInputTypes (e.g.
|
java.lang.String[] |
getOutputTypes()
This method should return an array of the data types output by nodes not specified in getNodeOutputTypes() (e.g.
|
java.lang.String |
getPopUpDescription()
Convienience method for retrieving the default pop-up description for this unit.
|
void |
init()
Initialses information specific to MathCalc.
|
void |
print(java.lang.String text)
Prints the text to the debug stream for the unit.
|
void |
println(java.lang.String text)
Prints the text to the debug stream for the unit followed by a line feed.
|
void |
process()
********************************************* ** USER CODE of MathCalc goes here ***
*********************************************
MathCalc is unlike most other Units in that it does not itself directly initiate the input of the data.
|
void |
reset()
Reset's MathCalc
|
void |
setParameter(java.lang.String name,
java.lang.String value)
Loads MathCalc's parameters.
|
debug, debug, defineParameter, dispose, extractClipInState, getClipIn, getClipIn, getControlInterface, getDefaultInputNodes, getDefaultNodeRequirement, getDefaultOutputNodes, getDisplayName, getDisplayPackage, getGUIBuilderV2Info, getHelpFileLocation, getInputAtNode, getInputNodeCount, getMaximumInputNodes, getMaximumOutputNodes, getMinimumInputNodes, getMinimumOutputNodes, getNodeInputTypes, getNodeOutputTypes, getOutputNodeCount, getOutputPolicy, getPackageName, getParameter, getParameterPanelClass, getParameterPanelInstantiate, getParameterType, getParameterUpdatePolicy, getRunnableInterface, getTask, getTaskGraphContext, getToolName, getToolPackage, getToolTable, getVersion, hideParameterPanel, isClipInName, isInputAtNode, isOutputSent, isParameter, log, log, notifyError, notifyError, output, outputAtNode, outputAtNode, parameterUpdate, parameterUpdated, putClipIn, removeClipIn, removeParameter, restoreClipInState, setDefaultInputNodes, setDefaultNodeRequirement, setDefaultOutputNodes, setDisplayName, setDisplayPackage, setGUIBuilderV2Info, setHelpFileLocation, setMaximumInputNodes, setMaximumOutputNodes, setMinimumInputNodes, setMinimumOutputNodes, setOutputPolicy, setParameter, setParameterPanelClass, setParameterPanelInstantiate, setParameterUpdatePolicy, setPopUpDescription, setRunnableInterface, setToolName, setToolPackage, setVersion, showParameterPanel, stopping
public java.lang.String getPopUpDescription()
Unit
getPopUpDescription
in class Unit
public java.lang.String defineVariable(java.lang.String undefinedVariable)
ComputeManager
defineVariable
in interface ComputeManager
public void process()
public double[] getInputData(int i)
getInputData
in interface ComputeManager
public void println(java.lang.String text)
println
in interface ComputeManager
public void print(java.lang.String text)
print
in interface ComputeManager
public java.lang.String[] getInputTypes()
Unit
getInputTypes
in class Unit
public java.lang.String[] getOutputTypes()
Unit
getOutputTypes
in class Unit
public void setParameter(java.lang.String name, java.lang.String value)
public java.lang.String getHelpFile()