![]() |
VieSched++
VieVS VLBI Scheduling Software
|
representation of a VLBI network More...
#include <Network.h>


Public Member Functions | |
| Network () | |
| constructor More... | |
| void | addStation (Station station) |
| add a new station to the network More... | |
| const Station & | getStation (unsigned long id) const noexcept |
| get station per id More... | |
| const Station & | getStation (const std::string &name) const noexcept |
| get station per name More... | |
| const std::vector< Station > & | getStations () const noexcept |
| get all stations in this network More... | |
| const Baseline & | getBaseline (unsigned long id) const noexcept |
| ger baseline per id More... | |
| const Baseline & | getBaseline (unsigned long staid1, unsigned long staid2) const noexcept |
| get baselined between two stations More... | |
| const Baseline & | getBaseline (const std::pair< unsigned long, unsigned long > &staids) const noexcept |
| get baseline between two stations More... | |
| const Baseline & | getBaseline (const std::string &name) const noexcept |
| get baseline per name More... | |
| const std::vector< Baseline > & | getBaselines () const noexcept |
| get all baselines More... | |
| const SkyCoverage & | getSkyCoverage (unsigned long id) const noexcept |
| get sky coverage per id More... | |
| const std::vector< SkyCoverage > & | getSkyCoverages () const noexcept |
| get all sky coverages More... | |
| Station & | refStation (unsigned long id) |
| reference to station per id More... | |
| Station & | refStation (const std::string &name) |
| reference to station per name More... | |
| std::vector< Station > & | refStations () |
| reference to all stations More... | |
| Baseline & | refBaseline (unsigned long id) |
| reference to baseline per id More... | |
| Baseline & | refBaseline (unsigned long staid1, unsigned long staid2) |
| reference to baseline between two stations More... | |
| Baseline & | refBaseline (const std::pair< unsigned long, unsigned long > &staids) |
| reference to baseline between two stations More... | |
| Baseline & | refBaseline (const std::string &name) |
| reference to baseline per name More... | |
| std::vector< Baseline > & | refBaselines () |
| reference to all baselines More... | |
| SkyCoverage & | refSkyCoverage (unsigned long id) |
| reference to sky coverage per id More... | |
| std::vector< SkyCoverage > & | refSkyCoverages () |
| reference to all sky coverages More... | |
| unsigned long | getBlid (const std::pair< unsigned long, unsigned long > &staids) const noexcept |
| get baseline id between stations More... | |
| unsigned long | getBlid (unsigned long staid1, unsigned long staid2) const noexcept |
| get baseline id between stations More... | |
| void | setMaxDistBetweenCorrespondingTelescopes (double maxDistBetweenCorrespondingTelescopes) |
| set maximum distance between corresponding telescopes More... | |
| unsigned long | getNSta () const noexcept |
| get number of stations More... | |
| unsigned long | getNBls () const noexcept |
| get number of baselines More... | |
| unsigned long | getNClosures_max () const noexcept |
| get number of theoretically possible independent closure phases and amplitudes More... | |
| void | update (unsigned long nObs, const PointingVector &pointingVector, bool influence=true) |
| add new observation to station More... | |
| void | update (unsigned long blid, bool influence=true) |
| add new observation to baseline More... | |
| const std::vector< double > & | getDxyz (unsigned long staid1, unsigned long staid2) const |
| get baseline vector between two stations More... | |
| double | calcScore_skyCoverage (const std::vector< PointingVector > &pvs) const |
| calc total score per sky coverages More... | |
| double | calcScore_skyCoverage (const std::vector< PointingVector > &pvs, std::unordered_map< unsigned long, double > &staids2skyCoverageScore) const |
| calc total score per sky coverages More... | |
| double | calcScore_skyCoverage_subnetting (const std::vector< PointingVector > &pvs, const std::unordered_map< unsigned long, double > &staids2skyCoverageScore) const |
| calc total score per sky coverages More... | |
| const std::map< unsigned long, unsigned long > & | getStaid2skyCoverageId () const |
| get lookup table for sky coverage id based on station id More... | |
| void | stationSummary (std::ofstream &of) const |
| creates station summary table 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 Attributes | |
| unsigned long | nsta_ |
| number of stations More... | |
| unsigned long | nbls_ |
| number of baselines More... | |
| unsigned long | nclosures_max_ |
| maximum number of possible closure delays More... | |
| std::vector< Station > | stations_ |
| all stations More... | |
| std::vector< Baseline > | baselines_ |
| all baselines More... | |
| std::vector< SkyCoverage > | skyCoverages_ |
| all sky coverages More... | |
| std::map< std::pair< unsigned long, unsigned long >, unsigned long > | staids2blid_ |
| lookup table for baseline id More... | |
| std::map< std::pair< unsigned long, unsigned long >, std::vector< double > > | staids2dxyz_ |
| lookup table for baseline vectors More... | |
| double | maxDistBetweenCorrespondingTelescopes_ |
| maximum distance between corresponding telescopes in meteres More... | |
| std::map< unsigned long, unsigned long > | staids2skyCoverageId_ |
| lookup table for sky coverage ids More... | |
Static Private Attributes | |
| static unsigned long | nextId = 0 |
| next id for this object type More... | |
representation of a VLBI network
| Network::Network | ( | ) |
constructor
| void Network::addStation | ( | Station | station | ) |
add a new station to the network
| station | new station which should be added |


| double VieVS::Network::calcScore_skyCoverage | ( | const std::vector< PointingVector > & | pvs | ) | const |
calc total score per sky coverages
| pvs | list of pointing vectors |

| double VieVS::Network::calcScore_skyCoverage | ( | const std::vector< PointingVector > & | pvs, |
| std::unordered_map< unsigned long, double > & | staids2skyCoverageScore | ||
| ) | const |
calc total score per sky coverages
save result in input parameter for further use
| pvs | list of pointing vectors |
| staids2skyCoverageScore | storage for results |
| double Network::calcScore_skyCoverage_subnetting | ( | const std::vector< PointingVector > & | pvs, |
| const std::unordered_map< unsigned long, double > & | staids2skyCoverageScore | ||
| ) | const |
calc total score per sky coverages
score is taken from input parameter
| pvs | list of pointing vectors |
| staids2skyCoverageScore | precalculated score |

|
noexcept |
ger baseline per id
| id | baseline id |

|
noexcept |
get baselined between two stations
| staid1 | first station id |
| staid2 | second station id |
|
noexcept |
get baseline between two stations
| staids | station ids |

|
noexcept |
get baseline per name
| name | name of the baseline |
|
noexcept |
get all baselines

|
noexcept |
get baseline id between stations
| staids | station ids |


|
noexcept |
get baseline id between stations
| staid1 | first station id |
| staid2 | second station id |

| const std::vector< double > & Network::getDxyz | ( | unsigned long | staid1, |
| unsigned long | staid2 | ||
| ) | const |
get baseline vector between two stations
| staid1 | first station id |
| staid2 | second station id |


|
inlinenoexcept |
get number of baselines

|
inlinenoexcept |
get number of theoretically possible independent closure phases and amplitudes


|
inlinenoexcept |
get number of stations

|
noexcept |
get sky coverage per id
| id | sky coverage id |

|
noexcept |
get all sky coverages
|
inline |
get lookup table for sky coverage id based on station id


|
noexcept |
get station per id
| id | station id |

|
noexcept |
get station per name
| name | station name |
|
noexcept |
get all stations in this network

| Baseline & Network::refBaseline | ( | unsigned long | id | ) |
reference to baseline per id
| id | baseline id |

| Baseline & Network::refBaseline | ( | unsigned long | staid1, |
| unsigned long | staid2 | ||
| ) |
reference to baseline between two stations
| staid1 | first station id |
| staid2 | second station id |
| Baseline & Network::refBaseline | ( | const std::pair< unsigned long, unsigned long > & | staids | ) |
reference to baseline between two stations
| staids | station ids |

| Baseline & Network::refBaseline | ( | const std::string & | name | ) |
reference to baseline per name
| name | baseline name |
| std::vector< Baseline > & Network::refBaselines | ( | ) |
reference to all baselines

| SkyCoverage & Network::refSkyCoverage | ( | unsigned long | id | ) |
reference to sky coverage per id
| id | sky coverage id |

| std::vector< SkyCoverage > & Network::refSkyCoverages | ( | ) |
reference to all sky coverages

| Station & Network::refStation | ( | unsigned long | id | ) |
reference to station per id
| id | station id |

| Station & Network::refStation | ( | const std::string & | name | ) |
reference to station per name
| name | station name |
| std::vector< Station > & Network::refStations | ( | ) |
reference to all stations

|
inline |
set maximum distance between corresponding telescopes
corresponding telescopes share the same sky coverage information
| maxDistBetweenCorrespondingTelescopes | maximum distance in meters |

| void Network::stationSummary | ( | std::ofstream & | of | ) | const |
creates station summary table
| of | outfile stream |

| void Network::update | ( | unsigned long | nObs, |
| const PointingVector & | pointingVector, | ||
| bool | influence = true |
||
| ) |
add new observation to station
| nObs | number of observations |
| pointingVector | observed pointing vector |
| influence | flag if this observations should count for upcoming scan selections |


| void Network::update | ( | unsigned long | blid, |
| bool | influence = true |
||
| ) |
add new observation to baseline
| blid | baseline id |
| influence | flag if observation should count for upcoming scan selections |
|
private |
all baselines
|
private |
maximum distance between corresponding telescopes in meteres
|
private |
number of baselines
|
private |
maximum number of possible closure delays
|
staticprivate |
next id for this object type
|
private |
number of stations
|
private |
all sky coverages
|
private |
lookup table for baseline id
|
private |
lookup table for baseline vectors
|
private |
lookup table for sky coverage ids
|
private |
all stations