Supervisory Controller for Task Assignment and Resourse Dispatching in Mobile Wireless Sensor Networks