import { LoadedMachineConfiguration } from "../../src/types"; import { StateMachine } from "../../src/state-machines/state-machine"; export class VR_LEARN_CA_NAME_STATE_MACHINE extends StateMachine { constructor(options: LoadedMachineConfiguration) { const { context } = options; super([ { "context": { "errorCounter": 0, ...context }, "id": "VR_LEARN_CA_NAME", "initial": "ready", "states": { "REPEAT_NAME": { "exit": [], "meta": { "CA": { "utterance": "REPEAT_NAME_NEW" } }, "on": { "*": "REPEAT_NAME_ERROR", "CA_NAME": "TUTORIAL_POSITIVE_REINFORCEMENT", "INSTANT": "REPEAT_NAME" }, "type": "" }, "REPEAT_NAME_ERROR": { "exit": [], "meta": { "CA": { "utterance": "REPEAT_NAME_WRONG" } }, "on": { "*": "TUTORIAL_NEGATIVE_REINFORCEMENT", "CA_NAME": "TUTORIAL_POSITIVE_REINFORCEMENT", "INSTANT": "REPEAT_NAME_ERROR" }, "type": "" }, "TEACH_NAME": { "exit": [], "meta": { "CA": { "utterance": "TEACH_NAME_CA" } }, "on": { "INSTANT": "REPEAT_NAME" }, "type": "" }, "TUTORIAL_NEGATIVE_REINFORCEMENT": { "exit": [], "meta": { "CA": { "utterance": "TUTORIAL_NEGATIVE_FEEDBACK" }, "VR": [ { "name": "task_completed" } ] }, "on": { "INSTANT": "end" }, "type": "" }, "TUTORIAL_POSITIVE_REINFORCEMENT": { "exit": [], "meta": { "CA": { "utterance": "TUTORIAL_POSITIVE_REINFORCEMENT" }, "VR": [ { "name": "task_completed" } ] }, "on": { "INSTANT": "end" }, "type": "" }, "end": { "exit": [], "meta": { "VR": [ { "name": "task_completed" } ] }, "on": { "INSTANT": "end" }, "type": "final" }, "ready": { "exit": [], "meta": {}, "on": { "READY": "TEACH_NAME" }, "type": "" } } }, { actions: {}, guards: {} } ]); } }