# Finite State Machines and Modal Models in Ptolemy II

### Edward A. Lee

###
EECS Department

University of California, Berkeley

Technical Report No. UCB/EECS-2009-151

November 1, 2009

### http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-151.pdf

This report describes the usage and semantics of finite-state machines (FSMs) and modal models in Ptolemy II. FSMs are actors whose behavior is described using a finite set of states and transitions between the states. The transitions between the states are enabled by guards, which are boolean-valued expressions that can reference inputs to the actor and parameters in scope. The transitions can produce outputs and can update the value of parameters in scope. Modal models extend FSMs by allowing states to have refinements, which are hierarchical Ptolemy II models. The refinements may themselves be FSMs, modal models, or any composite actor containing a director compatible with the domain in which the modal model is being used. This report describes the operational semantics, the practical usage, and the semantics of time in modal models.

BibTeX citation:

@techreport{Lee:EECS-2009-151, Author = {Lee, Edward A.}, Title = {Finite State Machines and Modal Models in Ptolemy II}, Institution = {EECS Department, University of California, Berkeley}, Year = {2009}, Month = {Nov}, URL = {http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-151.html}, Number = {UCB/EECS-2009-151}, Abstract = {This report describes the usage and semantics of finite-state machines (FSMs) and modal models in Ptolemy II. FSMs are actors whose behavior is described using a finite set of states and transitions between the states. The transitions between the states are enabled by guards, which are boolean-valued expressions that can reference inputs to the actor and parameters in scope. The transitions can produce outputs and can update the value of parameters in scope. Modal models extend FSMs by allowing states to have refinements, which are hierarchical Ptolemy II models. The refinements may themselves be FSMs, modal models, or any composite actor containing a director compatible with the domain in which the modal model is being used. This report describes the operational semantics, the practical usage, and the semantics of time in modal models.} }

EndNote citation:

%0 Report %A Lee, Edward A. %T Finite State Machines and Modal Models in Ptolemy II %I EECS Department, University of California, Berkeley %D 2009 %8 November 1 %@ UCB/EECS-2009-151 %U http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-151.html %F Lee:EECS-2009-151