ANY_DATA_TYPE, CLONE_ALL_OUTPUT, CLONE_MULTIPLE_OUTPUT, COPY_OUTPUT, DEFAULT_IN_NODES, DEFAULT_INPUT_NODES, DEFAULT_MAX_NODES, DEFAULT_MIN_NODES, DEFAULT_OUT_NODES, DEFAULT_OUTPUT_NODES, DEFAULT_POP_UP_DESCRIPTION, DEFINITION_JAVA_CLASS, DEFINITION_METADATA, DEFINITION_TRIANA_XML, DEFINITION_UNKNOWN, GUI, GUI_BUILDER, HELP_FILE_PARAM, IMMEDIATE_UPDATE, INTERNAL, LATE_INITIALIZE, MAX_INPUT_NODES, MAX_OUTPUT_NODES, MIN_INPUT_NODES, MIN_OUTPUT_NODES, NO_UPDATE, OLD_GUI_BUILDER, ON_TASK_INSTANTIATION, ON_USER_ACCESS, OUTPUT_POLICY, PANEL_INSTANCE, PARAM_PANEL_CLASS, PARAM_PANEL_HIDE, PARAM_PANEL_INSTANTIATE, PARAM_PANEL_SHOW, PARAM_UPDATE_POLICY, POP_UP_DESCRIPTION, PROCESS_UPDATE, TOOL_VERSION, TRANSIENT, TRANSIENT_ACCESSIBLE, UNKNOWN_DATA_TYPE, UNKNOWN_TYPE, USER_ACCESSIBLE| Constructor and Description |
|---|
ToolImp(Tool tool)
Creates a clone of the specified tool
|
ToolImp(TrianaProperties properties)
Default constructor
Which blows everything up.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExtension(java.lang.String name,
java.lang.String extension)
Adds an extension
|
void |
addRenderingHint(RenderingHint hint)
Adds a rendering hint
|
int |
getDataInputNodeCount() |
java.lang.String[] |
getDataInputTypes() |
java.lang.String[] |
getDataInputTypes(int node) |
int |
getDataOutputNodeCount() |
java.lang.String[] |
getDataOutputTypes() |
java.lang.String[] |
getDataOutputTypes(int node) |
int |
getDefaultDataInputNodes() |
int |
getDefaultDataOutputNodes() |
java.net.URL |
getDefinitionPath() |
java.lang.String |
getDefinitionType() |
java.lang.String |
getDisplayName() |
java.lang.String |
getDisplayPackage() |
java.lang.String |
getExtension(java.lang.String name) |
java.lang.String[] |
getExtensionNames() |
java.lang.String |
getHelpFile() |
int |
getInputNodeCount() |
int |
getMaxDataInputNodes() |
int |
getMaxDataOutputNodes() |
int |
getMinDataInputNodes() |
int |
getMinDataOutputNodes() |
int |
getOutputNodeCount() |
java.lang.Object |
getParameter(java.lang.String name) |
java.lang.String |
getParameterInputName(int index) |
int |
getParameterInputNodeCount() |
java.lang.String[] |
getParameterNames() |
java.lang.String |
getParameterOutputName(int index) |
int |
getParameterOutputNodeCount() |
java.lang.String |
getParameterType(java.lang.String name) |
java.lang.String |
getPopUpDescription() |
TrianaProperties |
getProperties()
Returns the current Triana properties
|
Proxy |
getProxy() |
java.lang.String |
getQualifiedToolName() |
RenderingHint |
getRenderingHint(java.lang.String hint) |
RenderingHint[] |
getRenderingHints() |
java.lang.String |
getSubTitle() |
Toolbox |
getToolBox() |
java.lang.String |
getToolName() |
java.lang.String |
getToolPackage() |
java.lang.String |
getUnitName() |
java.lang.String |
getUnitPackage() |
java.lang.String |
getVersion() |
boolean |
isExtensionName(java.lang.String name) |
boolean |
isParameterName(java.lang.String name) |
boolean |
isParameterTriggerNode(int index) |
boolean |
isRenderingHint(java.lang.String hint) |
void |
removeExtension(java.lang.String name)
Removes an extension
|
void |
removeParameter(java.lang.String name)
Removes the value associated with the specified name.
|
void |
removeProxy()
Removes the proxy for this tool
|
void |
removeRenderingHint(java.lang.String hint)
Removes a rendering hint
|
void |
setDataInputNodeCount(int nodeCount)
Used to set the number of input nodes.
|
void |
setDataInputTypes(int node,
java.lang.String[] types)
Used by ToolFactory to set the input types for each node
|
void |
setDataInputTypes(java.lang.String[] types)
Used by ToolFactory to set the input types.
|
void |
setDataOutputNodeCount(int nodeCount)
Used to set the number of output nodes.
|
void |
setDataOutputTypes(int node,
java.lang.String[] types)
Used by ToolFactory to set the output types for each node
|
void |
setDataOutputTypes(java.lang.String[] types)
Used to set the output types.
|
void |
setDefaultDataInputNodes(int nodes)
Sets the minimum number of input nodes for the tool.
|
void |
setDefaultDataOutputNodes(int nodes)
Sets the minimum number of input nodes for the tool.
|
void |
setDefinitionPath(java.net.URL filepath)
Used by ToolTable to set the location of the file this tool was loaded from
|
void |
setDefinitionType(java.lang.String type)
used when creating clones that are not based on the same definition file type
|
void |
setDisplayName(java.lang.String displayName) |
void |
setDisplayPackage(java.lang.String displayPackage) |
void |
setHelpFile(java.lang.String help)
Used to set the help file.
|
void |
setMaxDataInputNodes(int nodes)
Sets the minimum number of input nodes for the tool.
|
void |
setMaxDataOutputNodes(int nodes)
Sets the minimum number of input nodes for the tool.
|
void |
setMinDataInputNodes(int nodes)
Sets the minimum number of input nodes for the tool.
|
void |
setMinDataOutputNodes(int nodes)
Sets the minimum number of input nodes for the tool.
|
void |
setParameter(java.lang.String name,
java.lang.Object value)
Used to set the parameters.
|
void |
setParameterInputs(java.lang.String[] names,
boolean[] trigger)
Used to set the names/number of input parameter nodes
|
void |
setParameterOutputs(java.lang.String[] names)
Used to set the names/number of output parameter nodes
|
void |
setParameterType(java.lang.String name,
java.lang.String type)
Used to set the parameter types.
|
void |
setPopUpDescription(java.lang.String desc)
Used to set the pop up description.
|
void |
setProperties(TrianaProperties properties) |
void |
setProxy(Proxy proxy)
Adds a proxy this tool
|
void |
setSubTitle(java.lang.String subtext) |
void |
setToolBox(Toolbox toolboxpath)
Used by ToolTable to set the location of the toolbox this tool was loaded from
|
void |
setToolName(java.lang.String toolName)
Used to set the tool name of this Tool.
|
void |
setToolPackage(java.lang.String packageName)
Set the package name for this tool.
|
void |
setVersion(java.lang.String version)
================from Tool======================
|
java.lang.String |
toString() |
public ToolImp(TrianaProperties properties)
public ToolImp(Tool tool) throws TaskException
TaskExceptionpublic java.lang.String getVersion()
getVersion in interface Toolpublic java.lang.String getToolName()
getToolName in interface Toolpublic java.lang.String getDisplayName()
getDisplayName in interface Toolpublic java.lang.String getDisplayPackage()
getDisplayPackage in interface Toolpublic TrianaProperties getProperties()
ToolgetProperties in interface Toolpublic void setProperties(TrianaProperties properties)
setProperties in interface Toolpublic void setDisplayName(java.lang.String displayName)
public void setDisplayPackage(java.lang.String displayPackage)
public java.lang.String getDefinitionType()
getDefinitionType in interface Toolpublic void setDefinitionType(java.lang.String type)
ToolsetDefinitionType in interface Toolpublic void setToolName(java.lang.String toolName)
setToolName in interface Toolpublic java.lang.String getToolPackage()
getToolPackage in interface Toolpublic void setToolPackage(java.lang.String packageName)
setToolPackage in interface Toolpublic void setToolBox(Toolbox toolboxpath)
setToolBox in interface Toolpublic Toolbox getToolBox()
getToolBox in interface Toolpublic Proxy getProxy()
public void setProxy(Proxy proxy) throws TaskException
setProxy in interface ToolTaskExceptionpublic void removeProxy()
throws TaskException
removeProxy in interface ToolTaskExceptionpublic void addRenderingHint(RenderingHint hint)
addRenderingHint in interface Toolpublic void removeRenderingHint(java.lang.String hint)
removeRenderingHint in interface Toolpublic RenderingHint[] getRenderingHints()
getRenderingHints in interface Toolpublic RenderingHint getRenderingHint(java.lang.String hint)
getRenderingHint in interface Toolpublic boolean isRenderingHint(java.lang.String hint)
isRenderingHint in interface Toolpublic java.lang.Object getParameter(java.lang.String name)
getParameter in interface Toolpublic java.lang.String getParameterType(java.lang.String name)
getParameterType in interface Toolpublic void setParameter(java.lang.String name,
java.lang.Object value)
setParameter in interface Toolpublic void setParameterType(java.lang.String name,
java.lang.String type)
setParameterType in interface Toolpublic void removeParameter(java.lang.String name)
removeParameter in interface Toolpublic java.lang.String[] getParameterNames()
getParameterNames in interface Toolpublic boolean isParameterName(java.lang.String name)
isParameterName in interface Toolpublic java.lang.String getPopUpDescription()
getPopUpDescription in interface Toolpublic void setPopUpDescription(java.lang.String desc)
setPopUpDescription in interface Toolpublic java.lang.String getHelpFile()
getHelpFile in interface Toolpublic void setHelpFile(java.lang.String help)
setHelpFile in interface Toolpublic java.lang.String[] getDataInputTypes(int node)
getDataInputTypes in interface Toolpublic java.lang.String[] getDataInputTypes()
getDataInputTypes in interface Toolpublic void setDataInputTypes(int node,
java.lang.String[] types)
public void setDataInputTypes(java.lang.String[] types)
setDataInputTypes in interface Toolpublic java.lang.String[] getDataOutputTypes(int node)
getDataOutputTypes in interface Toolpublic java.lang.String[] getDataOutputTypes()
getDataOutputTypes in interface Toolpublic void setDataOutputTypes(int node,
java.lang.String[] types)
public void setDataOutputTypes(java.lang.String[] types)
setDataOutputTypes in interface Toolpublic int getDataInputNodeCount()
getDataInputNodeCount in interface Toolpublic void setDataInputNodeCount(int nodeCount)
throws NodeException
NodeExceptionpublic int getDataOutputNodeCount()
getDataOutputNodeCount in interface Toolpublic void setDataOutputNodeCount(int nodeCount)
throws NodeException
NodeExceptionpublic int getParameterInputNodeCount()
getParameterInputNodeCount in interface Toolpublic java.lang.String getParameterInputName(int index)
getParameterInputName in interface Toolpublic boolean isParameterTriggerNode(int index)
isParameterTriggerNode in interface Toolpublic void setParameterInputs(java.lang.String[] names,
boolean[] trigger)
throws NodeException
setParameterInputs in interface ToolNodeExceptionpublic int getParameterOutputNodeCount()
getParameterOutputNodeCount in interface Toolpublic java.lang.String getParameterOutputName(int index)
getParameterOutputName in interface Toolpublic void setParameterOutputs(java.lang.String[] names)
throws NodeException
setParameterOutputs in interface ToolNodeExceptionpublic int getInputNodeCount()
getInputNodeCount in interface Toolpublic int getOutputNodeCount()
getOutputNodeCount in interface Toolpublic int getMinDataInputNodes()
getMinDataInputNodes in interface Toolpublic void setMinDataInputNodes(int nodes)
public int getMaxDataInputNodes()
getMaxDataInputNodes in interface Toolpublic void setMaxDataInputNodes(int nodes)
public int getDefaultDataInputNodes()
getDefaultDataInputNodes in interface Toolpublic void setDefaultDataInputNodes(int nodes)
public int getMinDataOutputNodes()
getMinDataOutputNodes in interface Toolpublic void setMinDataOutputNodes(int nodes)
public int getMaxDataOutputNodes()
getMaxDataOutputNodes in interface Toolpublic void setMaxDataOutputNodes(int nodes)
public int getDefaultDataOutputNodes()
getDefaultDataOutputNodes in interface Toolpublic void setDefaultDataOutputNodes(int nodes)
public java.net.URL getDefinitionPath()
getDefinitionPath in interface Toolpublic void setDefinitionPath(java.net.URL filepath)
setDefinitionPath in interface Toolpublic java.lang.String getQualifiedToolName()
getQualifiedToolName in interface Toolpublic java.lang.String getUnitName()
public java.lang.String getUnitPackage()
public java.lang.String toString()
toString in class java.lang.Objectpublic void addExtension(java.lang.String name,
java.lang.String extension)
addExtension in interface Toolpublic void removeExtension(java.lang.String name)
removeExtension in interface Toolpublic java.lang.String getExtension(java.lang.String name)
getExtension in interface Toolpublic java.lang.String[] getExtensionNames()
getExtensionNames in interface Toolpublic boolean isExtensionName(java.lang.String name)
isExtensionName in interface Toolpublic void setVersion(java.lang.String version)
ToolsetVersion in interface Toolpublic void setSubTitle(java.lang.String subtext)
setSubTitle in interface Toolpublic java.lang.String getSubTitle()
getSubTitle in interface Tool