Summary.h
Go to the documentation of this file.
1 
7 #include <ostream>
8 #include <string>
9 
10 #ifndef ORCA_SUMMARY_H
11 #define ORCA_SUMMARY_H
12 
32 class Summary
33 {
34  public:
38  Summary() = default;
42  ~Summary() = default;
52  Summary(float srate, float runtime, float flowtime, float makespan, int collisions, int collisionsObst)
53  : successRate(srate), runTime(runtime), flowTime(flowtime), makeSpan(makespan), collisions(collisions), collisionsObst(collisionsObst){}
54 
59  Summary(const Summary &obj)
61 
66  std::string ToString() const
67  {
68  return std::to_string(successRate) + "\t"
69  + std::to_string(runTime) + "\t"
70  + std::to_string(makeSpan) + "\t"
71  + std::to_string(flowTime) + "\t"
72  + std::to_string(collisions) + "\t"
73  + std::to_string(collisionsObst) + "\n";
74  }
75 
76 
77  float successRate;
78  float runTime;
79  float flowTime;
80  float makeSpan;
81  int collisions;
83 
84 };
85 
86 
87 #endif //ORCA_SUMMARY_H
Summary()=default
Default constructor.
int collisions
Shows the number of collisions between agents while execution of task.
Definition: Summary.h:81
float successRate
Shows the percent of agents, which succsed their tasks.
Definition: Summary.h:77
Class Summary contains brief information about execution results.
Definition: Summary.h:32
~Summary()=default
Default destructor.
float runTime
Shows the time of running of task.
Definition: Summary.h:78
float makeSpan
Shows the maximum value of time steps of amoung all agents.
Definition: Summary.h:80
float flowTime
Shows the sum of time steps of all agents.
Definition: Summary.h:79
Summary(const Summary &obj)
Copy constructor.
Definition: Summary.h:59
std::string ToString() const
Creates STL string, which contains all values splitted with tabulation.
Definition: Summary.h:66
Summary(float srate, float runtime, float flowtime, float makespan, int collisions, int collisionsObst)
Constructor with parameters.
Definition: Summary.h:52
int collisionsObst
Shows the number of collisions between agents and static obstacles while execution of task...
Definition: Summary.h:82


ORCAStar
Author(s): Stepan Drgachev
autogenerated on Wed Jul 15 2020 16:13:14