Package org.onosproject.net.topology
Class DefaultTopologyVertex
- java.lang.Object
-
- org.onosproject.net.topology.DefaultTopologyVertex
-
- All Implemented Interfaces:
Vertex,TopologyVertex
public class DefaultTopologyVertex extends java.lang.Object implements TopologyVertex
Implementation of the topology vertex backed by a device id.
-
-
Constructor Summary
Constructors Constructor Description DefaultTopologyVertex(DeviceId deviceId)Creates a new topology vertex.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceIddeviceId()Returns the associated infrastructure device identification.booleanequals(java.lang.Object obj)inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
DefaultTopologyVertex
public DefaultTopologyVertex(DeviceId deviceId)
Creates a new topology vertex.- Parameters:
deviceId- backing infrastructure device identifier
-
-
Method Detail
-
deviceId
public DeviceId deviceId()
Description copied from interface:TopologyVertexReturns the associated infrastructure device identification.- Specified by:
deviceIdin interfaceTopologyVertex- Returns:
- device identifier
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-