public class PortProperties extends ReferenceableProperties
PortProperties is a class for representing a generic port for a process. The typeName is set to indicate it is either a PortAlias (part of a choreographing process) or PortImplementation (part of an implemented process).
  • Constructor Details

    • PortProperties

      public PortProperties()
      Default constructor
    • PortProperties

      public PortProperties(PortProperties template)
      Copy/clone constructor.
      Parameters:
      template - object to copy
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Return a human memorable name for the port.
      Returns:
      string name
    • setDisplayName

      public void setDisplayName(String displayName)
      Set up a human memorable name for the port.
      Parameters:
      displayName - string name
    • getPortType

      public PortType getPortType()
      Return the direction of data flow of the port.
      Returns:
      portType enum
    • setPortType

      public void setPortType(PortType portType)
      Set up the direction of data flow of the port.
      Parameters:
      portType - portType enum
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class ReferenceableProperties
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class ReferenceableProperties
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class ReferenceableProperties
      Returns:
      int