cz.zcu.fav.kiv.jsimcasestudies.watersystem.application
Class SourceState

java.lang.Object
  |
  +--cz.zcu.fav.kiv.jsimcasestudies.watersystem.application.SourceState

class SourceState
extends java.lang.Object

An encapsulation of a water source consistent state. This code needn`t be changed when passing to the production version.

Version:
1.0 from 2004-03-20
Author:
Cesar ALLAIN, Jarda KACER, St. RACEK

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

levelLow

public 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


levelHigh

public boolean levelHigh

pumpIsOn

public boolean pumpIsOn
Constructor Detail

SourceState

protected SourceState()
Constructor

Method Detail

boolToInt

protected static int boolToInt(boolean b)
A method that converts boolean to the integer

Parameters:
b - boolean value

displayState

protected void displayState()
Displays the state of the source - only for debugging



Copyright © 2000-2004 University of West Bohemia, FAV-KIV. All Rights Reserved. Build date 20040510