LEFT | RIGHT |
(no file at all) | |
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2014 Piotr Gawlowicz | 3 * Copyright (c) 2014 Piotr Gawlowicz |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 | 503 |
504 } | 504 } |
505 | 505 |
506 LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::~LteDownlinkPowerCo
ntrolRrcConnectionReconfigurationTestCase () | 506 LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::~LteDownlinkPowerCo
ntrolRrcConnectionReconfigurationTestCase () |
507 { | 507 { |
508 } | 508 } |
509 | 509 |
510 void | 510 void |
511 LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::ConnectionReconfigu
rationEnb (std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti) | 511 LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::ConnectionReconfigu
rationEnb (std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti) |
512 { | 512 { |
| 513 NS_UNUSED (imsi); |
| 514 NS_UNUSED (cellid); |
| 515 NS_UNUSED (rnti); |
513 if (Simulator::Now () > MilliSeconds (100)) | 516 if (Simulator::Now () > MilliSeconds (100)) |
514 { | 517 { |
515 NS_LOG_DEBUG ("eNb ConnectionReconfigurationCompleted"); | 518 NS_LOG_DEBUG ("eNb ConnectionReconfigurationCompleted"); |
516 m_connectionReconfigurationEnbCompleted = true; | 519 m_connectionReconfigurationEnbCompleted = true; |
517 } | 520 } |
518 } | 521 } |
519 | 522 |
520 void | 523 void |
521 LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::ConnectionReconfigu
rationUe (std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti) | 524 LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::ConnectionReconfigu
rationUe (std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti) |
522 { | 525 { |
| 526 NS_UNUSED (imsi); |
| 527 NS_UNUSED (cellid); |
| 528 NS_UNUSED (rnti); |
523 if (Simulator::Now () > MilliSeconds (100)) | 529 if (Simulator::Now () > MilliSeconds (100)) |
524 { | 530 { |
525 NS_LOG_DEBUG ("Ue ConnectionReconfiguration"); | 531 NS_LOG_DEBUG ("Ue ConnectionReconfiguration"); |
526 m_connectionReconfigurationUeReceived = true; | 532 m_connectionReconfigurationUeReceived = true; |
527 } | 533 } |
528 } | 534 } |
529 | 535 |
530 void | 536 void |
531 LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::ChangePdschConfigDe
dicated (uint16_t rnti, uint8_t pa) | 537 LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::ChangePdschConfigDe
dicated (uint16_t rnti, uint8_t pa) |
532 { | 538 { |
| 539 NS_UNUSED (rnti); |
| 540 NS_UNUSED (pa); |
533 NS_LOG_DEBUG ("FFR Algorithm ChangePdschConfigDedicated"); | 541 NS_LOG_DEBUG ("FFR Algorithm ChangePdschConfigDedicated"); |
534 m_changePdschConfigDedicatedTriggered = true; | 542 m_changePdschConfigDedicatedTriggered = true; |
535 } | 543 } |
536 | 544 |
537 void | 545 void |
538 LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::DoRun (void) | 546 LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::DoRun (void) |
539 { | 547 { |
540 Config::Reset (); | 548 Config::Reset (); |
541 Config::SetDefault ("ns3::LteHelper::UseIdealRrc", BooleanValue (m_useIdealRrc
)); | 549 Config::SetDefault ("ns3::LteHelper::UseIdealRrc", BooleanValue (m_useIdealRrc
)); |
542 | 550 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 NS_TEST_ASSERT_MSG_EQ (m_changePdschConfigDedicatedTriggered, true, | 603 NS_TEST_ASSERT_MSG_EQ (m_changePdschConfigDedicatedTriggered, true, |
596 "Ffr have not changed PdschConfigDedicated for UE"); | 604 "Ffr have not changed PdschConfigDedicated for UE"); |
597 NS_TEST_ASSERT_MSG_EQ (m_connectionReconfigurationUeReceived, true, | 605 NS_TEST_ASSERT_MSG_EQ (m_connectionReconfigurationUeReceived, true, |
598 "Ue have not received RrcConnectionReconfiguration"); | 606 "Ue have not received RrcConnectionReconfiguration"); |
599 NS_TEST_ASSERT_MSG_EQ (m_connectionReconfigurationEnbCompleted, true, | 607 NS_TEST_ASSERT_MSG_EQ (m_connectionReconfigurationEnbCompleted, true, |
600 "Enb have not received RrcConnectionReconfigurationComp
leted"); | 608 "Enb have not received RrcConnectionReconfigurationComp
leted"); |
601 | 609 |
602 Simulator::Destroy (); | 610 Simulator::Destroy (); |
603 } | 611 } |
604 | 612 |
LEFT | RIGHT |