24 #ifndef COM_DAFER45_TBTK_TRANSMISSION_RATE
25 #define COM_DAFER45_TBTK_TRANSMISSION_RATE
33 class TransmissionRate :
public EnergyResolvedProperty<double>{
40 TransmissionRate(
double lowerBound,
double upperBound,
int resolution);
62 TransmissionRate(
const std::string &serialization, Mode mode);
65 TransmissionRate& operator+=(
const TransmissionRate &rhs);
73 TransmissionRate operator+(
const TransmissionRate &rhs)
const;
76 TransmissionRate& operator-=(
const TransmissionRate &rhs);
84 TransmissionRate operator-(
const TransmissionRate &rhs)
const;
92 TransmissionRate& operator*=(
const TransmissionRate &rhs);
100 TransmissionRate
operator*(
const TransmissionRate &rhs)
const;
103 TransmissionRate& operator*=(
const double &rhs);
111 TransmissionRate
operator*(
const double &rhs)
const;
122 const TransmissionRate &rhs
133 TransmissionRate& operator/=(
const TransmissionRate &rhs);
142 TransmissionRate operator/(
const TransmissionRate &rhs)
const;
145 TransmissionRate& operator/=(
const double &rhs);
153 TransmissionRate operator/(
const double &rhs)
const;
156 virtual std::string serialize(Mode mode)
const;
159 inline TransmissionRate& TransmissionRate::operator+=(
160 const TransmissionRate &rhs
167 inline TransmissionRate TransmissionRate::operator+(
168 const TransmissionRate &rhs
170 TransmissionRate transmissionRate = *
this;
172 return transmissionRate += rhs;
175 inline TransmissionRate& TransmissionRate::operator-=(
176 const TransmissionRate &rhs
183 inline TransmissionRate TransmissionRate::operator-(
184 const TransmissionRate &rhs
186 TransmissionRate transmissionRate = *
this;
188 return transmissionRate -= rhs;
191 inline TransmissionRate TransmissionRate::operator*(
192 const TransmissionRate &rhs
194 TransmissionRate transmissionRate = *
this;
196 return transmissionRate *= rhs;
199 inline TransmissionRate& TransmissionRate::operator*=(
const double &rhs){
205 inline TransmissionRate TransmissionRate::operator*(
const double &rhs)
const{
206 TransmissionRate transmissionRate = *
this;
208 return transmissionRate *= rhs;
211 inline TransmissionRate TransmissionRate::operator/(
212 const TransmissionRate &rhs
214 TransmissionRate transmissionRate = *
this;
216 return transmissionRate /= rhs;
219 inline TransmissionRate& TransmissionRate::operator/=(
const double &rhs){
225 inline TransmissionRate TransmissionRate::operator/(
const double &rhs)
const{
226 TransmissionRate transmissionRate = *
this;
228 return transmissionRate /= rhs;