Class GraphVertexImpl
- java.lang.Object
-
- org.opennms.netmgt.bsm.service.model.graph.internal.GraphElement
-
- org.opennms.netmgt.bsm.service.model.graph.internal.GraphVertexImpl
-
- All Implemented Interfaces:
java.lang.Comparable<GraphVertexImpl>
,GraphVertex
public class GraphVertexImpl extends GraphElement implements GraphVertex, java.lang.Comparable<GraphVertexImpl>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GraphVertexImpl(ReductionFunction reduceFunction, java.lang.String reductionKey)
protected
GraphVertexImpl(ReductionFunction reduceFunction, Application application)
protected
GraphVertexImpl(ReductionFunction reduceFunction, BusinessService businessService)
GraphVertexImpl(ReductionFunction reduceFunction, BusinessService businessService, IpService ipService, Application application, java.lang.String reductionKey)
protected
GraphVertexImpl(ReductionFunction reduceFunction, IpService ipService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(GraphVertexImpl other)
This is used to ensure that list of vertices returned by the RCA and IA algorithms are in consistent order.Application
getApplication()
BusinessService
getBusinessService()
IpService
getIpService()
int
getLevel()
ReductionFunction
getReductionFunction()
java.lang.String
getReductionKey()
void
setLevel(int level)
java.lang.String
toString()
-
Methods inherited from class org.opennms.netmgt.bsm.service.model.graph.internal.GraphElement
getStatus, setStatus
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.bsm.service.model.graph.GraphVertex
getStatus, setStatus
-
-
-
-
Constructor Detail
-
GraphVertexImpl
protected GraphVertexImpl(ReductionFunction reduceFunction, BusinessService businessService)
-
GraphVertexImpl
protected GraphVertexImpl(ReductionFunction reduceFunction, IpService ipService)
-
GraphVertexImpl
protected GraphVertexImpl(ReductionFunction reduceFunction, Application application)
-
GraphVertexImpl
protected GraphVertexImpl(ReductionFunction reduceFunction, java.lang.String reductionKey)
-
GraphVertexImpl
public GraphVertexImpl(ReductionFunction reduceFunction, BusinessService businessService, IpService ipService, Application application, java.lang.String reductionKey)
-
-
Method Detail
-
getReductionFunction
public ReductionFunction getReductionFunction()
- Specified by:
getReductionFunction
in interfaceGraphVertex
-
getReductionKey
public java.lang.String getReductionKey()
- Specified by:
getReductionKey
in interfaceGraphVertex
-
getBusinessService
public BusinessService getBusinessService()
- Specified by:
getBusinessService
in interfaceGraphVertex
-
getIpService
public IpService getIpService()
- Specified by:
getIpService
in interfaceGraphVertex
-
setLevel
public void setLevel(int level)
-
getLevel
public int getLevel()
- Specified by:
getLevel
in interfaceGraphVertex
-
getApplication
public Application getApplication()
- Specified by:
getApplication
in interfaceGraphVertex
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(GraphVertexImpl other)
This is used to ensure that list of vertices returned by the RCA and IA algorithms are in consistent order.- Specified by:
compareTo
in interfacejava.lang.Comparable<GraphVertexImpl>
-
-