diff --git a/docs/assets/TCP IP.png b/docs/assets/TCP IP.png deleted file mode 100644 index 93eed8f4..00000000 Binary files a/docs/assets/TCP IP.png and /dev/null differ diff --git a/docs/assets/atm quick start tutorial/0_EmptyWaiting.png b/docs/assets/atm quick start tutorial/0_EmptyWaiting.png deleted file mode 100644 index ada6d7a1..00000000 Binary files a/docs/assets/atm quick start tutorial/0_EmptyWaiting.png and /dev/null differ diff --git a/docs/assets/atm quick start tutorial/1_EjectCard.png b/docs/assets/atm quick start tutorial/1_EjectCard.png deleted file mode 100644 index b939aff7..00000000 Binary files a/docs/assets/atm quick start tutorial/1_EjectCard.png and /dev/null differ diff --git a/docs/assets/atm quick start tutorial/2_InsertCard.png b/docs/assets/atm quick start tutorial/2_InsertCard.png deleted file mode 100644 index 4a868614..00000000 Binary files a/docs/assets/atm quick start tutorial/2_InsertCard.png and /dev/null differ diff --git a/docs/assets/atm quick start tutorial/3_ReturnCard.png b/docs/assets/atm quick start tutorial/3_ReturnCard.png deleted file mode 100644 index cbc76718..00000000 Binary files a/docs/assets/atm quick start tutorial/3_ReturnCard.png and /dev/null differ diff --git a/docs/assets/atm quick start tutorial/4_WrongPin.png b/docs/assets/atm quick start tutorial/4_WrongPin.png deleted file mode 100644 index f9d0f0bd..00000000 Binary files a/docs/assets/atm quick start tutorial/4_WrongPin.png and /dev/null differ diff --git a/docs/assets/atm quick start tutorial/5_RightPin.png b/docs/assets/atm quick start tutorial/5_RightPin.png deleted file mode 100644 index d22d4bb8..00000000 Binary files a/docs/assets/atm quick start tutorial/5_RightPin.png and /dev/null differ diff --git a/docs/assets/atm quick start tutorial/6_CanCheckBalance.png b/docs/assets/atm quick start tutorial/6_CanCheckBalance.png deleted file mode 100644 index b0b68022..00000000 Binary files a/docs/assets/atm quick start tutorial/6_CanCheckBalance.png and /dev/null differ diff --git a/docs/assets/atm quick start tutorial/7_CanDepositMoney.png b/docs/assets/atm quick start tutorial/7_CanDepositMoney.png deleted file mode 100644 index 1c1f3154..00000000 Binary files a/docs/assets/atm quick start tutorial/7_CanDepositMoney.png and /dev/null differ diff --git a/docs/assets/atm quick start tutorial/8_CanWithdrawMoney.png b/docs/assets/atm quick start tutorial/8_CanWithdrawMoney.png deleted file mode 100644 index d22bf283..00000000 Binary files a/docs/assets/atm quick start tutorial/8_CanWithdrawMoney.png and /dev/null differ diff --git a/docs/assets/atm quick start tutorial/ncsu atm diagram.gif b/docs/assets/atm quick start tutorial/ncsu atm diagram.gif deleted file mode 100644 index cd8e6e7d..00000000 Binary files a/docs/assets/atm quick start tutorial/ncsu atm diagram.gif and /dev/null differ diff --git a/docs/assets/bgp.png b/docs/assets/bgp.png deleted file mode 100644 index 8bac81aa..00000000 Binary files a/docs/assets/bgp.png and /dev/null differ diff --git a/docs/assets/compile time claim.png b/docs/assets/compile time claim.png deleted file mode 100644 index 5364724f..00000000 Binary files a/docs/assets/compile time claim.png and /dev/null differ diff --git a/docs/assets/doc light styled.png b/docs/assets/doc light styled.png deleted file mode 100644 index 7bf17bf6..00000000 Binary files a/docs/assets/doc light styled.png and /dev/null differ diff --git a/docs/assets/doc light unstyled.png b/docs/assets/doc light unstyled.png deleted file mode 100644 index 263045b6..00000000 Binary files a/docs/assets/doc light unstyled.png and /dev/null differ diff --git a/docs/assets/eMMC transfer mode.png b/docs/assets/eMMC transfer mode.png deleted file mode 100644 index 50df963e..00000000 Binary files a/docs/assets/eMMC transfer mode.png and /dev/null differ diff --git a/docs/assets/editor.png b/docs/assets/editor.png deleted file mode 100644 index 0d10be68..00000000 Binary files a/docs/assets/editor.png and /dev/null differ diff --git a/docs/assets/http 1.0.png b/docs/assets/http 1.0.png deleted file mode 100644 index 72a1111c..00000000 Binary files a/docs/assets/http 1.0.png and /dev/null differ diff --git a/docs/assets/matter states heat cool.png b/docs/assets/matter states heat cool.png deleted file mode 100644 index da720c61..00000000 Binary files a/docs/assets/matter states heat cool.png and /dev/null differ diff --git a/docs/assets/performance 4.5.1 2015 mac.png b/docs/assets/performance 4.5.1 2015 mac.png deleted file mode 100644 index 7d690ccb..00000000 Binary files a/docs/assets/performance 4.5.1 2015 mac.png and /dev/null differ diff --git a/docs/assets/ryg proceed.png b/docs/assets/ryg proceed.png deleted file mode 100644 index 1e92ac76..00000000 Binary files a/docs/assets/ryg proceed.png and /dev/null differ diff --git a/docs/assets/ryg traffic light console screenshot.png b/docs/assets/ryg traffic light console screenshot.png deleted file mode 100644 index fcd82e98..00000000 Binary files a/docs/assets/ryg traffic light console screenshot.png and /dev/null differ diff --git a/docs/assets/ryg.png b/docs/assets/ryg.png deleted file mode 100644 index fad58c96..00000000 Binary files a/docs/assets/ryg.png and /dev/null differ diff --git a/docs/assets/sip.png b/docs/assets/sip.png deleted file mode 100644 index 0fae4687..00000000 Binary files a/docs/assets/sip.png and /dev/null differ diff --git a/docs/assets/speed claim.png b/docs/assets/speed claim.png deleted file mode 100644 index 8559162f..00000000 Binary files a/docs/assets/speed claim.png and /dev/null differ diff --git a/docs/assets/traffic light quick start tutorial/Off To From RGY.png b/docs/assets/traffic light quick start tutorial/Off To From RGY.png deleted file mode 100644 index 42cc7c8a..00000000 Binary files a/docs/assets/traffic light quick start tutorial/Off To From RGY.png and /dev/null differ diff --git a/docs/assets/traffic light quick start tutorial/Off To RGY.png b/docs/assets/traffic light quick start tutorial/Off To RGY.png deleted file mode 100644 index d6220a55..00000000 Binary files a/docs/assets/traffic light quick start tutorial/Off To RGY.png and /dev/null differ diff --git a/docs/assets/traffic light quick start tutorial/Off To Red.png b/docs/assets/traffic light quick start tutorial/Off To Red.png deleted file mode 100644 index 40911873..00000000 Binary files a/docs/assets/traffic light quick start tutorial/Off To Red.png and /dev/null differ diff --git a/docs/docs/classes/jssm.Machine.html b/docs/docs/classes/jssm.Machine.html index 6b54c3b0..acb2bcb6 100644 --- a/docs/docs/classes/jssm.Machine.html +++ b/docs/docs/classes/jssm.Machine.html @@ -1,4 +1,4 @@ -
Generated using TypeDoc
Optional override for formatting stack traces
Return the direction of an arrow - right
, left
, or both
.
import { arrow_direction } from 'jssm';
arrow_direction('->'); // 'right'
arrow_direction('<~=>'); // 'both'
The arrow to be evaluated
- Return the direction of an arrow - right
, left
, or both
.
import { arrow_left_kind } from 'jssm';
arrow_left_kind('<-'); // 'legal'
arrow_left_kind('<='); // 'main'
arrow_left_kind('<~'); // 'forced'
arrow_left_kind('<->'); // 'legal'
arrow_left_kind('->'); // 'none'
The arrow to be evaluated
- Return the direction of an arrow - right
, left
, or both
.
import { arrow_left_kind } from 'jssm';
arrow_left_kind('->'); // 'legal'
arrow_left_kind('=>'); // 'main'
arrow_left_kind('~>'); // 'forced'
arrow_left_kind('<->'); // 'legal'
arrow_left_kind('<-'); // 'none'
The arrow to be evaluated
-Compile a machine's JSON intermediate representation to a config object. If you're using this (probably don't,) you're probably also using parse to get the IR, and the object constructor @@ -43,7 +43,7 @@
The type of the machine data member; usually omitted
The parse tree to be boiled down into a machine config
-Create a state machine from an implementation string. This is one of the two main paths for working with JSSM, alongside sm.
Use this method when you want to conveniently pull a state machine from a @@ -57,7 +57,7 @@
The FSL code to evaluate
Extra non-code configuration to pass at creation time
-The FSL code to be evaluated and built into a machine config
-This method wraps the parser call that comes from the peg grammar, parse. Generally neither this nor that should be used directly unless you mean to develop plugins or extensions for the machine.
@@ -96,7 +96,7 @@The FSL code to be evaluated
Things to control about the instance
-Create a state machine from a template string. This is one of the two main paths for working with JSSM, alongside from.
Use this method when you want to work directly and conveniently with a @@ -110,7 +110,7 @@
The assembled code
The mechanic for template argument insertion
-An internal method meant to take a series of declarations and fold them into a single multi-faceted declaration, in the process of building a state. Not generally meant for external use.
diff --git a/docs/docs/modules/jssm_constants.html b/docs/docs/modules/jssm_constants.html index 7d3e3702..ec6eebf9 100644 --- a/docs/docs/modules/jssm_constants.html +++ b/docs/docs/modules/jssm_constants.html @@ -1 +1 @@ -Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
A type teaching Typescript the various supported shapes for nodes, mostly inherited from GraphViz
-Generated using TypeDoc
Generated using TypeDoc
Returns the histograph of an array as a Map
. Makes no attempt to cope
with deep equality; will fail for complex contents, as such.
import { histograph } from './jssm';
histograph( [0, 0, 1, 1, 2, 2, 1] ); // Map()
-Predicate for validating an array for uniqueness. Not generally meant for external use.
-Internal method generating names for edges for the hook lookup map. Not meant for external use.
-Creates a Mulberry32 random generator. Used by the randomness test suite.
Sourced from bryc
at StackOverflow: https://stackoverflow.com/a/47593316/763127
Internal method generating names for actions for the hook lookup map. Not meant for external use.
- Returns, for a non-negative integer argument n
, the series [0 .. n]
.
import { seq } from './jssm';
seq(5); // [0, 1, 2, 3, 4]
seq(0); // []
diff --git a/docs/docs/modules/version.html b/docs/docs/modules/version.html
index 6d6c388a..aad351c3 100644
--- a/docs/docs/modules/version.html
+++ b/docs/docs/modules/version.html
@@ -1 +1 @@
-Generated using TypeDoc
Generated using TypeDoc
There isn't actually anything here. You're probably looking for:
- -Less commonly, you might be looking for
- - - - - - \ No newline at end of file diff --git a/docs/typedoc-addon.css b/docs/typedoc-addon.css deleted file mode 100644 index ddb83006..00000000 --- a/docs/typedoc-addon.css +++ /dev/null @@ -1,72 +0,0 @@ - -.tsd-panel-group > h1, -.tsd-panel-group > h2, -.tsd-panel-group > h3 { padding-left: 0; } -.tsd-panel { border-radius: 0.35em; } - -.tsd-panel > .tsd-signatures .tsd-signature.tsd-kind-icon { background-color: #eee; } - -#quicktab td { text-align: right; } -#quicktab td+td { text-align: center; } - -#quicktab th { text-align: right; font-weight: normal; } -#quicktab th+th { text-align: center; } - -pre { border-radius: 0.3em; } - -@media (prefers-color-scheme: light) { - - :root { --color-background: #def; } - - body .tsd-page-title { background-color: #bdf; } - body .tsd-page-toolbar { background-color: #acf; border-bottom-color: #9be; } - body .with-border-bottom { background-color: #acf; border-color: #9be; } - - html body .tsd-panel table td, - html body .tsd-panel table th { border-color: #9be; } - - html body .tsd-panel table tr { background-color: #def; } - html body .tsd-panel table tr:nth-child(even) { background-color: #d0e0f0; } - html body .tsd-panel table tr th { background-color: #bdf; } - - fail { font-style: italic; color: #b00; } - -} - - - -@media (prefers-color-scheme: dark) { - - fail { font-style: italic; color: #f66; } - - html body .tsd-panel table td, - html body .tsd-panel table th { border-color: #335; } - - html body .tsd-panel table tr { background-color: #445; } - html body .tsd-panel table tr:nth-child(even) { background-color: #446; } - html body .tsd-panel table tr th { background-color: #335; } - -} - - - - - -.rot_th_tab { vertical-align: bottom; } -.rot_th_tab th { position: relative; font-weight: normal; } -.rot_th_tab th:first-of-type { height: 7em; vertical-align: bottom; } -.rot_th_tab td:nth-of-type(2), -.rot_th_tab th:nth-of-type(2) { vertical-align: bottom; font-weight: normal; text-align: center; } -.rot_th_tab th+th+th, -.rot_th_tab td+td+td { padding: 6px 4px; min-width: 1.3em; } -.rot { transform-origin: 0 0; transform: rotate(-90deg); display: inline-block; position: absolute; left: 0.25em; bottom: -0.75em; font-weight: 400; } - -html li.pages-entry-depth-0 { padding-left: 15px; } -html li.pages-entry-depth-1 { padding-left: 30px; } -html li.pages-entry-depth-2 { padding-left: 45px; } -html li.pages-entry-depth-3 { padding-left: 60px; } -html li.pages-entry-depth-4 { padding-left: 75px; } -html li.pages-entry-depth-5 { padding-left: 90px; } - -.youtube-embed { position: relative; padding-bottom: 56.25%; /* enforces 16:9 aspect */ } -.youtube-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 1px solid black; } \ No newline at end of file diff --git a/src/ts/tests/kitchen_sink_dragon.maximal.ts b/src/ts/tests/kitchen_sink_dragon.maximal.ts index 85764251..cb9fcae2 100644 --- a/src/ts/tests/kitchen_sink_dragon.maximal.ts +++ b/src/ts/tests/kitchen_sink_dragon.maximal.ts @@ -21,6 +21,13 @@ const sm = jssm.sm; +class AtomArb extends fc.NextArbitrary
- Preparing search index...
- The search index is not available
JSSM, a JavaScript state machine - the FSM for FSLClass Machine<mDT>
Type Parameters
mDT
Hierarchy
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Type Parameters
mDT
Parameters
__namedParameters: JssmGenericConfig<mDT>
Returns Machine<mDT>
Properties
_actions
_any_ action_ hook
_any_ transition_ hook
_arrange_ declaration
_arrange_ end_ declaration
_arrange_ start_ declaration
Optional _data
_dot_ preamble
_edge_ map
_edges
_entry_ hooks
_exit_ hooks
_flow
_forced_ transition_ hook
Optional _fsl_ version
_global_ action_ hooks
_graph_ layout
_has_ basic_ hooks
_has_ entry_ hooks
_has_ exit_ hooks
_has_ global_ action_ hooks
_has_ hooks
_has_ named_ hooks
_has_ post_ basic_ hooks
_has_ post_ entry_ hooks
_has_ post_ exit_ hooks
_has_ post_ global_ action_ hooks
_has_ post_ hooks
_has_ post_ named_ hooks
_has_ post_ transition_ hooks
_has_ transition_ hooks
_history
_history_ length
_hooks
_instance_ name
Optional _machine_ author
Optional _machine_ comment
Optional _machine_ contributor
Optional _machine_ definition
Optional _machine_ language
Optional _machine_ license
Optional _machine_ name
Optional _machine_ version
_main_ transition_ hook
_named_ hooks
_named_ transitions
_post_ any_ action_ hook
_post_ any_ transition_ hook
_post_ entry_ hooks
_post_ exit_ hooks
_post_ forced_ transition_ hook
_post_ global_ action_ hooks
_post_ hooks
_post_ main_ transition_ hook
_post_ named_ hooks
_post_ standard_ transition_ hook
Optional _raw_ state_ declaration
_reverse_ action_ targets
_reverse_ actions
_standard_ transition_ hook
_state
_state_ declarations
_states
_theme
Accessors
history
Get a truncated history of the recent states and data of the machine. Turned off by default; configure with
@@ -7,7 +7,7 @@.from('...', {data: 5})
by length, or set.history_length
at runtime.Notice that the machine's current state,
-e
, is not in the returned list.Returns [string, mDT][]
history_ inclusive
Returns [string, mDT][]
history_ inclusive
Get a truncated history of the recent states and data of the machine, including the current state. Turned off by default; configure with
@@ -19,19 +19,19 @@.from('...', {data: 5})
by length, or set.history_length
at runtime.Notice that the machine's current state,
-e
, is in the returned list.Returns [string, mDT][]
history_ length
Returns [string, mDT][]
history_ length
Find out how long a history this machine is keeping. Defaults to zero. Settable directly.
Returns number
Returns number
Find out how long a history this machine is keeping. Defaults to zero. Settable directly.
Parameters
to: number
Returns void
Methods
_new_ state
Parameters
to: number
Returns void
Methods
_new_ state
Internal method for fabricating states. Not meant for external use.
-Parameters
state_config: JssmGenericState
Returns string
action
Parameters
state_config: JssmGenericState
Returns string
action
Instruct the machine to complete an action.
The action to engage
Optional newData: mDT
The data change to insert during the action
-Returns boolean
actions
Returns boolean
actions
List all actions available from this state. Please note that the order of the actions is not guaranteed.
Parameters
whichState: string = ...
The state whose actions to have listed
-Returns string[]
current_ action_ edge_ for
Parameters
action: string
Returns JssmTransition<mDT>
current_ action_ for
Parameters
action: string
Returns number
data
Returns string[]
current_ action_ edge_ for
Parameters
action: string
Returns JssmTransition<mDT>
current_ action_ for
Parameters
action: string
Returns number
data
Get the current data of a machine.
Returns mDT
dot_ preamble
Returns string
edges_ between
Parameters
from: string
to: string
Returns JssmTransition<mDT>[]
flow
Returns FslDirection
force_ transition
Returns mDT
dot_ preamble
Returns string
edges_ between
Parameters
from: string
to: string
Returns JssmTransition<mDT>[]
flow
Returns FslDirection
force_ transition
Instruct the machine to complete a forced transition (which will reject if called with a normal transition call.)
Optional newData: mDT
The data change to insert during the transition
-Returns boolean
fsl_ version
Returns string
get_ transition_ by_ state_ names
Parameters
from: string
to: string
Returns number
graph_ layout
Returns string
has_ completes
Returns boolean
has_ state
Returns boolean
fsl_ version
Returns string
get_ transition_ by_ state_ names
Parameters
from: string
to: string
Returns number
graph_ layout
Returns string
has_ completes
Returns boolean
has_ state
Check whether the machine knows a given state.
Parameters
whichState: string
The state to be checked for extance
-Returns boolean
has_ terminals
Returns boolean
has_ unenterables
Returns boolean
hook
Parameters
from: string
to: string
handler: HookHandler<mDT>
Returns Machine<mDT>
hook_ action
Parameters
from: string
to: string
action: string
handler: HookHandler<mDT>
Returns Machine<mDT>
hook_ any_ action
Parameters
handler: HookHandler<mDT>
Returns Machine<mDT>
hook_ any_ transition
Parameters
handler: HookHandler<mDT>
Returns Machine<mDT>
hook_ entry
Parameters
to: string
handler: HookHandler<mDT>
Returns Machine<mDT>
hook_ exit
Parameters
from: string
handler: HookHandler<mDT>
Returns Machine<mDT>
hook_ forced_ transition
Parameters
handler: HookHandler<mDT>
Returns Machine<mDT>
hook_ global_ action
Parameters
action: string
handler: HookHandler<mDT>
Returns Machine<mDT>
hook_ main_ transition
Parameters
handler: HookHandler<mDT>
Returns Machine<mDT>
hook_ standard_ transition
Parameters
handler: HookHandler<mDT>
Returns Machine<mDT>
instance_ name
Returns string
is_ complete
Returns boolean
is_ final
Returns boolean
has_ terminals
Returns boolean
has_ unenterables
Returns boolean
hook
Parameters
from: string
to: string
handler: HookHandler<mDT>
Returns Machine<mDT>
hook_ action
Parameters
from: string
to: string
action: string
handler: HookHandler<mDT>
Returns Machine<mDT>
hook_ any_ action
Parameters
handler: HookHandler<mDT>
Returns Machine<mDT>
hook_ any_ transition
Parameters
handler: HookHandler<mDT>
Returns Machine<mDT>
hook_ entry
Parameters
to: string
handler: HookHandler<mDT>
Returns Machine<mDT>
hook_ exit
Parameters
from: string
handler: HookHandler<mDT>
Returns Machine<mDT>
hook_ forced_ transition
Parameters
handler: HookHandler<mDT>
Returns Machine<mDT>
hook_ global_ action
Parameters
action: string
handler: HookHandler<mDT>
Returns Machine<mDT>
hook_ main_ transition
Parameters
handler: HookHandler<mDT>
Returns Machine<mDT>
hook_ standard_ transition
Parameters
handler: HookHandler<mDT>
Returns Machine<mDT>
instance_ name
Returns string
is_ complete
Returns boolean
is_ final
Check whether the current state is final (either has no exits or is marked
complete
.)Returns boolean
is_ terminal
Returns boolean
is_ unenterable
Parameters
whichState: string
Returns boolean
list_ actions
Returns string[]
list_ edges
Returns boolean
is_ terminal
Returns boolean
is_ unenterable
Parameters
whichState: string
Returns boolean
list_ actions
Returns string[]
list_ edges
Lists all edges of a machine.
Returns JssmTransition<mDT>[]
list_ entrances
Returns JssmTransition<mDT>[]
list_ entrances
List all entrances attached to the current state. Please note that the order of the list is not defined.
Parameters
whichState: string = ...
The state whose entrances to have listed
-Returns string[]
list_ exit_ actions
Parameters
whichState: string = ...
Returns string[]
list_ exits
Returns string[]
list_ exit_ actions
Parameters
whichState: string = ...
Returns string[]
list_ exits
List all exits attached to the current state. Please note that the order of the list is not defined.
Parameters
whichState: string = ...
The state whose exits to have listed
-Returns string[]
list_ named_ transitions
Returns Map<string, number>
list_ states_ having_ action
Returns string[]
list_ named_ transitions
Returns Map<string, number>
list_ states_ having_ action
List all states that have a specific action attached. Please note that the order of the states is not guaranteed.
Parameters
whichState: string
The action to be checked for associated states
-Returns string[]
list_ transitions
Returns string[]
list_ transitions
List all transitions attached to the current state, sorted by entrance and exit. The order of each sublist is not defined. A node could appear in both lists.
@@ -103,23 +103,23 @@Parameters
whichState: string = ...
The state whose transitions to have listed
-Returns JssmTransitionList
lookup_ transition_ for
Parameters
from: string
to: string
Returns JssmTransition<mDT>
machine_ author
Returns string[]
machine_ comment
Returns string
machine_ contributor
Returns string[]
machine_ definition
Returns string
machine_ language
Returns string
machine_ license
Returns string
machine_ name
Returns string
machine_ state
Returns JssmMachineInternalState<mDT>
machine_ version
Returns string
post_ hook
Parameters
from: string
to: string
handler: HookHandler<mDT>
Returns Machine<mDT>
post_ hook_ action
Parameters
from: string
to: string
action: string
handler: HookHandler<mDT>
Returns Machine<mDT>
post_ hook_ any_ action
Parameters
handler: HookHandler<mDT>
Returns Machine<mDT>
post_ hook_ any_ transition
Parameters
handler: HookHandler<mDT>
Returns Machine<mDT>
post_ hook_ entry
Parameters
to: string
handler: HookHandler<mDT>
Returns Machine<mDT>
post_ hook_ exit
Parameters
from: string
handler: HookHandler<mDT>
Returns Machine<mDT>
post_ hook_ forced_ transition
Parameters
handler: HookHandler<mDT>
Returns Machine<mDT>
post_ hook_ global_ action
Parameters
action: string
handler: HookHandler<mDT>
Returns Machine<mDT>
post_ hook_ main_ transition
Parameters
handler: HookHandler<mDT>
Returns Machine<mDT>
post_ hook_ standard_ transition
Parameters
handler: HookHandler<mDT>
Returns Machine<mDT>
probabilistic_ histo_ walk
Parameters
n: number
Returns Map<string, number>
probabilistic_ transition
Returns boolean
probabilistic_ walk
Parameters
n: number
Returns string[]
probable_ action_ exits
Parameters
whichState: string = ...
Returns any[]
probable_ exits_ for
Parameters
whichState: string
Returns JssmTransition<mDT>[]
raw_ state_ declarations
Returns <internal>.Object[]
set_ hook
Parameters
HookDesc: HookDescription<mDT>
Returns void
sm
Parameters
template_strings: TemplateStringsArray
Rest ...remainder: any[]
Returns Machine<mDT>
state
Returns JssmTransitionList
lookup_ transition_ for
Parameters
from: string
to: string
Returns JssmTransition<mDT>
machine_ author
Returns string[]
machine_ comment
Returns string
machine_ contributor
Returns string[]
machine_ definition
Returns string
machine_ language
Returns string
machine_ license
Returns string
machine_ name
Returns string
machine_ state
Returns JssmMachineInternalState<mDT>
machine_ version
Returns string
post_ hook
Parameters
from: string
to: string
handler: HookHandler<mDT>
Returns Machine<mDT>
post_ hook_ action
Parameters
from: string
to: string
action: string
handler: HookHandler<mDT>
Returns Machine<mDT>
post_ hook_ any_ action
Parameters
handler: HookHandler<mDT>
Returns Machine<mDT>
post_ hook_ any_ transition
Parameters
handler: HookHandler<mDT>
Returns Machine<mDT>
post_ hook_ entry
Parameters
to: string
handler: HookHandler<mDT>
Returns Machine<mDT>
post_ hook_ exit
Parameters
from: string
handler: HookHandler<mDT>
Returns Machine<mDT>
post_ hook_ forced_ transition
Parameters
handler: HookHandler<mDT>
Returns Machine<mDT>
post_ hook_ global_ action
Parameters
action: string
handler: HookHandler<mDT>
Returns Machine<mDT>
post_ hook_ main_ transition
Parameters
handler: HookHandler<mDT>
Returns Machine<mDT>
post_ hook_ standard_ transition
Parameters
handler: HookHandler<mDT>
Returns Machine<mDT>
probabilistic_ histo_ walk
Parameters
n: number
Returns Map<string, number>
probabilistic_ transition
Returns boolean
probabilistic_ walk
Parameters
n: number
Returns string[]
probable_ action_ exits
Parameters
whichState: string = ...
Returns any[]
probable_ exits_ for
Parameters
whichState: string
Returns JssmTransition<mDT>[]
raw_ state_ declarations
Returns <internal>.Object[]
set_ hook
Parameters
HookDesc: HookDescription<mDT>
Returns void
sm
Parameters
template_strings: TemplateStringsArray
Rest ...remainder: any[]
Returns Machine<mDT>
state
Get the current state of a machine.
Returns string
state_ declaration
Parameters
which: string
Returns JssmStateDeclaration
state_ declarations
Returns Map<string, JssmStateDeclaration>
state_ for
Parameters
whichState: string
Returns JssmGenericState
state_ is_ complete
Parameters
whichState: string
Returns boolean
state_ is_ final
Returns string
state_ declaration
Parameters
which: string
Returns JssmStateDeclaration
state_ declarations
Returns Map<string, JssmStateDeclaration>
state_ for
Parameters
whichState: string
Returns JssmGenericState
state_ is_ complete
Parameters
whichState: string
Returns boolean
state_ is_ final
Check whether a given state is final (either has no exits or is marked
complete
.)Parameters
whichState: string
The name of the state to check for finality
-Returns boolean
state_ is_ terminal
Parameters
whichState: string
Returns boolean
states
Returns boolean
state_ is_ terminal
Parameters
whichState: string
Returns boolean
states
List all the states known by the machine. Please note that the order of these states is not guaranteed.
Returns string[]
theme
Returns FslTheme
transition
Returns string[]
theme
Returns FslTheme
transition
Instruct the machine to complete a transition.
The state to switch to
Optional newData: mDT
The data change to insert during the transition
-Returns boolean
transition_ impl
Parameters
newStateOrAction: string
newData: mDT
wasForced: boolean
wasAction: boolean
Returns boolean
valid_ action
Parameters
action: string
Optional _newData: mDT
Returns boolean
valid_ force_ transition
Parameters
newState: string
Optional _newData: mDT
Returns boolean
valid_ transition
Parameters
newState: string
Optional _newData: mDT
Returns boolean
Generated using TypeDoc