Resource Oriented Computing for Adaptive Systems