As these tools work closely together with fail components, its easiest, to build them in this context. As these tools don't really matter for fail use, they might never be pushed to the master branch. Change-Id: I8c8bd80376d0475f08a531a995d829e85032371b
24 lines
523 B
C++
24 lines
523 B
C++
#ifndef __BASIC_ALGORITHM__HPP
|
|
#define __BASIC_ALGORITHM__HPP
|
|
|
|
#include "../../src/core/util/smarthops/TraceReader.hpp"
|
|
class ResultCollector;
|
|
|
|
class BasicAlgorithm {
|
|
public:
|
|
/**
|
|
*
|
|
* @returns boolean value for calculation success
|
|
*/
|
|
virtual bool calculateAllHops(fail::TraceReader& trace) = 0;
|
|
|
|
BasicAlgorithm(ResultCollector *rc) {m_resultCollector = rc;}
|
|
virtual ~BasicAlgorithm() {}
|
|
|
|
protected:
|
|
ResultCollector *m_resultCollector;
|
|
};
|
|
|
|
#endif // __BASIC_ALGORITHM__HPP
|
|
|