cz.zcu.fav.kiv.jsimcasestudies.watersystem.model
Class StationHardwareData

java.lang.Object
  |
  +--cz.zcu.fav.kiv.jsimcasestudies.watersystem.model.StationHardwareData

class StationHardwareData
extends java.lang.Object

An encapsulation of hardware data maintained by sensors of the main water station tank, i.e. the data model of sensors.

Version:
1.1 from 2004-03-24
Author:
Cesar ALLAIN, Jarda KACER

Field Summary
private  int outputFlow
           
private  boolean stationLevelHigh
           
private  boolean stationLevelLow
           
 
Constructor Summary
protected StationHardwareData()
           
 
Method Summary
protected  void addOutputFlow(int outputFlowChange)
           
protected static int boolToInt(boolean b)
          A method that converts from boolean to int
protected  void displayState()
          A methods that displays the state of the station - for debugging purpose
protected  int getOutputFlow()
           
protected  boolean getStationLevelHigh()
           
protected  boolean getStationLevelLow()
           
protected  void setOutputFlow(int newOutputFlow)
           
protected  void setStationLevelHigh(boolean newStationLevelHigh)
           
protected  void setStationLevelLow(boolean newStationLevelLow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stationLevelLow

private boolean stationLevelLow

stationLevelHigh

private boolean stationLevelHigh

outputFlow

private int outputFlow
Constructor Detail

StationHardwareData

protected StationHardwareData()
Method Detail

getStationLevelLow

protected boolean getStationLevelLow()

setStationLevelLow

protected void setStationLevelLow(boolean newStationLevelLow)

getStationLevelHigh

protected boolean getStationLevelHigh()

setStationLevelHigh

protected void setStationLevelHigh(boolean newStationLevelHigh)

getOutputFlow

protected int getOutputFlow()

setOutputFlow

protected void setOutputFlow(int newOutputFlow)

addOutputFlow

protected void addOutputFlow(int outputFlowChange)

boolToInt

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


displayState

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



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