Class VertexImpl1
java.lang.Object
info.oais.implementation.infomodel.poss1RepInfo.possRepInfoNetwork.RootVertexImpl1
info.oais.implementation.infomodel.poss1RepInfo.possRepInfoNetwork.VertexImpl1
- All Implemented Interfaces:
RootVertex
,Vertex
,Serializable
public class VertexImpl1 extends RootVertexImpl1 implements Vertex, Serializable
A Vertex points to zero or more other Vertexs (sic), and it is pointed to by at
least one other Vertex, unless it is the RootVertex. The VertexType tells one
whether the the Vertexs pointed to should be taken together or are alternatives.
A Vertex may have an associated RepresentationInformationObject.
- Since:
- 06-Sep-2021 15:59:47
- Version:
- 1.0
- Author:
- David
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description ArrayList<DirectedEdge>
m_inwardDirectedEdges
Internal value for the Incoming edges.ArrayList<DirectedEdge>
m_outwardDirectedEdges
Internal value for the Outward edges.RepInfoId
m_RepInfoId
Internal value for the pointer to the RepInfo associated with the Vertex.BaseGroup
m_vertexType
The VertexType is RepInfoGroup or one of its sub-types.private static long
serialVersionUID
To be used when object is serialized -
Constructor Summary
Constructors Constructor Description VertexImpl1()
-
Method Summary
Modifier and Type Method Description ArrayList<DirectedEdge>
getInwardEdges()
Returns an ArrayList of Edges which end at this Vertex.ArrayList<DirectedEdge>
getOutwardEdges()
Returns an ArrayList of Edges which start at this VertexRepInfoId
getRepInfoId()
Return the RepInfoId for the Vertex - or null.BaseGroup
getVertexType()
Get the VertexType - a subtype of RepInfoGroup.void
setRepInfoId(RepInfoId riid)
Set the RepInfoId for the Vertex.void
setVertexType(BaseGroup rig)
Set the VertexType - a subtype of RepInfoGroup..Methods inherited from class info.oais.implementation.infomodel.poss1RepInfo.possRepInfoNetwork.RootVertexImpl1
isAcyclic
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface info.oais.interfaces.infomodel.poss1RepInfo.possRepInfoNetwork.RootVertex
isAcyclic
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDTo be used when object is serialized- See Also:
- Constant Field Values
-
m_inwardDirectedEdges
Internal value for the Incoming edges. -
m_outwardDirectedEdges
Internal value for the Outward edges. -
m_RepInfoId
Internal value for the pointer to the RepInfo associated with the Vertex. -
m_vertexType
The VertexType is RepInfoGroup or one of its sub-types. If it is an OrGroup then any of the available Edges may be followed, but if it is an AndGroup then all the associated Edges must be followed.
-
-
Constructor Details
-
VertexImpl1
public VertexImpl1()
-
-
Method Details
-
getInwardEdges
Returns an ArrayList of Edges which end at this Vertex. The elements of the ArrayList can be inspected or added to.- Specified by:
getInwardEdges
in interfaceVertex
- Returns:
- inwardEdges The ArrayList of Edges which end at this Vertex
-
getOutwardEdges
Returns an ArrayList of Edges which start at this Vertex- Specified by:
getOutwardEdges
in interfaceVertex
- Returns:
- outwardEdges The ArrayList of Edges which start at this vertex.
-
getRepInfoId
Return the RepInfoId for the Vertex - or null.- Specified by:
getRepInfoId
in interfaceVertex
- Returns:
- The RepInfoId for the Vertex - or null.
-
setRepInfoId
Set the RepInfoId for the Vertex.- Specified by:
setRepInfoId
in interfaceVertex
- Parameters:
riid
- The RepInfoId for the Vertex
-
getVertexType
Get the VertexType - a subtype of RepInfoGroup.- Specified by:
getVertexType
in interfaceVertex
- Returns:
- The VertexType - a subtype of RepInfoGroup.
-
setVertexType
Set the VertexType - a subtype of RepInfoGroup..- Specified by:
setVertexType
in interfaceVertex
- Parameters:
rig
- The VertexType - a subtype of RepInfoGroup.
-