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

Constructor Summary
ALDGrappaNodePortInfo()
           
ALDGrappaNodePortInfo(com.mxgraph.model.mxCell pnode, ALDOpParameterDescriptor descr)
          Default constructor.
 
Method Summary
 com.mxgraph.model.mxCell getNode()
           
 java.lang.String getPortClassName()
          Returns the class name of the port/parameter datatype.
 java.lang.String 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.
 void setDirection(java.lang.String direction)
           
 void setNode(com.mxgraph.model.mxCell node)
           
 void setPortClassName(java.lang.String portClassName)
           
 void setPortExplanation(java.lang.String portExplanation)
           
 void setPortLabel(java.lang.String portLabel)
           
 void setPortName(java.lang.String portName)
           
 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
 

Constructor Detail

ALDGrappaNodePortInfo

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

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

ALDGrappaNodePortInfo

public ALDGrappaNodePortInfo()
Method Detail

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.

getPortClassName

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

Returns:
Data type class of parameter.

getPortExplanation

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

Returns:
Explanation of parameter.

getPortDirection

public java.lang.String getPortDirection()
Returns the direction of the port/parameter.

Returns:
Direction string of parameter.

getNode

public com.mxgraph.model.mxCell getNode()
Returns:
the node

setNode

public void setNode(com.mxgraph.model.mxCell node)
Parameters:
node - the node to set

setPortLabel

public void setPortLabel(java.lang.String portLabel)
Parameters:
portLabel - the portLabel to set

setPortName

public void setPortName(java.lang.String portName)
Parameters:
portName - the portName to set

setPortExplanation

public void setPortExplanation(java.lang.String portExplanation)
Parameters:
portExplanation - the portExplanation to set

setPortClassName

public void setPortClassName(java.lang.String portClassName)
Parameters:
portClassName - the portClassName to set

setDirection

public void setDirection(java.lang.String direction)
Parameters:
direction - the direction to set

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.


Copyright © 2010-2014 Martin Luther University Halle-Wittenberg. All Rights Reserved.