:orphan: .. **************************************************************************** .. CUI .. .. The Advanced Framework for Simulation, Integration, and Modeling (AFSIM) .. .. The use, dissemination or disclosure of data in this file is subject to .. limitation or restriction. See accompanying README and LICENSE for details. .. **************************************************************************** WSF_STATE_MACHINE ----------------- **Derives From:** :model:`WSF_SCRIPT_PROCESSOR` .. model:: processor WSF_STATE_MACHINE .. parsed-literal:: processor :model:`WSF_STATE_MACHINE` :command:`WSF_SCRIPT_PROCESSOR` Commands ... show_state_evaluations_ show_state_transitions_ state_ ** *... state definition ...* end_state # `Script Interface`_ :command:`on_initialize` ... end_on_initialize :command:`on_initialize2` ... end_on_initialize2 :command:`on_update` ... end_on_update :command:`_.script_commands.script_variables` ... end_script_variables :command:`_.script_commands.script` ... end_script .. Other Script Commands ... end_processor Overview ======== WSF_STATE_MACHINE uses the concept of a finite state machine. The user defines a set of transition rules that define the conditions under which a transition can occur from one state to another. The transition rules are defined using the :ref:`WSF scripting language