We show how finite-state machines can standardize the protocol used by a component object to notify other interested objects of its state changes, resulting in a more effective use of static types to constrain both parties, and a more efficient dissemination of information. The enhanced component specification is called a logical observable entity, or LOE. We address two key issues in effectively applying such a strategy: how to extend subtyping to consider the state machines, and how to ensure some kind of compliance between the state-machine specification and its implementation. This leads to an unusual subtyping predicate for LOEs on the one hand, and a prototype code generation strategy on the other.
CITATION STYLE
Rossie, J. G. (1998). Logical Observable Entities. SIGPLAN Notices (ACM Special Interest Group on Programming Languages), 33(10), 154–165. https://doi.org/10.1145/286942.286954
Mendeley helps you to discover research relevant for your work.