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 PacketModelpublic Packet packet()
packet in interface PacketModelpublic long lastSent()
lastSent in interface PacketModelpublic void stampTime()
stampTime in interface PacketModelpublic int getId(String uid)
PacketModelgetId in interface PacketModeluid - the identifier that was supposed to be generated by nextId()public Map<String,OfmPacketIn> observationsPosts()
observationsPosts in interface PacketModelpublic void updateObservationPost(DataPathId dataPathId, OfmPacketIn ofmPacketIn)
PacketModelupdateObservationPost in interface PacketModeldataPathId - the data path identifier of the observation postofmPacketIn - the test open flow packet in received from this postpublic void registerObservationPost(DataPathId dataPathId)
PacketModelregisterObservationPost in interface PacketModeldataPathId - the data path identifier of the observation postpublic void unregisterObservationPost(DataPathId dataPathId)
PacketModelunregisterObservationPost in interface PacketModeldataPathId - the data path identifier of the observation postpublic Set<DataPathId> getRegisteredPosts()
PacketModelgetRegisteredPosts in interface PacketModelCopyright © 2014. All Rights Reserved.