public abstract class ALDOpNodePort extends ALDPort
Furthermore a ALDOpNodePort may record properties of the ALDData as it is passed into or out of the operator. Specifically, the properties of the data are retrieved an recorded for input data just before the operate method is invoced, and for output data when the operate method returns. Also the explanation from the operator is copied as we may not keep a reference to it to allow garbage collection. Last the canaonical class name of the ALDData bound to the port is recorded, again for input data just before the operate method is invoced, and for output data when the operate method returns.
Modifier and Type | Field and Description |
---|---|
private String |
classname
The canaonical class name of the ALDData bound to the port.
|
private String |
descriptorName
The descriptor name of this port within opNode
|
private String |
explanation
The explanation of this port.
|
(package private) ALDOpNode |
opNode
The opNode this port belongs to
|
private int |
portIndex
The index of this port within opNode
|
private Object |
properties
The properties retrieved from the data as it passed the port into or out of
the operator.
|
Constructor and Description |
---|
ALDOpNodePort(String typeName,
ALDOpNode opNode,
int idx,
String descriptorName)
Create a port for an opNode with given index within this opNode and type.
|
Modifier and Type | Method and Description |
---|---|
String |
getClassname()
Return the canonical classname of the ALDData associated with this port
|
String |
getDescriptorName()
Return the descriptor name of the port within its opNode
|
String |
getExplanation()
Return the explanation of the port copied from the argument descriptor
|
ALDOpNode |
getOpNode()
Return the opNode of this port
|
int |
getPortIndex()
Return the index of the port within its opNode
|
Object |
getProperties()
Return the properties associated with this port which have been retrieved
from the data as it passed the port.
|
void |
print(String indent)
Print information of this port onto System.out
|
void |
setClassname(String cn)
Set the canonical classname of the ALDData associated with this port
|
void |
setExplanation(String e)
Set the explanation of the port copied from the argument descriptor
|
(package private) Object |
setProperties(Object properties)
Set the properties to be associated with this port.
|
ALDOpNode opNode
private int portIndex
private String descriptorName
private String explanation
private String classname
private Object properties
public ALDOpNodePort(String typeName, ALDOpNode opNode, int idx, String descriptorName)
typeName
- type of this port as a string, used only for printingopNode
- opNode this port resides inidx
- index of this port within the corresponding array of ports within opNodepublic ALDOpNode getOpNode()
public int getPortIndex()
public String getDescriptorName()
public String getExplanation()
public void setExplanation(String e)
e
- explanation of the port within ints opNodepublic String getClassname()
public void setClassname(String cn)
cn
- canonical classname of the ALDData associated with this portpublic Object getProperties()
Object setProperties(Object properties)
properties
- to set for the portCopyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.