Last active
October 26, 2018 13:15
-
-
Save ncthbrt/66f3897a84e2cee2991923beae55c0a1 to your computer and use it in GitHub Desktop.
DeviceTracking
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DeviceTracking | |
NotOnItinerary* | |
setItinerary -> OnItinerary | |
updateLocation -> NotOnItinerary | |
OnItinerary | |
clearItinerary -> NotOnItinerary | |
setItinerary -> OnItinerary | |
OnTime* | |
arrived at final destination -> NotOnItinerary | |
irrecoverably late -> FailedItinerary | |
Start?* | |
at next station -> Waiting | |
walk to next station -> Walking | |
Alighting? | |
at next station -> Waiting | |
walk to next station -> Walking | |
Walking | |
arrived at station -> Waiting | |
InTransit | |
OnRoute* | |
arrived at station -> Alighting? | |
caught wrong bus -> OffRoute | |
OffRoute | |
reroute -> OnItinerary | |
was just detour -> OnRoute | |
Waiting | |
board -> InTransit | |
catch next trip -> Waiting | |
FailedItinerary | |
reroute -> OnItinerary |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function render(model){ | |
let current_state_name = model.active_states[0].name; | |
return $("h1", | |
{style: {color: "darkBlue"}}, | |
`The current state is: ${current_state_name}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment