The primary role of attention is in the control of action. A model of attention is presented. The model takes the entire Norman & Shallice's theory into account and mainly concentrates on the interactions between contention scheduling and supervisory attentional system. An AI agent is imported as an implemental approach for the model. Simulations are chosen based on different cases to demonstrate how the model reacts to random interruptions while executing a routine action.