|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cz.zcu.fav.kiv.jsimcasestudies.watersystem.application.SourceState
An encapsulation of a water source consistent state. This code needn`t be changed when passing to the production version.
Field Summary | |
boolean |
levelHigh
|
boolean |
levelLow
The state of the source levelLow the low level of the source levelHigh the high level of the source pumIsOn pum is working |
boolean |
pumpIsOn
|
Constructor Summary | |
protected |
SourceState()
Constructor |
Method Summary | |
protected static int |
boolToInt(boolean b)
A method that converts boolean to the integer |
protected void |
displayState()
Displays the state of the source - only for debugging |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public boolean levelLow
public boolean levelHigh
public boolean pumpIsOn
Constructor Detail |
protected SourceState()
Method Detail |
protected static int boolToInt(boolean b)
b
- boolean valueprotected void displayState()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |