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 DeviceId
deviceId()
Returns the associated infrastructure device identification.boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
toString()
-
-
-
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:TopologyVertex
Returns the associated infrastructure device identification.- Specified by:
deviceId
in interfaceTopologyVertex
- Returns:
- device identifier
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-