PrevTopNext

Example: A Decision Table

Logic for a monitored light switch with sensors for natural light and the state of the light bulb's filament

Decision table for a light switch
y n - - daylight.isBright()
y n y - switch.isOn()
y n n - bulb.isLit()
- x - - switch.setOn(true);
x - - - switch.setOn(false);
- - x - bulb.alarm();


PrevTopNext