|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface shared between the control program and the model of its environment. Once defined (together with other abstract interfaces), the control program and the environment model can be developed in parallel without having any knowledge about each other. The interface defines methods that the real control program will use in order to communicate with its environment. The model of environment must provide its own implementation of these methods that (may) affect or reflect the model's data.
Method Summary | |
InterruptControllerInterface |
getInterruptControllerAddress()
Returns the reference to the interrupt controller object. |
int |
readOutputFlow()
Reads the Output Flow register of the main water tank. |
boolean |
readPump(int sourceNo)
Reads the Pump IS On flag of a water source. |
boolean |
readSourceLevelHigh(int sourceNo)
Reads the Source Level High flag of a water source. |
boolean |
readSourceLevelLow(int sourceNo)
Reads the Source Level Low flag of a water source. |
boolean |
readWaterStationLevelHigh()
Reads the Source Level High flag of the main water tank. |
boolean |
readWaterStationLevelLow()
Reads the Source Level Low flag of the main water tank. |
boolean |
setPump(int sourceNo,
boolean newState)
Sets the Pump Is On flag of a water source. |
Method Detail |
public boolean readSourceLevelLow(int sourceNo)
sourceNo
- Number of the source whose flag has to be read.
public boolean readSourceLevelHigh(int sourceNo)
sourceNo
- Number of the source whose flag has to be read.
public boolean readPump(int sourceNo)
sourceNo
- Number of the source whose flag has to be read.
public boolean setPump(int sourceNo, boolean newState)
sourceNo
- Number of the source whose flag has to be set.
public boolean readWaterStationLevelLow()
public boolean readWaterStationLevelHigh()
public int readOutputFlow()
public InterruptControllerInterface getInterruptControllerAddress()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |