Class RestCallEdge

java.lang.Object
org.jgrapht.graph.DefaultWeightedEdge
edu.university.ecs.lab.common.models.sdg.RestCallEdge
All Implemented Interfaces:
Serializable, Cloneable

public class RestCallEdge extends org.jgrapht.graph.DefaultWeightedEdge
Represents an edge in a network graph schema to model a microservice system. Each edge object contains details about the connection between nodes.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
    The endpoint of the target node that is accessed.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    Determines whether another object is "equal to" this edge.
    int
    Returns a hash code value for the edge.

    Methods inherited from class org.jgrapht.graph.DefaultWeightedEdge

    getSource, getTarget, getWeight, toString

    Methods inherited from class java.lang.Object

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

    • endpoint

      private String endpoint
      The endpoint of the target node that is accessed.
  • Constructor Details

    • RestCallEdge

      public RestCallEdge()
  • Method Details

    • equals

      public boolean equals(Object o)
      Determines whether another object is "equal to" this edge. Two edges are considered equal if their source, target, and endpoint are all equal.
      Overrides:
      equals in class Object
      Parameters:
      o - the reference object with which to compare.
      Returns:
      true if this object is the same as the obj argument; false otherwise.
    • hashCode

      public int hashCode()
      Returns a hash code value for the edge. This method is supported for the benefit of hash tables such as those provided by HashMap.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for this object.
    • clone

      public Object clone()
      Overrides:
      clone in class Object