• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sfc-aqua / quisp / 9226577644

24 May 2024 03:45PM UTC coverage: 42.418% (+0.07%) from 42.352%
9226577644

Pull #545

github

web-flow
Merge 8ca9688c4 into 5a1dcd7d1
Pull Request #545: Add satellite links

147 of 404 new or added lines in 13 files covered. (36.39%)

196 existing lines in 7 files now uncovered.

2867 of 6759 relevant lines covered (42.42%)

37856.55 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

95.83
/quisp/modules/Satellite/PointingSystem.cc
1
/** \file PointingSystem.cc
2
 *
3
 *  \brief PointingSystem
4
 */
5
#include "PointingSystem.h"
6
#include "channels/FSChannel.h"
7
#include "messages/visibility_messages_m.h"
8

9
using namespace quisp::channels;
10

11
namespace quisp::modules::Satellite {
12

13
Define_Module(PointingSystem);
14

15
PointingSystem::PointingSystem() : provider(utils::ComponentProvider{this}) {}
4✔
16

NEW
17
PointingSystem::~PointingSystem() {}
×
18

19
void PointingSystem::initialize() {}
4✔
20

21
void PointingSystem::handleMessage(cMessage* msg) {
4✔
22
  if (dynamic_cast<VisibilityMessage*>(msg)) {
4✔
23
    if (auto vcr = dynamic_cast<VisCheckRequest*>(msg)) {
3✔
24
      VisCheckOutcome* vco = new VisCheckOutcome();
3✔
25
      const char* gate_to_check = vcr->getOut_gate();
3✔
26
      int gtc_index = vcr->getIndex();
3✔
27
      cChannel* chl = getParentModule()->gate(gate_to_check, gtc_index)->getChannel();
3✔
28
      if (auto* fs_chl = dynamic_cast<FSChannel*>(chl)) {
3✔
29
        SimTime next_check_time = fs_chl->getNext_check_time();
2✔
30
        vco->setNext_check_time(next_check_time.dbl());
2✔
31
      } else {
2✔
32
        EV << "WARNING: checking visibility along a fiber channel. Seems weird.";
1✔
33
        vco->setNext_check_time(0);
1✔
34
      }
1✔
35
      send(vco, "ans");
3✔
36
      delete vcr;
3✔
37
    }
3✔
38
  } else
3✔
39
    throw(cRuntimeError("Unexpected Message at Pointing System!"));
1✔
40
  return;
3✔
41
};
4✔
42

43
}  // namespace quisp::modules::Satellite
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc