An Agent Model for Collaborative Ubiquitous-Computing Environments