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

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

class StationState
extends java.lang.Object

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

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

Field Summary
 int cntPumpsOn
           
 int cntPumpsReady
           
 boolean levelHigh
           
 boolean levelLow
           
 int outputFlow
           
 
Constructor Summary
protected StationState()
          Contructor of the class StationState
 
Method Summary
protected static int boolToInt(boolean b)
          A method that converts boolean to int
protected  void displayState()
          A methods that displays the state of the station (only for debugging purpose)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

levelLow

public boolean levelLow

levelHigh

public boolean levelHigh

cntPumpsOn

public int cntPumpsOn

cntPumpsReady

public int cntPumpsReady

outputFlow

public int outputFlow
Constructor Detail

StationState

protected StationState()
Contructor of the class StationState

Method Detail

boolToInt

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


displayState

protected void displayState()
A methods that displays the state of the station (only for debugging purpose)



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