-
Notifications
You must be signed in to change notification settings - Fork 13
/
ilogger.h
37 lines (34 loc) · 1.73 KB
/
ilogger.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef ILOGGER_H
#define ILOGGER_H
#include "map.h"
#include "testing_results.h"
#include "node.h"
#include <unordered_map>
#include <list>
class ILogger
{
public:
ILogger(std::string loglevel) {this->loglevel = loglevel;}
virtual bool getLog(const char *FileName, const std::string *LogParams) = 0;
virtual void saveLog() = 0;
virtual void writeToLogMap(const Map& map, const std::list<Node>& path) = 0;
//virtual void writeToLogOpenClose(const typename &open, const typename &close) = 0;
virtual void writeToLogPath(const std::list<Node>& path) = 0;
virtual void writeToLogHPpath(const std::list<Node>& path) = 0;
virtual void writeToLogAgentsPaths(const AgentSet& agentSet,
const std::vector<std::vector<Node>>& agentsPaths,
const std::string &agentsFile, double time,
double makespan, double flowtime,
int HLExpansions, int HLNodes,
int HLExpansionsStart, int HLNodesStart,
double LLExpansions, double LLNodes) = 0;
virtual void writeToLogNotFound() = 0;
virtual void writeToLogAggregatedResults(std::map<int, int>& successCount,
TestingResults &res,
const std::string& agentsFile = "") = 0;
virtual void writeToLogSummary(unsigned int numberofsteps, unsigned int nodescreated, float length, double time, double cellSize) = 0;
virtual ~ILogger() {};
protected:
std::string loglevel;
};
#endif