Text this: Multifactor task allocation problem in wireless sensor and actuator networks