Modeling Distributed Applications For Manet Patient