Planning and Control Systems: A Framework for Analysis