|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.embl.ebi.escience.scufl.Port
org.embl.ebi.escience.scufl.InputPort
public class InputPort
A port that consumes data on behalf of a processor
| Field Summary | |
|---|---|
static java.awt.datatransfer.DataFlavor |
FLAVOR
|
static int |
MERGE
Combine mode for multiple input links where each distinct input from all upstream links is inserted into a list, ordering is currently not defined |
static int |
NDSELECT
Non deterministic single select mode for multiple input links where the first link to populate the port with data 'wins' and removes all other links to prevent blocking. |
| Constructor Summary | |
|---|---|
InputPort(Processor processor,
java.lang.String name)
|
|
| Method Summary | |
|---|---|
java.lang.String[] |
getControlledVocabulary()
Get the list of allowed default values |
java.lang.String |
getDefaultValue()
Get the default value for this port, or null if there is no default |
int |
getMergeMode()
Return the current merge mode for this input port |
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor df)
Implements transferable interface |
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()
Implements transferable interface |
java.lang.Object |
getWrappedDefaultValue()
Get the default value wrapped up in however many layers of collections are required. |
boolean |
hasControlledVocabulary()
Does this port have a controlled vocab for default values? |
boolean |
hasDefaultValue()
Does this input port have a default value? |
boolean |
isBound()
Is this input attached to anything? |
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor df)
Implements transferable interface |
boolean |
isOptional()
Is this input optional? |
void |
setControlledVocabulary(java.lang.String[] values)
Set a controlled list of allowed values for the default |
void |
setDefaultValue(java.lang.String defaultValue)
Set the default value for this port, set to null to remove. |
void |
setMergeMode(int mode)
Set the merge mode for this input port, this value must currently be one of InputPort.NDSELECT or InputPort.MERGE |
void |
setOptional(boolean optional)
Set whether the input is optional (default value if never set is that the input is mandatory) |
| Methods inherited from class org.embl.ebi.escience.scufl.Port |
|---|
getMetadata, getName, getProcessor, getSyntacticType, isNameEditable, isSink, isSource, setName, setSyntacticType, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.awt.datatransfer.DataFlavor FLAVOR
public static int NDSELECT
public static int MERGE
| Constructor Detail |
|---|
public InputPort(Processor processor,
java.lang.String name)
throws DuplicatePortNameException,
PortCreationException
DuplicatePortNameException
PortCreationException| Method Detail |
|---|
public int getMergeMode()
public void setMergeMode(int mode)
public boolean hasDefaultValue()
public java.lang.String getDefaultValue()
public java.lang.Object getWrappedDefaultValue()
public void setDefaultValue(java.lang.String defaultValue)
public void setControlledVocabulary(java.lang.String[] values)
public java.lang.String[] getControlledVocabulary()
public boolean hasControlledVocabulary()
public boolean isOptional()
public boolean isBound()
public void setOptional(boolean optional)
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor df)
throws java.awt.datatransfer.UnsupportedFlavorException,
java.io.IOException
getTransferData in interface java.awt.datatransfer.Transferablejava.awt.datatransfer.UnsupportedFlavorException
java.io.IOExceptionpublic boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor df)
isDataFlavorSupported in interface java.awt.datatransfer.Transferablepublic java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface java.awt.datatransfer.Transferable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||