Wireless sensor networks (WSNs) are increasingly used in many aspects of our daily life. However, the performance is limited due to the extremely constrained power source in sensor nodes. Therefore, it is very important to find an efficient approach to predict the power consumption of WSNs in an accurate manner. Modular Quantitative Analysis (MOQA) is a new high level language used to obtain th...