Logger class implements base interface for system state logging.
More...
#include <Logger.h>
|
virtual Logger * | Clone () const =0 |
| Abstract method for cloning inheritors objects. Implementations of this method should create copy of object in memmory and return pointer to copy. More...
|
|
virtual bool | GenerateLog ()=0 |
| Abstract method for creating final log in file or another format. More...
|
|
virtual void | SetResults (const std::unordered_map< int, std::vector< Point >> &stepsLog, const std::unordered_map< int, std::vector< Point >> &goalsLog, const std::unordered_map< int, std::pair< bool, int >> &resultsLog)=0 |
| Abstract method. Should sets full information about execution, including states on each step, curren goals on each step, success of each agent. More...
|
|
virtual void | SetSummary (const Summary &res)=0 |
| Abstract method. Should sets brief information about execution results. More...
|
|
virtual | ~Logger () |
| Logger virtual destructor. More...
|
|
Logger class implements base interface for system state logging.
Definition at line 22 of file Logger.h.
virtual Logger::~Logger |
( |
| ) |
|
|
inlinevirtual |
virtual Logger* Logger::Clone |
( |
| ) |
const |
|
pure virtual |
Abstract method for cloning inheritors objects. Implementations of this method should create copy of object in memmory and return pointer to copy.
- Returns
- Pointer to copy of object
Implemented in XMLLogger.
virtual bool Logger::GenerateLog |
( |
| ) |
|
|
pure virtual |
Abstract method for creating final log in file or another format.
- Returns
- Succsess of log creating.
Implemented in XMLLogger.
virtual void Logger::SetResults |
( |
const std::unordered_map< int, std::vector< Point >> & |
stepsLog, |
|
|
const std::unordered_map< int, std::vector< Point >> & |
goalsLog, |
|
|
const std::unordered_map< int, std::pair< bool, int >> & |
resultsLog |
|
) |
| |
|
pure virtual |
Abstract method. Should sets full information about execution, including states on each step, curren goals on each step, success of each agent.
- Parameters
-
stepsLog | Agent states on each step. |
goalsLog | Agent curren goals on each step. |
resultsLog | Success of each agent and number of steps of each agent. |
Implemented in XMLLogger.
virtual void Logger::SetSummary |
( |
const Summary & |
res | ) |
|
|
pure virtual |
Abstract method. Should sets brief information about execution results.
- Parameters
-
res | Execution results in brief form. |
Implemented in XMLLogger.
The documentation for this class was generated from the following file: