You don’t need to use handleMessage, you can use the method used to compute the BER to actualize the status, only of you need to change the status at fixed time interval you could need to use an event
--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
Some like this
double MyModel::calculateReceivedPower(double pSend, double carrierFrequency, double distance)
{
double waveLength = SPEED_OF_LIGHT / carrierFrequency;
double rx_power = freeSpace(Gt, Gr, L, pSend, waveLength, distance, pathLossAlpha);
simtime_t time = simTime();
return myFunc(rx_power,time);
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.