Update README and add contrib dir

This commit is contained in:
2025-12-01 15:56:02 +01:00
parent 1b80de2153
commit cd9ba93d58
150 changed files with 25563 additions and 0 deletions

View File

@@ -0,0 +1,67 @@
#ifndef FRER_SEQUENCE_RECOVERY_FUNCTION_H
#define FRER_SEQUENCE_RECOVERY_FUNCTION_H
#include "ns3/object.h"
#include "tsn-net-device.h"
#include "frer-base-recovery-function.h"
#include "frer-latent-error-detection-function.h"
namespace ns3
{
class SequenceRecoveryFunction : public Object
{
public:
/**
* \brief Get the TypeId
*
* \return The TypeId for this class
*/
static TypeId GetTypeId();
/**
* \brief Create a SequenceRecoveryFunction
*/
SequenceRecoveryFunction();
/**
* Destroy a SequenceRecoveryFunction
*
* This is the destructor for the SequenceRecoveryFunction.
*/
~SequenceRecoveryFunction();
// Delete copy constructor and assignment operator to avoid misuse
SequenceRecoveryFunction& operator=(const SequenceRecoveryFunction&) = delete;
SequenceRecoveryFunction(const SequenceRecoveryFunction&) = delete;
void SetStreamHandle(std::vector<uint32_t> frerSeqRcvyStreamList);
void SetPorts(std::vector<Ptr<TsnNetDevice>> frerSeqRcvyPortList);
void SetRecoveryFunction(Ptr<BaseRecoveryFunction> frerSeqRcvyAlgorithm);
void SetLatentErrorDetectionFunction(Ptr<LatentErrorDetectionFunction> frerSeqRcvyLatentErrorDetection);
bool IsApplicable(uint32_t streamHandle, Ptr<TsnNetDevice> port, bool direction, bool hasSeqNumber, bool individualRecovery);
bool Recovery(uint16_t seqNumber);
Time GetHardwareLatency();
protected:
private:
std::vector<uint32_t> m_frerSeqRcvyStreamList; //802.1CB-2017 : 10.4.1.1
std::vector<Ptr<TsnNetDevice>> m_frerSeqRcvyPortList; //802.1CB-2017 : 10.4.1.2
bool m_frerSeqRcvyDirection; //802.1CB-2017 : 10.4.1.3
Ptr<BaseRecoveryFunction> m_frerSeqRcvyAlgorithm = nullptr; //802.1CB-2017 : 10.4.1.5
bool m_frerSeqRcvyTakeNoSequence; //802.1CB-2017 : 10.4.1.9
bool m_frerSeqRcvyIndividualRecovery; //802.1CB-2017 : 10.4.1.10
Ptr<LatentErrorDetectionFunction> m_frerSeqRcvyLatentErrorDetection = nullptr; //802.1CB-2017 : 10.4.1.11
Time m_minLatencyOverhead;
Time m_maxLatencyOverhead;
};
}
#endif /* FRER_SEQUENCE_RECOVERY_FUNCTION_H */