Constructor and Description |
---|
Node(long mostSignificantBitsVehicleId,
long leastSignificantBitsVehicleId,
long mostSignificantBitsGatewayId,
long leastSignificantBitsGatewayId)
Constructs a Node from the longs that represent the Node´s and Gateway´s IDd
|
Node(java.util.UUID nodeId,
java.util.UUID gatewayId)
Constructs a Node from Node´s and Gateways´s IDs
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Node otherVehicle) |
java.util.UUID |
getGatewayID()
Gets the Gateway´s ID
|
java.util.UUID |
getVehicleID()
Gets the Node´s ID
|
public Node(java.util.UUID nodeId, java.util.UUID gatewayId)
nodeId
- gatewayId
- public Node(long mostSignificantBitsVehicleId, long leastSignificantBitsVehicleId, long mostSignificantBitsGatewayId, long leastSignificantBitsGatewayId)
mostSignificantBitsVehicleId
- leastSignificantBitsVehicleId
- mostSignificantBitsGatewayId
- leastSignificantBitsGatewayId
- public int compareTo(Node otherVehicle)
compareTo
in interface java.lang.Comparable<Node>
public java.util.UUID getVehicleID()
public java.util.UUID getGatewayID()