public class JsonNodeInfo extends Object implements JIPipeNodeInfo, JIPipeValidatable, JIPipeParameterCollection
GraphWrapperAlgorithm
JIPipeParameterCollection.ParameterChangedEvent, JIPipeParameterCollection.ParameterStructureChangedEvent, JIPipeParameterCollection.ParameterUIChangedEvent
Constructor and Description |
---|
JsonNodeInfo()
Creates a new info
|
JsonNodeInfo(NodeGroup group)
Creates a new
JsonNodeInfo from a NodeGroup |
Modifier and Type | Method and Description |
---|---|
JIPipeGraphNode |
duplicate(JIPipeGraphNode algorithm)
Copies an existing algorithm instance
|
Map<String,JIPipeParameterAccess> |
getAvailableParameters()
Gets the available parameters in the graph
|
JIPipeNodeTypeCategory |
getCategory()
Returns the algorithm category
|
DynamicCategoryEnumParameter |
getCategoryParameter() |
IconRef |
getCustomIcon() |
Set<JIPipeDependency> |
getDependencies()
Returns all dependencies
|
HTMLText |
getDescription()
Returns the algorithm description
|
EventBus |
getEventBus()
Gets the event bus that posts events about the parameters
|
GraphNodeParameterReferenceGroupCollection |
getExportedParameters() |
Map<JIPipeDataSlot,String> |
getExportedSlotNames() |
JIPipeGraph |
getGraph() |
GraphWrapperAlgorithmInput |
getGroupInput()
Gets the graphs's input node
|
GraphWrapperAlgorithmOutput |
getGroupOutput()
Gets the graphs's output node
|
String |
getId()
Generates an Id for this info
|
List<JIPipeInputSlot> |
getInputSlots()
Returns general input data.
|
Class<? extends JIPipeGraphNode> |
getInstanceClass()
The algorithm class that is generated
|
String |
getMenuPath()
Gets the menu path of this algorithm
|
StringList |
getMenuPathList() |
String |
getName()
Returns the algorithm name
|
List<JIPipeOutputSlot> |
getOutputSlots()
Returns general output data.
|
String |
getProjectType() |
boolean |
isHidden()
Returns true if this algorithm should not appear in the list of available algorithms.
|
JIPipeGraphNode |
newInstance()
Creates a new node type instance
|
void |
onGraphChanged(JIPipeGraph.GraphChangedEvent event)
Triggered when the wrapped graph changed
|
void |
onGraphParameterStructureChanged(JIPipeParameterCollection.ParameterStructureChangedEvent event)
Triggered when the parameter structure of an algorithm is changed
Updates the list of available parameters
|
void |
reportValidity(JIPipeIssueReport report)
Generates a validity report
|
void |
setCategoryParameter(DynamicCategoryEnumParameter parameter) |
void |
setCustomIcon(IconRef customIcon) |
void |
setDescription(HTMLText description) |
void |
setExportedParameters(GraphNodeParameterReferenceGroupCollection exportedParameters) |
void |
setGraph(JIPipeGraph graph) |
void |
setHidden(boolean hidden) |
void |
setId(String id) |
void |
setMenuPath(String value) |
void |
setMenuPathList(StringList value) |
void |
setName(String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAdditionalCitations, getAliases, getIcon, getIconURL, getPrimaryMenuLocation, getSortedList, groupByMenuPaths, hasInputSlot, hasOutputSlot, isRunnable
generateValidityReport
addParameterChangeListener, addParameterChangeListener, getContextActions, getParameter, getParameterAccess, isParameterUIVisible, isParameterUIVisible, setParameter, triggerParameterChange, triggerParameterStructureChange, triggerParameterUIChange
public JsonNodeInfo()
public JsonNodeInfo(NodeGroup group)
JsonNodeInfo
from a NodeGroup
group
- the node group. The graph will NOT be copied.public String getId()
JIPipeNodeInfo
getId
in interface JIPipeNodeInfo
public void setId(String id)
public Class<? extends JIPipeGraphNode> getInstanceClass()
JIPipeNodeInfo
getInstanceClass
in interface JIPipeNodeInfo
public JIPipeGraphNode newInstance()
JIPipeNodeInfo
newInstance
in interface JIPipeNodeInfo
public JIPipeGraphNode duplicate(JIPipeGraphNode algorithm)
JIPipeNodeInfo
duplicate
in interface JIPipeNodeInfo
algorithm
- Original algorithm instancepublic Map<JIPipeDataSlot,String> getExportedSlotNames()
public String getName()
JIPipeNodeInfo
getName
in interface JIPipeNodeInfo
public void setName(String name)
public HTMLText getDescription()
JIPipeNodeInfo
getDescription
in interface JIPipeNodeInfo
public void setDescription(HTMLText description)
public JIPipeNodeTypeCategory getCategory()
JIPipeNodeInfo
getCategory
in interface JIPipeNodeInfo
public DynamicCategoryEnumParameter getCategoryParameter()
public void setCategoryParameter(DynamicCategoryEnumParameter parameter)
public List<JIPipeInputSlot> getInputSlots()
JIPipeNodeInfo
getInputSlots
in interface JIPipeNodeInfo
public List<JIPipeOutputSlot> getOutputSlots()
JIPipeNodeInfo
getOutputSlots
in interface JIPipeNodeInfo
public Set<JIPipeDependency> getDependencies()
JIPipeNodeInfo
getDependencies
in interface JIPipeNodeInfo
public JIPipeGraph getGraph()
public void setGraph(JIPipeGraph graph)
public GraphNodeParameterReferenceGroupCollection getExportedParameters()
public void setExportedParameters(GraphNodeParameterReferenceGroupCollection exportedParameters)
public void onGraphChanged(JIPipeGraph.GraphChangedEvent event)
event
- generated eventpublic void onGraphParameterStructureChanged(JIPipeParameterCollection.ParameterStructureChangedEvent event)
event
- generated eventpublic GraphWrapperAlgorithmInput getGroupInput()
public GraphWrapperAlgorithmOutput getGroupOutput()
public Map<String,JIPipeParameterAccess> getAvailableParameters()
public String getProjectType()
public void reportValidity(JIPipeIssueReport report)
JIPipeValidatable
reportValidity
in interface JIPipeValidatable
report
- the report to be added topublic EventBus getEventBus()
JIPipeParameterCollection
getEventBus
in interface JIPipeParameterCollection
JIPipeParameterCollection.ParameterChangedEvent
and JIPipeParameterCollection.ParameterStructureChangedEvent
public String getMenuPath()
JIPipeNodeInfo
getMenuPath
in interface JIPipeNodeInfo
public void setMenuPath(String value)
public StringList getMenuPathList()
public void setMenuPathList(StringList value)
public boolean isHidden()
JIPipeNodeInfo
isHidden
in interface JIPipeNodeInfo
public void setHidden(boolean hidden)
public IconRef getCustomIcon()
public void setCustomIcon(IconRef customIcon)
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.