Last active
April 19, 2019 12:58
-
-
Save edgerunner/9cea13bda2224caf6d4a6b9942a5132f to your computer and use it in GitHub Desktop.
Water intake*
This file contains 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
Water intake* | |
level at setpoint -> No intake | |
level above max -> Drain | |
Mix water* | |
Fill both* | |
temperature above setpoint -> Fill cold | |
temperature below setpoint -> Fill hot | |
Fill cold | |
temperature at setpoint -> Fill both | |
Fill hot | |
temperature at setpoint -> Fill both | |
Drain | |
level below max -> No intake | |
No intake | |
level below setpoint -> Water intake | |
This file contains 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