Package org.onosproject.net.topology
Class DefaultTopologyVertex
- java.lang.Object
-
- org.onosproject.net.topology.DefaultTopologyVertex
-
- All Implemented Interfaces:
Vertex
,TopologyVertex
public class DefaultTopologyVertex extends 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(Object obj)
int
hashCode()
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
-
-