de.unihalle.informatik.Alida.grappa
Class ALDGrappaNodePortInfo

java.lang.Object
  extended by de.unihalle.informatik.Alida.grappa.ALDGrappaNodePortInfo
All Implemented Interfaces:
java.io.Serializable

public class ALDGrappaNodePortInfo
extends java.lang.Object
implements java.io.Serializable

Serializable object attached to node ports to store meta information.

Author:
moeller
See Also:
Serialized Form

Field Summary
private  com.mxgraph.model.mxCell node
          Node to which the port is attached.
private  java.lang.String portClassName
          (Simple) class name of the parameter datatype.
private  Parameter.Direction portDirection
          Direction of the port.
private  java.lang.String portExplanation
          Explanation of the parameter.
private  java.lang.String portLabel
          Label of the associated operator parameter.
private  java.lang.String portName
          Variable name of the associated operator parameter.
 
Constructor Summary
ALDGrappaNodePortInfo(com.mxgraph.model.mxCell pnode, ALDOpParameterDescriptor descr)
          Default constructor.
 
Method Summary
 java.lang.String getPortClassName()
          Returns the class name of the port/parameter datatype.
 Parameter.Direction getPortDirection()
          Returns the direction of the port/parameter.
 java.lang.String getPortExplanation()
          Returns the explanation of the port/parameter.
 java.lang.String getPortLabel()
          Returns the label of the port/parameter.
 java.lang.String getPortName()
          Returns the name of the port/parameter.
 java.lang.String toString()
          Returns an identifier string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

node

private com.mxgraph.model.mxCell node
Node to which the port is attached.


portClassName

private java.lang.String portClassName
(Simple) class name of the parameter datatype.


portDirection

private Parameter.Direction portDirection
Direction of the port.


portExplanation

private java.lang.String portExplanation
Explanation of the parameter.


portLabel

private java.lang.String portLabel
Label of the associated operator parameter.


portName

private java.lang.String portName
Variable name of the associated operator parameter.

Constructor Detail

ALDGrappaNodePortInfo

public ALDGrappaNodePortInfo(com.mxgraph.model.mxCell pnode,
                             ALDOpParameterDescriptor descr)
Default constructor.

Parameters:
pnode - Parent node.
descr - Operator parameter descriptor of port.
Method Detail

getPortClassName

public java.lang.String getPortClassName()
Returns the class name of the port/parameter datatype.

Returns:
Data type class of parameter.

getPortDirection

public Parameter.Direction getPortDirection()
Returns the direction of the port/parameter.

Returns:
Direction of parameter.

getPortExplanation

public java.lang.String getPortExplanation()
Returns the explanation of the port/parameter.

Returns:
Explanation of parameter.

getPortLabel

public java.lang.String getPortLabel()
Returns the label of the port/parameter.

Returns:
Label of parameter.

getPortName

public java.lang.String getPortName()
Returns the name of the port/parameter.

Returns:
(Variable) name of parameter.

toString

public java.lang.String toString()
Returns an identifier string.

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.

Overrides:
toString in class java.lang.Object
Returns:
ID string.