Simulation of Mobile Applications in Open Environments