public interface PacketModel
Modifier and Type | Method and Description |
---|---|
int |
getId(String sid)
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()
Retrieves 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 |
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.
|
String uid()
Packet packet()
long lastSent()
void stampTime()
int getId(String sid)
sid
- the identifier that was supposed to be generated by nextId()Map<String,OfmPacketIn> observationsPosts()
void updateObservationPost(DataPathId dataPathId, OfmPacketIn ofmPacketIn)
dataPathId
- the data path identifier of the observation postofmPacketIn
- the test open flow packet in received from this postvoid registerObservationPost(DataPathId dataPathId)
dataPathId
- the data path identifier of the observation postvoid unregisterObservationPost(DataPathId dataPathId)
dataPathId
- the data path identifier of the observation postSet<DataPathId> getRegisteredPosts()
Copyright © 2015. All Rights Reserved.