public interface JIPipeSlotConfiguration
JIPipeGraphNode
should have.
The algorithm then instantiates JIPipeDataSlot
instances to match the configuration.
This is required to allow multiple algorithms to share their slots.Modifier and Type | Interface and Description |
---|---|
static class |
JIPipeSlotConfiguration.Serializer
Serializes the configuration
|
static class |
JIPipeSlotConfiguration.SlotsChangedEvent
Triggered when a
JIPipeSlotConfiguration was changed |
Modifier and Type | Method and Description |
---|---|
JIPipeSlotConfiguration |
duplicate()
Creates a deep copy
|
void |
fromJson(com.fasterxml.jackson.databind.JsonNode jsonNode)
Loads this configuration from JSON
|
EventBus |
getEventBus() |
List<String> |
getInputSlotOrder() |
Map<String,JIPipeDataSlotInfo> |
getInputSlots() |
List<String> |
getOutputSlotOrder() |
Map<String,JIPipeDataSlotInfo> |
getOutputSlots() |
default boolean |
hasInputSlot(String name)
Return true if there is an input slot with given name
|
default boolean |
hasOutputSlot(String name)
Return true if there is an output slot with given name
|
void |
setTo(JIPipeSlotConfiguration configuration)
Makes this slot configuration equivalent to the provided one
|
void |
toJson(com.fasterxml.jackson.core.JsonGenerator generator)
Saves this configuration to JSON.
|
JIPipeSlotConfiguration duplicate()
EventBus getEventBus()
Map<String,JIPipeDataSlotInfo> getInputSlots()
Map<String,JIPipeDataSlotInfo> getOutputSlots()
void setTo(JIPipeSlotConfiguration configuration)
configuration
- the configurationvoid fromJson(com.fasterxml.jackson.databind.JsonNode jsonNode)
jsonNode
- JSON datavoid toJson(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
generator
- the Json generatorcom.fasterxml.jackson.core.JsonProcessingException
- thrown by JsonIOException
default boolean hasInputSlot(String name)
name
- the namedefault boolean hasOutputSlot(String name)
name
- the nameCopyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.