java.lang.Object
info.oais.implementation.infomodel.poss1RepInfo.possRepInfoNetwork.DirectedEdgeImpl1
All Implemented Interfaces:
DirectedEdge, Serializable

public class DirectedEdgeImpl1
extends Object
implements DirectedEdge, Serializable
Each edge has exactly one Source Vertex and one Target Vertex.
Since:
06-Sep-2021 15:59:45
Version:
1.0
Author:
David
See Also:
Serialized Form
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      To be used when object is serialized
      See Also:
      Constant Field Values
    • sourceVertex

      public Vertex sourceVertex
      Internal value of the sourceVertex.
    • targetVertex

      public Vertex targetVertex
      Internal value of the targeteVertex.
    • type

      public String type
      Internal value of the type.
  • Constructor Details

    • DirectedEdgeImpl1

      public DirectedEdgeImpl1()
  • Method Details

    • getSourceVertex

      public Vertex getSourceVertex()
      Returns the Vertex from which the Edge starts.
      Specified by:
      getSourceVertex in interface DirectedEdge
      Returns:
      sourceVertex The originating end of the Edge i.e. the Edge goes from the source to the target.
    • setSourceVertex

      public void setSourceVertex​(Vertex ver)
      Set the source Vertex for this Edge.
      Specified by:
      setSourceVertex in interface DirectedEdge
      Parameters:
      ver - The source Vertex for this edge.
    • getTargetVertex

      public Vertex getTargetVertex()
      Returns the Vertex at which the Edge ends.
      Specified by:
      getTargetVertex in interface DirectedEdge
      Returns:
      tergetVertex The target end of the Edge i.e. the Edge goes from the source to the target.
    • setTargetVertex

      public void setTargetVertex​(Vertex ver)
      Set the target Vertex for this Edge.
      Specified by:
      setTargetVertex in interface DirectedEdge
      Parameters:
      ver - The target Vertex for this edge.
    • getType

      public String getType()
      Returns the type associated with the Edge.
      Specified by:
      getType in interface DirectedEdge
      Returns:
      String The type of association the Edge represents.
    • setType

      public void setType​(String type)
      Set the type associated with this Edge.
      Specified by:
      setType in interface DirectedEdge
      Parameters:
      type - The type for this Edge.