1 #ifndef TRAFFIC_MATRIX_SEQUENCE_H
2 #define TRAFFIC_MATRIX_SEQUENCE_H
4 #include "traffic-matrix.h"
48 unsigned int size()
const;
92 ss<<
"The TrafficMatrixSequence index "<<index<<
" was out-of-bounds.";
93 this->exceptionStr = ss.str();
99 const char* what()
const throw() {
100 return this->exceptionStr.c_str();
104 std::string exceptionStr;
110 typedef std::vector<TrafficMatrix> sequenceType;
111 sequenceType sequence;
117 #endif //TRAFFIC_MATRIX_SEQUENCE_H
Definition: traffic-matrix-sequence.h:20
void setInterval(const Quantity &interval_)
Definition: traffic-matrix-sequence.cpp:12
void removeMatrix(unsigned int index)
Definition: traffic-matrix-sequence.cpp:32
unsigned int size() const
Definition: traffic-matrix-sequence.cpp:16
TrafficMatrix getMatrix(unsigned int index) const
Definition: traffic-matrix-sequence.cpp:43
void addMatrix(const TrafficMatrix &matrix)
Definition: traffic-matrix-sequence.cpp:20
Definition: traffic-matrix.h:19
TrafficMatrixSequence(const Quantity &interval_=Quantity("1s", Units::Time))
Definition: traffic-matrix-sequence.cpp:5
Quantity getInterval() const
Definition: traffic-matrix-sequence.cpp:8
Definition: traffic-matrix-sequence.h:88
Definition: quantity.h:16