public class ALDGrappaNodePortInfo extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private String |
direction
Direction of the port.
|
private com.mxgraph.model.mxCell |
node
Node to which the port is attached.
|
private String |
portClassName
(Simple) class name of the parameter datatype.
|
private String |
portExplanation
Explanation of the parameter.
|
private String |
portLabel
Label of the associated operator parameter.
|
private String |
portName
Variable name of the associated operator parameter.
|
Constructor and Description |
---|
ALDGrappaNodePortInfo() |
ALDGrappaNodePortInfo(com.mxgraph.model.mxCell pnode,
ALDOpParameterDescriptor descr)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
com.mxgraph.model.mxCell |
getNode() |
String |
getPortClassName()
Returns the class name of the port/parameter datatype.
|
String |
getPortDirection()
Returns the direction of the port/parameter.
|
String |
getPortExplanation()
Returns the explanation of the port/parameter.
|
String |
getPortLabel()
Returns the label of the port/parameter.
|
String |
getPortName()
Returns the name of the port/parameter.
|
void |
setDirection(String direction) |
void |
setNode(com.mxgraph.model.mxCell node) |
void |
setPortClassName(String portClassName) |
void |
setPortExplanation(String portExplanation) |
void |
setPortLabel(String portLabel) |
void |
setPortName(String portName) |
String |
toString()
Returns an identifier string.
|
private com.mxgraph.model.mxCell node
private String portLabel
private String portName
private String portExplanation
private String portClassName
private String direction
May have one of the following values: - "IN" - "OUT" - "INOUT" - "UNKNOWN"
public ALDGrappaNodePortInfo(com.mxgraph.model.mxCell pnode, ALDOpParameterDescriptor descr)
pnode
- Parent node.descr
- Operator parameter descriptor of port.public ALDGrappaNodePortInfo()
public String getPortLabel()
public String getPortName()
public String getPortClassName()
public String getPortExplanation()
public String getPortDirection()
public com.mxgraph.model.mxCell getNode()
public void setNode(com.mxgraph.model.mxCell node)
node
- the node to setpublic void setPortLabel(String portLabel)
portLabel
- the portLabel to setpublic void setPortName(String portName)
portName
- the portName to setpublic void setPortExplanation(String portExplanation)
portExplanation
- the portExplanation to setpublic void setPortClassName(String portClassName)
portClassName
- the portClassName to setpublic void setDirection(String direction)
direction
- the direction to setpublic String toString()
The length of the string is dynamically updated according to the size of the parent node. The different numerical values used in this function have been empirically determined and might not be optimal in all cases.
Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.