de.unihalle.informatik.Alida.grappa
Class ALDGrappaNodePortInfo

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

public class ALDGrappaNodePortInfo
extends Object
implements 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()
           
 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.
 
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 String getPortLabel()
Returns the label of the port/parameter.

Returns:
Label of parameter.

getPortName

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

Returns:
(Variable) name of parameter.

getPortClassName

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

Returns:
Data type class of parameter.

getPortExplanation

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

Returns:
Explanation of parameter.

getPortDirection

public 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(String portLabel)
Parameters:
portLabel - the portLabel to set

setPortName

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

setPortExplanation

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

setPortClassName

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

setDirection

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

toString

public 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 Object
Returns:
ID string.


Copyright © 2010–2014 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.