Class DirectedEdgeImpl1
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 Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
To be used when object is serializedVertex
sourceVertex
Internal value of the sourceVertex.Vertex
targetVertex
Internal value of the targeteVertex.String
type
Internal value of the type. -
Constructor Summary
Constructors Constructor Description DirectedEdgeImpl1()
-
Method Summary
Modifier and Type Method Description Vertex
getSourceVertex()
Returns the Vertex from which the Edge starts.Vertex
getTargetVertex()
Returns the Vertex at which the Edge ends.String
getType()
Returns the type associated with the Edge.void
setSourceVertex(Vertex ver)
Set the source Vertex for this Edge.void
setTargetVertex(Vertex ver)
Set the target Vertex for this Edge.void
setType(String type)
Set the type associated with this Edge.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDTo be used when object is serialized- See Also:
- Constant Field Values
-
sourceVertex
Internal value of the sourceVertex. -
targetVertex
Internal value of the targeteVertex. -
type
Internal value of the type.
-
-
Constructor Details
-
DirectedEdgeImpl1
public DirectedEdgeImpl1()
-
-
Method Details
-
getSourceVertex
Returns the Vertex from which the Edge starts.- Specified by:
getSourceVertex
in interfaceDirectedEdge
- Returns:
- sourceVertex The originating end of the Edge i.e. the Edge goes from the source to the target.
-
setSourceVertex
Set the source Vertex for this Edge.- Specified by:
setSourceVertex
in interfaceDirectedEdge
- Parameters:
ver
- The source Vertex for this edge.
-
getTargetVertex
Returns the Vertex at which the Edge ends.- Specified by:
getTargetVertex
in interfaceDirectedEdge
- Returns:
- tergetVertex The target end of the Edge i.e. the Edge goes from the source to the target.
-
setTargetVertex
Set the target Vertex for this Edge.- Specified by:
setTargetVertex
in interfaceDirectedEdge
- Parameters:
ver
- The target Vertex for this edge.
-
getType
Returns the type associated with the Edge.- Specified by:
getType
in interfaceDirectedEdge
- Returns:
- String The type of association the Edge represents.
-
setType
Set the type associated with this Edge.- Specified by:
setType
in interfaceDirectedEdge
- Parameters:
type
- The type for this Edge.
-