Software designers and programmers often know at design time, information that could improve the operational aspects of program execution, perhaps even prevent certain kinds of errors such as transient exceptions. However, passing such information through the software construction process and among distributed components at runtime requires changes to the functional aspects of the program, and is hence, tedious to design, develop, and maintain.; State-based operational execution is an approach to dynamically controlling and modifying a software's runtime execution. Emotions are used as a metaphor to represent the mechanism to integrate information (assertions or hints) from the programmer, the history of the software execution, and the environment of the software. Emotions act like levers to determine and control the optimal operational flow of execution. Similar to the effect on humans, emotions are influenced by various hints and propositions, that result in a differential execution of the software. The differential execution is referred to as adverbial execution.; We introduce the design of a prototype that implements the state-based operational execution - emotion system. Using the prototype, we demonstrate the effects and benefits of adding state-based operational execution to different applications. We describe the methods of communication and control between the emotion system and the application, and the integration process that determines and performs the adverbial execution.
展开▼