src/spectrum/model/waveform-generator.h
changeset 7142 89a701fec3a1
parent 7045 d13fa06886ce
child 7241 0a7a16b599e8
equal deleted inserted replaced
7141:072fb225b714 7142:89a701fec3a1
    57   void SetMobility (Ptr<Object> m);
    57   void SetMobility (Ptr<Object> m);
    58   void SetDevice (Ptr<Object> d);
    58   void SetDevice (Ptr<Object> d);
    59   Ptr<Object> GetMobility ();
    59   Ptr<Object> GetMobility ();
    60   Ptr<Object> GetDevice ();
    60   Ptr<Object> GetDevice ();
    61   Ptr<const SpectrumModel> GetRxSpectrumModel () const;
    61   Ptr<const SpectrumModel> GetRxSpectrumModel () const;
    62   void StartRx (Ptr<PacketBurst> p, Ptr <const SpectrumValue> rxPsd, SpectrumType st, Time duration); 
    62   void StartRx (Ptr<PacketBurst> p, Ptr <const SpectrumValue> rxPsd, SpectrumType st, Time duration);
    63 
    63 
    64 
    64 
    65   /**
    65   /**
    66    * Set the Power Spectral Density used for outgoing waveforms
    66    * Set the Power Spectral Density used for outgoing waveforms
    67    *
    67    *
    86    * @param period
    86    * @param period
    87    */
    87    */
    88   void SetPeriod (Time period);
    88   void SetPeriod (Time period);
    89 
    89 
    90 
    90 
    91   /** 
    91   /**
    92    * 
    92    *
    93    * @return the value of the period according to which the WaveformGenerator switches
    93    * @return the value of the period according to which the WaveformGenerator switches
    94    * on and off
    94    * on and off
    95    */
    95    */
    96   Time GetPeriod () const;
    96   Time GetPeriod () const;
    97   
       
    98 
    97 
    99   /** 
    98 
   100    * 
    99   /**
       
   100    *
   101    * @param value the value of the duty cycle
   101    * @param value the value of the duty cycle
   102    */
   102    */
   103   void SetDutyCycle (double value);
   103   void SetDutyCycle (double value);
   104 
   104 
   105   /** 
   105   /**
   106    *
   106    *
   107    * @return the value of the duty cycle
   107    * @return the value of the duty cycle
   108    */
   108    */
   109   double GetDutyCycle () const;
   109   double GetDutyCycle () const;
   110 
   110 
   123    */
   123    */
   124   virtual void Stop ();
   124   virtual void Stop ();
   125 
   125 
   126 
   126 
   127 private:
   127 private:
   128 
       
   129   virtual void DoDispose (void);
   128   virtual void DoDispose (void);
   130 
   129 
   131   Ptr<Object> m_mobility;
   130   Ptr<Object> m_mobility;
   132   Ptr<Object> m_netDevice;
   131   Ptr<Object> m_netDevice;
   133   Ptr<SpectrumChannel> m_channel;
   132   Ptr<SpectrumChannel> m_channel;