Implementing Adaptation and Reconfiguration Strategies in Heterogeneous WSN