public class DiagPacket extends Object implements PacketModel
Constructor and Description |
---|
DiagPacket(Packet packet,
String uid)
Constructs a packet model with the specified packet and an identifier
which should be generated via nextId().
|
Modifier and Type | Method and Description |
---|---|
int |
getId(String uid)
Returns the packet identifier as an integer.
|
Set<DataPathId> |
getRegisteredPosts()
Returns the set of registered observation posts.
|
long |
lastSent()
Returns the time stamp when the packet was last sent.
|
Map<String,OfmPacketIn> |
observationsPosts()
Returns the map of device dpid and the packet-in message received from
that dpid.
|
Packet |
packet()
Returns the packet associated with this packet model.
|
void |
registerObservationPost(DataPathId dataPathId)
Registers the observation with the specified data path identifier.
|
void |
stampTime()
Sets the time stamp to the current system time when the packet is sent
out to the network.
|
String |
toString() |
String |
uid()
Returns the unique packet model identifier.
|
void |
unregisterObservationPost(DataPathId dataPathId)
Unregisters the observation with the specified data path identifier.
|
void |
updateObservationPost(DataPathId dataPathId,
OfmPacketIn ofmPacketIn)
Updates the observation post with the corresponding open flow packet
in.
|
public String uid()
uid
in interface PacketModel
public Packet packet()
packet
in interface PacketModel
public long lastSent()
lastSent
in interface PacketModel
public void stampTime()
stampTime
in interface PacketModel
public int getId(String uid)
PacketModel
getId
in interface PacketModel
uid
- the identifier that was supposed to be generated by nextId()public Map<String,OfmPacketIn> observationsPosts()
observationsPosts
in interface PacketModel
public void updateObservationPost(DataPathId dataPathId, OfmPacketIn ofmPacketIn)
PacketModel
updateObservationPost
in interface PacketModel
dataPathId
- the data path identifier of the observation postofmPacketIn
- the test open flow packet in received from this postpublic void registerObservationPost(DataPathId dataPathId)
PacketModel
registerObservationPost
in interface PacketModel
dataPathId
- the data path identifier of the observation postpublic void unregisterObservationPost(DataPathId dataPathId)
PacketModel
unregisterObservationPost
in interface PacketModel
dataPathId
- the data path identifier of the observation postpublic Set<DataPathId> getRegisteredPosts()
PacketModel
getRegisteredPosts
in interface PacketModel
Copyright © 2015. All Rights Reserved.