469Wireless Sensor Network Simulations Using Castalia
This method reacts when it receives a control message coming from the MAC layer. By default,
Castalia passes any MAC control message to the application layer, but it is possible to redene the
method to handle them in the network layer.
• void handleRadioControlMessage(cMessage *)
handleRadioControlMessage reacts to a control message coming from the Radio. For example,
the Radio might send a carrier sense interrupt (which the MAC has forwarded). By default, Castalia
passes any MAC control message to the application layer, but it is possible to redene the method
to handle them in the network layer.
17.2.2.2 Predened Method
Predened methods are called by protocol modules to perform common ...