From df20f5f5e82cd4650221088ff8a6d07eb8ee027b Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Thu, 9 Mar 2023 07:25:08 -0800 Subject: [PATCH] doc: Fix errors found by codespell and aspell --- CHANGES.md | 4 ++-- src/click/model/ipv4-click-routing.cc | 2 +- src/core/model/int64x64-cairo.h | 2 +- src/fd-net-device/examples/realtime-fd2fd-onoff.cc | 2 +- src/internet/model/global-route-manager-impl.cc | 2 +- src/lte/doc/source/lte-design.rst | 4 ++-- src/lte/doc/source/lte-user.rst | 2 +- src/lte/examples/lena-x2-handover.cc | 4 ++-- src/lte/test/lte-test-rlc-am-e2e.cc | 2 +- src/spectrum/doc/spectrum.rst | 2 +- src/spectrum/model/spectrum-converter.h | 2 +- src/spectrum/model/three-gpp-channel-model.cc | 2 +- 12 files changed, 15 insertions(+), 15 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index c1b5f3f14..dfaa50ff7 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -38,7 +38,7 @@ Changes from ns-3.37 to ns-3.38 * (core) Now test-runner exits if no TestSuite is specified. * (lr-wpan) Adds the possibility to modify the Rx sensitivity in **LrWpanPhy**. * (lr-wpan) `LrWpanHelper::CreateAssociatedPan` replace `LrWpanHelper::AssociateToPan` and is able to create an associated PAN of the devices with both short addresses (16-bits) and extended addresses (EUI-64 bits). -* (antenna, spectrum) `ComplexVector` definition has changed. Its API is implemented in `MatrixArray`. Some functions such as `push_back` and `resize` are not supported any more. On the other hand, the size inicialization through constructor and access operator[] are maintained. Instead of `size ()` users can call `GetSize()`. +* (antenna, spectrum) `ComplexVector` definition has changed. Its API is implemented in `MatrixArray`. Some functions such as `push_back` and `resize` are not supported any more. On the other hand, the size initialization through constructor and access operator[] are maintained. Instead of `size ()` users can call `GetSize()`. ### Changes to build system @@ -450,7 +450,7 @@ Changes from ns-3.29 to ns-3.30 * A new buffer has been introduced in the LteEnbRrc class. This buffer will be used by a target eNB during handover to buffer the packets coming from a source eNB on X2 interface. The target eNB will buffer this data until it receives RRC Connection Reconfiguration Complete from a UE. * The default qdisc installed on single-queue devices (such as PointToPoint, Csma and Simple) is now `FqCoDel` (instead of PfifoFast). On multi-queue devices (such as Wifi), the default root qdisc is now `Mq` with as many FqCoDel child qdiscs as the number of device queues. The new defaults are motivated by the willingness to align with the behavior of major Linux distributions and by the need to preserve the effectiveness of Wifi EDCA Functions in differentiating Access Categories (see issue #35). * LTE RLC TM mode does not report anymore the layer-to-layer delay, as it misses (by standard) an header to which attach the timestamp tag. Users can switch to the PDCP layer delay measurements, which must be the same. -* Token Bank Fair Queue Scheduler (`ns3::FdTbfqFfMacScheduler`) will not anymore schedule a UE, which does not have any RBG left after removng the RBG from its allocation map if the computed TB size is greater than the "budget" computed in the scheduler. +* Token Bank Fair Queue Scheduler (`ns3::FdTbfqFfMacScheduler`) will not anymore schedule a UE, which does not have any RBG left after removing the RBG from its allocation map if the computed TB size is greater than the "budget" computed in the scheduler. * LTE module now supports the **Radio Link Failure (RLF)** functionality. This implementation introduced following key behavioral changes: * The UE RRC state will not remain in `CONNECTED_NORMALLY` state if the DL control channel SINR is below a set threshold. * The LTE RRC protocol APIs of UE i.e., LteUeRrcProtocolIdeal, LteUeRrcProtocolReal have been extended to send an ideal (i.e., using SAPs instead to transmitting over the air) UE context remove request to the eNB. Similarly, the eNB RRC protocol APIs, i.e, LteEnbRrcProtocolIdeal and LteEnbRrcProtocolReal have been extended to receive this ideal UE context remove request. diff --git a/src/click/model/ipv4-click-routing.cc b/src/click/model/ipv4-click-routing.cc index 6daebea5b..8480c4b04 100644 --- a/src/click/model/ipv4-click-routing.cc +++ b/src/click/model/ipv4-click-routing.cc @@ -818,7 +818,7 @@ simclick_sim_command(simclick_node_t* simnode, int cmd, ...) // Try to fill the buffer with up to size bytes. // If this is not enough space, write the required buffer size into // the size variable and return an error code. - // Otherwise return the bytes actually writte into the buffer in size. + // Otherwise return the bytes actually written into the buffer in size. // Append key/value pair, separated by \0. std::map defines = clickInstance->GetDefines(); diff --git a/src/core/model/int64x64-cairo.h b/src/core/model/int64x64-cairo.h index 3e1eee324..e90d4d120 100644 --- a/src/core/model/int64x64-cairo.h +++ b/src/core/model/int64x64-cairo.h @@ -296,7 +296,7 @@ class int64x64_t /** * Compute the inverse of an integer value. * - * Ordinary division by an integer would be limited to 64 bits of precsion. + * Ordinary division by an integer would be limited to 64 bits of precision. * Instead, we multiply by the 128-bit inverse of the divisor. * This function computes the inverse to 128-bit precision. * MulByInvert() then completes the division. diff --git a/src/fd-net-device/examples/realtime-fd2fd-onoff.cc b/src/fd-net-device/examples/realtime-fd2fd-onoff.cc index 785dc6e4e..19f3fa64e 100644 --- a/src/fd-net-device/examples/realtime-fd2fd-onoff.cc +++ b/src/fd-net-device/examples/realtime-fd2fd-onoff.cc @@ -28,7 +28,7 @@ // | fd-net-device |--------------| fd-net-device | // +----------------+ +----------------+ // -// This example is aimed at meassuring the thoughput of the FdNetDevice +// This example is aimed at measuring the thoughput of the FdNetDevice // in a pure simulation. For this purpose two FdNetDevices, attached to // different nodes but in a same simulation, are connected using a socket pair. // TCP traffic is sent at a saturating data rate. Then the thoughput can diff --git a/src/internet/model/global-route-manager-impl.cc b/src/internet/model/global-route-manager-impl.cc index ac4f48368..48c2815ec 100644 --- a/src/internet/model/global-route-manager-impl.cc +++ b/src/internet/model/global-route-manager-impl.cc @@ -1137,7 +1137,7 @@ GlobalRouteManagerImpl::SPFNexthopCalculation(SPFVertex* v, // Above, when we were considering the root node, we calculated the next hop // address and outgoing interface required to get off of the root network. // At this point, we are further away from the root network along one of the - // (shortest) paths. So the next hop and outoing interface remain the same + // (shortest) paths. So the next hop and outgoing interface remain the same // (are inherited). // w->InheritAllRootExitDirections(v); diff --git a/src/lte/doc/source/lte-design.rst b/src/lte/doc/source/lte-design.rst index 0bf4e0ad9..f363a18f1 100644 --- a/src/lte/doc/source/lte-design.rst +++ b/src/lte/doc/source/lte-design.rst @@ -1037,7 +1037,7 @@ In detail, the index :math:`\widehat{i}_{k}(t)` to which RBG :math:`k` is assign \widehat{i}_{k}(t) = \underset{j=1,...,N}{\operatorname{argmax}} \left( \frac{ R_{j}(k,t) }{ T_\mathrm{j}(t) } \right) -where :math:`T_{j}(t)` is the past througput performance perceived by the +where :math:`T_{j}(t)` is the past throughput performance perceived by the user :math:`j`. According to the above scheduling algorithm, a user can be allocated to different RBGs, which can be either adjacent or not, depending on the current @@ -4252,7 +4252,7 @@ Distributed Fractional Frequency Reuse This Distributed Fractional Frequency Reuse Algorithm was presented in [DKimura2012]_. It automatically optimizes cell-edge sub-bands by focusing on user distribution (in particular, receive-power distribution). This algorithm adaptively selects RBs for cell-edge sub-band on -basis of coordination information from adjecent cells and notifies the base stations of the +basis of coordination information from adjacent cells and notifies the base stations of the adjacent cells, which RBs it selected to use in edge sub-band. The base station of each cell uses the received information and the following equation to compute cell-edge-band metric :math:`A_{k}` for each RB. diff --git a/src/lte/doc/source/lte-user.rst b/src/lte/doc/source/lte-user.rst index 05e7ee7d7..d2cdc6856 100644 --- a/src/lte/doc/source/lte-user.rst +++ b/src/lte/doc/source/lte-user.rst @@ -1945,7 +1945,7 @@ EPC scenarios. With Distributed Fractional Frequency Reuse Algorithm, eNb uses entire cell bandwidth and there can be two sub-bands: center sub-band and edge sub-band . Within these sub-bands UEs can be served with different power level. Algorithm adaptively selects RBs for cell-edge sub-band on basis of -coordination information (i.e. RNTP) from adjecent cells and notifies the base stations of the adjacent cells, +coordination information (i.e. RNTP) from adjacent cells and notifies the base stations of the adjacent cells, which RBs it selected to use in edge sub-band. If there are no UE classified as edge UE in cell, eNB will not use any RBs as edge sub-band. diff --git a/src/lte/examples/lena-x2-handover.cc b/src/lte/examples/lena-x2-handover.cc index 8a2c26f2f..723b43d83 100644 --- a/src/lte/examples/lena-x2-handover.cc +++ b/src/lte/examples/lena-x2-handover.cc @@ -31,7 +31,7 @@ using namespace ns3; NS_LOG_COMPONENT_DEFINE("LenaX2HandoverExample"); /** - * UE Connection established noticication. + * UE Connection established notification. * * \param context The context. * \param imsi The IMSI of the connected terminal. @@ -82,7 +82,7 @@ NotifyHandoverEndOkUe(std::string context, uint64_t imsi, uint16_t cellid, uint1 } /** - * eNB Connection established noticication. + * eNB Connection established notification. * * \param context The context. * \param imsi The IMSI of the connected terminal. diff --git a/src/lte/test/lte-test-rlc-am-e2e.cc b/src/lte/test/lte-test-rlc-am-e2e.cc index 191e5b419..ba328864c 100644 --- a/src/lte/test/lte-test-rlc-am-e2e.cc +++ b/src/lte/test/lte-test-rlc-am-e2e.cc @@ -270,7 +270,7 @@ LteRlcAmE2eTestCase::DoRun() // retransmitted is much lower. This effect can be best noteed // at very high loss rates, and can be adjusted by timers and // params. - // 2) throuhgput is not meaningful, you need to evaluate the time + // 2) throughput is not meaningful, you need to evaluate the time // it takes for all PDUs to be (re)transmitted successfully, // i.e., how long it takes for the TX and reTX queues to deplete. diff --git a/src/spectrum/doc/spectrum.rst b/src/spectrum/doc/spectrum.rst index 1f8775881..ef5124800 100644 --- a/src/spectrum/doc/spectrum.rst +++ b/src/spectrum/doc/spectrum.rst @@ -177,7 +177,7 @@ of the available implementations: interference model (implemented in ``SpectrumInterference``) together with an error model based on Shannon capacity (described in [Baldo2009Spectrum]_ and implemented in ``SpectrumErrorModel``. This PHY - uses the ``GenericPhy`` interface. Its addditional custom signal + uses the ``GenericPhy`` interface. Its additional custom signal parameters are defined in ``HalfDuplexIdealPhySignalParameters``. * ``WifiSpectrumValueHelper`` is an helper object that makes it easy diff --git a/src/spectrum/model/spectrum-converter.h b/src/spectrum/model/spectrum-converter.h index 08149fb12..d271fe718 100644 --- a/src/spectrum/model/spectrum-converter.h +++ b/src/spectrum/model/spectrum-converter.h @@ -44,7 +44,7 @@ class SpectrumConverter : public SimpleRefCount /** * Create a SpectrumConverter class that will be able to convert ValueVsFreq * instances defined over one SpectrumModel to corresponding ValueVsFreq - * instances defined over a diffent SpectrumModel + * instances defined over a different SpectrumModel * * @param fromSpectrumModel the SpectrumModel to convert from * @param toSpectrumModel the SpectrumModel to convert to diff --git a/src/spectrum/model/three-gpp-channel-model.cc b/src/spectrum/model/three-gpp-channel-model.cc index 72954bf93..4e16af20a 100644 --- a/src/spectrum/model/three-gpp-channel-model.cc +++ b/src/spectrum/model/three-gpp-channel-model.cc @@ -1046,7 +1046,7 @@ ThreeGppChannelModel::GetThreeGppTable(Ptr channelCondit } else { - NS_FATAL_ERROR("unkonw scenarios"); + NS_FATAL_ERROR("unknown scenarios"); } return table3gpp;