Towards context-oriented self-adaptation in resource-constrained cyberphysical systems