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
TaskException
public java.lang.String getVersion()
getVersion
in interface Tool
public java.lang.String getToolName()
getToolName
in interface Tool
public java.lang.String getDisplayName()
getDisplayName
in interface Tool
public java.lang.String getDisplayPackage()
getDisplayPackage
in interface Tool
public TrianaProperties getProperties()
Tool
getProperties
in interface Tool
public void setProperties(TrianaProperties properties)
setProperties
in interface Tool
public void setDisplayName(java.lang.String displayName)
public void setDisplayPackage(java.lang.String displayPackage)
public java.lang.String getDefinitionType()
getDefinitionType
in interface Tool
public void setDefinitionType(java.lang.String type)
Tool
setDefinitionType
in interface Tool
public void setToolName(java.lang.String toolName)
setToolName
in interface Tool
public java.lang.String getToolPackage()
getToolPackage
in interface Tool
public void setToolPackage(java.lang.String packageName)
setToolPackage
in interface Tool
public void setToolBox(Toolbox toolboxpath)
setToolBox
in interface Tool
public Toolbox getToolBox()
getToolBox
in interface Tool
public Proxy getProxy()
public void setProxy(Proxy proxy) throws TaskException
setProxy
in interface Tool
TaskException
public void removeProxy() throws TaskException
removeProxy
in interface Tool
TaskException
public void addRenderingHint(RenderingHint hint)
addRenderingHint
in interface Tool
public void removeRenderingHint(java.lang.String hint)
removeRenderingHint
in interface Tool
public RenderingHint[] getRenderingHints()
getRenderingHints
in interface Tool
public RenderingHint getRenderingHint(java.lang.String hint)
getRenderingHint
in interface Tool
public boolean isRenderingHint(java.lang.String hint)
isRenderingHint
in interface Tool
public java.lang.Object getParameter(java.lang.String name)
getParameter
in interface Tool
public java.lang.String getParameterType(java.lang.String name)
getParameterType
in interface Tool
public void setParameter(java.lang.String name, java.lang.Object value)
setParameter
in interface Tool
public void setParameterType(java.lang.String name, java.lang.String type)
setParameterType
in interface Tool
public void removeParameter(java.lang.String name)
removeParameter
in interface Tool
public java.lang.String[] getParameterNames()
getParameterNames
in interface Tool
public boolean isParameterName(java.lang.String name)
isParameterName
in interface Tool
public java.lang.String getPopUpDescription()
getPopUpDescription
in interface Tool
public void setPopUpDescription(java.lang.String desc)
setPopUpDescription
in interface Tool
public java.lang.String getHelpFile()
getHelpFile
in interface Tool
public void setHelpFile(java.lang.String help)
setHelpFile
in interface Tool
public java.lang.String[] getDataInputTypes(int node)
getDataInputTypes
in interface Tool
public java.lang.String[] getDataInputTypes()
getDataInputTypes
in interface Tool
public void setDataInputTypes(int node, java.lang.String[] types)
public void setDataInputTypes(java.lang.String[] types)
setDataInputTypes
in interface Tool
public java.lang.String[] getDataOutputTypes(int node)
getDataOutputTypes
in interface Tool
public java.lang.String[] getDataOutputTypes()
getDataOutputTypes
in interface Tool
public void setDataOutputTypes(int node, java.lang.String[] types)
public void setDataOutputTypes(java.lang.String[] types)
setDataOutputTypes
in interface Tool
public int getDataInputNodeCount()
getDataInputNodeCount
in interface Tool
public void setDataInputNodeCount(int nodeCount) throws NodeException
NodeException
public int getDataOutputNodeCount()
getDataOutputNodeCount
in interface Tool
public void setDataOutputNodeCount(int nodeCount) throws NodeException
NodeException
public int getParameterInputNodeCount()
getParameterInputNodeCount
in interface Tool
public java.lang.String getParameterInputName(int index)
getParameterInputName
in interface Tool
public boolean isParameterTriggerNode(int index)
isParameterTriggerNode
in interface Tool
public void setParameterInputs(java.lang.String[] names, boolean[] trigger) throws NodeException
setParameterInputs
in interface Tool
NodeException
public int getParameterOutputNodeCount()
getParameterOutputNodeCount
in interface Tool
public java.lang.String getParameterOutputName(int index)
getParameterOutputName
in interface Tool
public void setParameterOutputs(java.lang.String[] names) throws NodeException
setParameterOutputs
in interface Tool
NodeException
public int getInputNodeCount()
getInputNodeCount
in interface Tool
public int getOutputNodeCount()
getOutputNodeCount
in interface Tool
public int getMinDataInputNodes()
getMinDataInputNodes
in interface Tool
public void setMinDataInputNodes(int nodes)
public int getMaxDataInputNodes()
getMaxDataInputNodes
in interface Tool
public void setMaxDataInputNodes(int nodes)
public int getDefaultDataInputNodes()
getDefaultDataInputNodes
in interface Tool
public void setDefaultDataInputNodes(int nodes)
public int getMinDataOutputNodes()
getMinDataOutputNodes
in interface Tool
public void setMinDataOutputNodes(int nodes)
public int getMaxDataOutputNodes()
getMaxDataOutputNodes
in interface Tool
public void setMaxDataOutputNodes(int nodes)
public int getDefaultDataOutputNodes()
getDefaultDataOutputNodes
in interface Tool
public void setDefaultDataOutputNodes(int nodes)
public java.net.URL getDefinitionPath()
getDefinitionPath
in interface Tool
public void setDefinitionPath(java.net.URL filepath)
setDefinitionPath
in interface Tool
public java.lang.String getQualifiedToolName()
getQualifiedToolName
in interface Tool
public java.lang.String getUnitName()
public java.lang.String getUnitPackage()
public java.lang.String toString()
toString
in class java.lang.Object
public void addExtension(java.lang.String name, java.lang.String extension)
addExtension
in interface Tool
public void removeExtension(java.lang.String name)
removeExtension
in interface Tool
public java.lang.String getExtension(java.lang.String name)
getExtension
in interface Tool
public java.lang.String[] getExtensionNames()
getExtensionNames
in interface Tool
public boolean isExtensionName(java.lang.String name)
isExtensionName
in interface Tool
public void setVersion(java.lang.String version)
Tool
setVersion
in interface Tool
public void setSubTitle(java.lang.String subtext)
setSubTitle
in interface Tool
public java.lang.String getSubTitle()
getSubTitle
in interface Tool