Class OpenNetPort

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<OpenNetLabel>, java.util.Collection<OpenNetLabel>, java.util.Set<OpenNetLabel>

    public class OpenNetPort
    extends java.util.HashSet<OpenNetLabel>
    Author:
    hverbeek Open net port node. Holds inputs, outputs, and synchronous elements. We use an ExpandableSubNet for the port. Its elements will be displayed inside it.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      OpenNetPort​(java.lang.String label, java.lang.String id)
      Constructs a port, given its label.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getId()  
      java.lang.String getLabel()  
      java.util.Collection<OpenNetLabel> getLabels​(OpenNetLabel.Type type)  
      int hashCode()  
      • Methods inherited from class java.util.HashSet

        add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator
      • Methods inherited from class java.util.AbstractSet

        removeAll
      • Methods inherited from class java.util.AbstractCollection

        addAll, containsAll, retainAll, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Set

        addAll, containsAll, removeAll, retainAll, toArray, toArray
    • Constructor Detail

      • OpenNetPort

        public OpenNetPort​(java.lang.String label,
                           java.lang.String id)
        Constructs a port, given its label.
        Parameters:
        net - The given net.
        label - The given label.
    • Method Detail

      • getLabel

        public java.lang.String getLabel()
      • getId

        public java.lang.String getId()
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<OpenNetLabel>
        Specified by:
        hashCode in interface java.util.Set<OpenNetLabel>
        Overrides:
        hashCode in class java.util.AbstractSet<OpenNetLabel>
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.util.Collection<OpenNetLabel>
        Specified by:
        equals in interface java.util.Set<OpenNetLabel>
        Overrides:
        equals in class java.util.AbstractSet<OpenNetLabel>