VieSched++
VieVS VLBI Scheduling Software
VieVS::SourceStatistics Class Reference

creates the source statistics output file More...

#include <SourceStatistics.h>

Inheritance diagram for VieVS::SourceStatistics:
Collaboration diagram for VieVS::SourceStatistics:

Public Member Functions

 SourceStatistics (const std::string &file)
 constructor More...
 
void writeFile (Network &network, SourceList &sourceList, const std::vector< Scan > &scans, const boost::property_tree::ptree &xml)
 write simple skdsum file More...
 
- Public Member Functions inherited from VieVS::VieVS_Object
 VieVS_Object (unsigned long id)
 constructor More...
 
const unsigned long getId () const
 get object id More...
 
bool hasValidId () const
 check if id is valid More...
 
bool hasId (unsigned long id) const
 check if object has specific id More...
 
void setId (unsigned long id)
 set object id More...
 
std::string printId () const
 object id string More...
 

Private Member Functions

std::unordered_map< std::string, std::vector< std::string > > readGroups (boost::property_tree::ptree root, const SourceList &sourceList) noexcept
 read all groups from VieSchedpp.xml file More...
 
std::vector< std::pair< unsigned int, unsigned int > > minutesVisible (Network &network, const std::shared_ptr< AbstractSource > &source)
 calculate minutes where source is visible More...
 

Private Attributes

std::ofstream of
 output stream object More...
 

Static Private Attributes

static unsigned long nextId = 0
 next id for this object type More...
 

Detailed Description

creates the source statistics output file

Author
Matthias Schartner
Date
28.06.2017

Constructor & Destructor Documentation

SourceStatistics::SourceStatistics ( const std::string &  file)
explicit

constructor

Author
Matthias Schartner
Parameters
filefile name

Member Function Documentation

vector< pair< unsigned int, unsigned int > > SourceStatistics::minutesVisible ( Network network,
const std::shared_ptr< AbstractSource > &  source 
)
private

calculate minutes where source is visible

Author
Matthias Schartner
Parameters
networkstation network
sourcetarget source
Returns
pair of visible time periods

Here is the call graph for this function:

Here is the caller graph for this function:

unordered_map< string, vector< string > > SourceStatistics::readGroups ( boost::property_tree::ptree  root,
const SourceList sourceList 
)
privatenoexcept

read all groups from VieSchedpp.xml file

Author
Matthias Schartner
Parameters
rootVieSchedpp.xml file
sourceListlist of all sources
Returns
list of all groups

Here is the caller graph for this function:

void SourceStatistics::writeFile ( Network network,
SourceList sourceList,
const std::vector< Scan > &  scans,
const boost::property_tree::ptree &  xml 
)

write simple skdsum file

Author
Matthias Schartner
Parameters
networkstation network
sourceListlist of all sources
scanslist of all scans
xmlparamters.xml file

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

unsigned long SourceStatistics::nextId = 0
staticprivate

next id for this object type

std::ofstream VieVS::SourceStatistics::of
private

output stream object


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