ACM SIGPLAN Notices · 2011 · 13 citations · 16 references
ComputingComputer ScienceCompilersFormal MethodsProgramming LanguagesFinite-state MachinesModel CheckingObject-oriented ProgrammingProgramming Language DesignSoftware DesignAbstract State MachinesModelingReuseState Machine DesignState MachinesState ModelsState Transition LogicTransition Systems
Objects model the world, and state is fundamental to a faithful modeling. Engineers use state machines to understand and reason about state transitions, but programming languages provide little support for building software based on state abstractions. We propose Plaid, a language in which objects are modeled not just in terms of classes, but in terms of changing abstract states. Each state may have its own representation, as well as methods that may transition the object into a new state. A formal model precisely defines the semantics of core Plaid constructs such as state transition and trait-like state composition. We evaluate Plaid through a series of examples taken from the Plaid compiler and the standard libraries of Smalltalk and Java. These examples show how Plaid can more closely model state-based designs, enhancing understandability, enhancing dynamic error checking, and providing reuse benefits.
16
Statecharts: a visual formalism for complex systems
David Harel · Science of Computer Programming · 1987 · 6.7K citations
David Ungar, Randall B. Smith · 1987 · 909 citations
Sté́phane Ducasse, Oscar Nierstrasz, Nathanael Schärli et al. · ACM Transactions on Programming Languages and Systems · 2006 · 275 citations · Full text