Object- oriented framework for generic adaptive control