0.0.1 ā€¢ Published 2 years ago

rxjs-lab v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

How to run:

  1. Install Node.js (I used v19.x)
  2. npm install
  3. in one terminal npx tsx --outdir target watch src/main.ts
  4. in another run node target/main.js

TODO

  • Mating results in recoverable state, unsuccesful -> true (propagation to parents later? -> Mick has an idea for this)
  • If no socket is detected, do we see the rest belonging to the cycle or to a special 'recover from failed docking' part?

Example output

the program should emit a docking started event when entering the A state. when going from A to B to C a docking completed event should be sent, otherwise any docking that was started should be aborted.

rxjs-lab on ī‚  master [?] is šŸ“¦ v1.0.0 via īœ˜ v19.0.0 
āÆ node target/main.js 
Querying state...
Received state "B"}...
Transitioned from "LOST" to "LOST" because of symbol "B".
Querying state...
Received state "C"}...
Transitioned from "LOST" to "LOST" because of symbol "C".
Querying state...
Received state "C"}...
Transitioned from "LOST" to "LOST" because of symbol "C".
Querying state...
Received state "C"}...
Transitioned from "LOST" to "LOST" because of symbol "C".
Querying state...
Received state "A"}...
Transitioned from "LOST" to "A" because of symbol "A".
Executing action {"kind":1,"docking_cycle_uuid":"5d4e9118-daad-4a1b-827d-2880517ef513"}...
Querying state...
Received state "B"}...
Transitioned from "A" to "AB" because of symbol "B".
Querying state...
Received state "A"}...
Transitioned from "AB" to "A" because of symbol "A".
Executing action {"kind":3,"docking_cycle_uuid":"5d4e9118-daad-4a1b-827d-2880517ef513"}...
Executing action {"kind":1,"docking_cycle_uuid":"4f04299c-ae8b-4771-bb50-5e19f6ac0aeb"}...
Querying state...
Received state "C"}...
Transitioned from "A" to "LOST" because of symbol "C".
Executing action {"kind":3,"docking_cycle_uuid":"4f04299c-ae8b-4771-bb50-5e19f6ac0aeb"}...
Querying state...
Received state "C"}...
Transitioned from "LOST" to "LOST" because of symbol "C".
Querying state...
Received state "A"}...
Transitioned from "LOST" to "A" because of symbol "A".
Executing action {"kind":1,"docking_cycle_uuid":"ea0e8966-ec16-4150-8f03-ba2a22ae551a"}...
Querying state...
Received state "B"}...
Transitioned from "A" to "AB" because of symbol "B".
Querying state...
Received state "B"}...
Transitioned from "AB" to "LOST" because of symbol "B".
Executing action {"kind":3,"docking_cycle_uuid":"ea0e8966-ec16-4150-8f03-ba2a22ae551a"}...
0.0.1

2 years ago