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 SummaryFields Modifier and Type Field Description private static longserialVersionUIDTo be used when object is serializedVertexsourceVertexInternal value of the sourceVertex.VertextargetVertexInternal value of the targeteVertex.StringtypeInternal value of the type.
- 
Constructor SummaryConstructors Constructor Description DirectedEdgeImpl1()
- 
Method SummaryModifier and Type Method Description VertexgetSourceVertex()Returns the Vertex from which the Edge starts.VertexgetTargetVertex()Returns the Vertex at which the Edge ends.StringgetType()Returns the type associated with the Edge.voidsetSourceVertex(Vertex ver)Set the source Vertex for this Edge.voidsetTargetVertex(Vertex ver)Set the target Vertex for this Edge.voidsetType(String type)Set the type associated with this Edge.
- 
Field Details- 
serialVersionUIDprivate static final long serialVersionUIDTo be used when object is serialized- See Also:
- Constant Field Values
 
- 
sourceVertexInternal value of the sourceVertex.
- 
targetVertexInternal value of the targeteVertex.
- 
typeInternal value of the type.
 
- 
- 
Constructor Details- 
DirectedEdgeImpl1public DirectedEdgeImpl1()
 
- 
- 
Method Details- 
getSourceVertexReturns the Vertex from which the Edge starts.- Specified by:
- getSourceVertexin interface- DirectedEdge
- Returns:
- sourceVertex The originating end of the Edge i.e. the Edge goes from the source to the target.
 
- 
setSourceVertexSet the source Vertex for this Edge.- Specified by:
- setSourceVertexin interface- DirectedEdge
- Parameters:
- ver- The source Vertex for this edge.
 
- 
getTargetVertexReturns the Vertex at which the Edge ends.- Specified by:
- getTargetVertexin interface- DirectedEdge
- Returns:
- tergetVertex The target end of the Edge i.e. the Edge goes from the source to the target.
 
- 
setTargetVertexSet the target Vertex for this Edge.- Specified by:
- setTargetVertexin interface- DirectedEdge
- Parameters:
- ver- The target Vertex for this edge.
 
- 
getTypeReturns the type associated with the Edge.- Specified by:
- getTypein interface- DirectedEdge
- Returns:
- String The type of association the Edge represents.
 
- 
setTypeSet the type associated with this Edge.- Specified by:
- setTypein interface- DirectedEdge
- Parameters:
- type- The type for this Edge.
 
 
-