import { LoadedMachineConfiguration } from "../../src/types"; import { StateMachine } from "../../src/state-machines/state-machine"; export class VR_EXIT_STATE_MACHINE extends StateMachine { constructor(options: LoadedMachineConfiguration) { const { context } = options; super([ { "context": { "errorCounter": 0, ...context }, "id": "VR_EXIT", "initial": "ready", "states": { "DOUBT": { "exit": [], "meta": { "CA": { "utterance": "ARE_YOU_SURE" } }, "on": { "AFFIRMATIVE": "GOODBYE", "NEGATIVE": "KEEP", "SILENT": "IDLE", "STRESSED": "GOODBYE", "TIRED": "GOODBYE" }, "type": "" }, "DOUBT2": { "exit": [], "meta": { "CA": { "utterance": "NOW_OR_LATER" } }, "on": { "AFFIRMATIVE": "DOUBT", "NEGATIVE": "KEEP", "SILENT": "IDLE" }, "type": "" }, "GOODBYE": { "exit": [], "meta": { "CA": { "utterance": "GOODBYE" }, "VR": [ { "name": "task_completed" }, { "name": "quit_my_life" } ] }, "on": { "INSTANT": "end" }, "type": "" }, "IDLE": { "exit": [], "meta": {}, "on": { "ASK_WHEN": "DOUBT2", "STRESSED": "DOUBT", "TIRED": "DOUBT" }, "type": "" }, "KEEP": { "exit": [], "meta": { "CA": { "utterance": "KEEP_GOING" } }, "on": { "INSTANT": "IDLE" }, "type": "" }, "end": { "exit": [], "meta": { "VR": [ { "name": "task_completed" } ] }, "on": { "INSTANT": "end" }, "type": "final" }, "ready": { "exit": [], "meta": {}, "on": { "READY": "IDLE" }, "type": "" } } }, { actions: {}, guards: {} } ]); } }