State Variables & Functions

MiceOnABeam permits variables and functions to be declared within the scope of a state, such that they are only accessible from within that state, and within all it's contained substates, and so on down to the leaf states of the nested state hierarchy. This increases design modularization and helps to abstract out lower-level implementation details.