A framework for modelling the user interaction with a complex system