public class DefaultNodeLocation extends Object implements NodeLocation, Serializable
NodeLocation
.Modifier | Constructor and Description |
---|---|
|
DefaultNodeLocation(ConnectionPoint cp)
Constructs a node location from the given connection point.
|
|
DefaultNodeLocation(DeviceId id,
InterfaceId intfId)
Constructs a node location at the given device and interface, using
the current system timestamp.
|
protected |
DefaultNodeLocation(DeviceId id,
InterfaceId intfId,
long ts)
Constructs a node location for the given device, interface, and
timestamp.
|
Modifier and Type | Method and Description |
---|---|
DeviceId |
elementId()
Returns the unique identifier of the connection point device.
|
boolean |
equals(Object obj) |
int |
hashCode() |
InterfaceId |
interfaceId()
Returns the connection point interface identifier.
|
String |
toString() |
long |
ts()
Returns the timestamp representing the time at which the node was seen
at this connection point.
|
public DefaultNodeLocation(DeviceId id, InterfaceId intfId)
id
- given device IDintfId
- given interface IDprotected DefaultNodeLocation(DeviceId id, InterfaceId intfId, long ts)
id
- given device IDintfId
- given interface IDts
- timestamppublic DefaultNodeLocation(ConnectionPoint cp)
IllegalArgumentException
will be thrown.cp
- connection pointIllegalArgumentException
- if connection point is not on devicepublic DeviceId elementId()
NodeLocation
elementId
in interface ConnectionPoint
elementId
in interface NodeLocation
public InterfaceId interfaceId()
ConnectionPoint
interfaceId
in interface ConnectionPoint
public long ts()
NodeLocation
ts
in interface NodeLocation
Copyright © 2015. All Rights Reserved.