Class ComponentDep

java.lang.Object
pl.gdela.socomo.composition.ComponentDep
All Implemented Interfaces:
java.lang.Comparable<ComponentDep>

public class ComponentDep
extends java.lang.Object
implements java.lang.Comparable<ComponentDep>
Directed dependency between two Components.
  • Field Summary

    Fields
    Modifier and Type Field Description
    Component from
    The component that uses to component.
    int strength
    Strength of the dependency.
    Component to
    The component that is used by from component.
  • Method Summary

    Modifier and Type Method Description
    int compareTo​(ComponentDep that)  
    boolean equals​(java.lang.Object o)  
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • from

      public final Component from
      The component that uses to component.
    • to

      public final Component to
      The component that is used by from component.
    • strength

      public int strength
      Strength of the dependency.
  • Method Details

    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • compareTo

      public int compareTo​(ComponentDep that)
      Specified by:
      compareTo in interface java.lang.Comparable<ComponentDep>