Parallel Coordinate System with Time Series Data
Calendar Class Reference

A Calendar from which you can access the whole data. More...

#include <Calendar.h>

Public Member Functions

 Calendar (std::string filespath)
 Constructor. More...
 
 ~Calendar ()
 Destructor. More...
 
Date addDaysToDate (Date date, int daysToAdd)
 Adds the days to date to 'daysToAdd'. More...
 

Public Attributes

Date minDate
 
Date maxDate
 
std::unordered_map< Date, std::vector< std::vector< std::string > > > data
 
std::unordered_map< std::string, std::pair< float, float > > minMax
 
std::vector< std::string > attribute_names
 
std::unordered_map< std::string, int > attr_to_index_map
 
std::unordered_map< std::string, QVector3D > entity_colors
 

Detailed Description

A Calendar from which you can access the whole data.

Author
Depner, Gamsjaeger
Date
05.06.2021

Constructor & Destructor Documentation

◆ Calendar()

Calendar::Calendar ( std::string  filespath)

Constructor.

generates a Calendar with a given data set located in a folder

Parameters
filespathis path to a folder with the data set
Author
Depner, Gamsjaeger
Date
05.06.2021
Parameters
filespathThe filespath.

◆ ~Calendar()

Calendar::~Calendar ( )

Destructor.

Author
Depner, Gamsjaeger
Date
05.06.2021

Member Function Documentation

◆ addDaysToDate()

Date Calendar::addDaysToDate ( Date  date,
int  daysToAdd 
)

Adds the days to date to 'daysToAdd'.

add days to a given Date

Parameters
dateis the given Date
daysToAddis the number of the days which should be added to date
Author
Depner, Gamsjaeger
Date
05.06.2021
Parameters
dateThe date.
daysToAddThe days to add.
Returns
A Date.

Member Data Documentation

◆ attr_to_index_map

std::unordered_map<std::string, int> Calendar::attr_to_index_map

map which saves for every attribute name the corresponding index

◆ attribute_names

std::vector<std::string> Calendar::attribute_names

all attribute names saved in an array

◆ data

std::unordered_map<Date, std::vector<std::vector<std::string> > > Calendar::data

whole data saved in map while each Date is mapped to its corresponding data set

◆ entity_colors

std::unordered_map<std::string, QVector3D> Calendar::entity_colors
Initial value:
= {
}

map which saves for every possible entity in the data set a specific Color, which is later used to draw lines on the PCSystem

◆ maxDate

Date Calendar::maxDate

◆ minDate

Date Calendar::minDate

minimum date and maximum date of the time series data

◆ minMax

std::unordered_map<std::string, std::pair<float, float> > Calendar::minMax

minimum and maximum for each attribute in the data set. Saved in a map where each name of the attribute is mapped to pair of minimum and maximum value. First value of the pair is the minimum and second is the maximum value.


The documentation for this class was generated from the following files: