Capability-based Planning and Scheduling for Adaptable