EventCJ: A Context-Oriented Programming Language With Declarative Event-Based Context Transition

Date Added: Mar 2011
Format: PDF

This paper proposes EventCJ, a Context-Oriented Programming (COP) language that can modularly control layer activation based on user-defined events. In addition to defining context-specific behaviors by using existing COP constructs, the EventCJ programmer declares events to specify when and on which instance layer switching should happen, and layer transition rules to specify which layers should be activated/ deactivated upon events. These constructs enable controlling layer activation on a per-instance basis, separately from a base program.