Update README and add contrib dir
This commit is contained in:
53
contrib/tsn/model/stream-identification-function.h
Normal file
53
contrib/tsn/model/stream-identification-function.h
Normal file
@@ -0,0 +1,53 @@
|
||||
#ifndef STREAM_IDENTIFICATION_FUNCTION_H
|
||||
#define STREAM_IDENTIFICATION_FUNCTION_H
|
||||
|
||||
#include "ns3/object.h"
|
||||
|
||||
#include "ns3/packet.h"
|
||||
#include "ns3/nstime.h"
|
||||
|
||||
namespace ns3
|
||||
{
|
||||
|
||||
class StreamIdentificationFunction : public Object
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* \brief Get the TypeId
|
||||
*
|
||||
* \return The TypeId for this class
|
||||
*/
|
||||
static TypeId GetTypeId();
|
||||
|
||||
/**
|
||||
* \brief Create a StreamIdentificationFunction
|
||||
*/
|
||||
StreamIdentificationFunction();
|
||||
|
||||
/**
|
||||
* Destroy a StreamIdentificationFunction
|
||||
*
|
||||
* This is the destructor for the StreamIdentificationFunction.
|
||||
*/
|
||||
~StreamIdentificationFunction();
|
||||
|
||||
// Delete copy constructor and assignment operator to avoid misuse
|
||||
StreamIdentificationFunction& operator=(const StreamIdentificationFunction&) = delete;
|
||||
StreamIdentificationFunction(const StreamIdentificationFunction&) = delete;
|
||||
|
||||
virtual bool Match(Ptr<Packet> p);
|
||||
virtual void GetActiveUpdate(Ptr<Packet> p);
|
||||
|
||||
Time GetHardwareLatency();
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
Time m_minLatencyOverhead;
|
||||
Time m_maxLatencyOverhead;
|
||||
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
#endif /* STREAM_IDENTIFICATION_FUNCTION_H */
|
||||
Reference in New Issue
Block a user