|
|||||||||||
| 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.model.InterruptController
Simple data model of HW interrupt controller device with a given number of interrupt levels. Control program binds its service routine by calling bindInterrupt(). Environment model side issues interrupt by calling setInterrupt(); Nested service of interrupts is not assumed, i.e. interrupt level has not here a meaning of interrupt priority.
| Field Summary | |
(package private) InterruptEntryInterface[] |
iEVector
|
(package private) boolean[] |
iMaskVector
|
int |
nLevels
|
| Constructor Summary | |
InterruptController(int nLevels,
boolean iniMask)
constructor |
|
| Method Summary | |
void |
bindInterrupt(int level,
InterruptEntryInterface ie)
Binds the address of an interrupt service routine to a level of interrupt. |
void |
maskInterrupt(int level,
boolean maskValue)
Set a value of the mask. |
void |
setInterrupt(int level)
Issues the interrupt. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int nLevels
InterruptEntryInterface[] iEVector
boolean[] iMaskVector
| Constructor Detail |
public InterruptController(int nLevels,
boolean iniMask)
nLevels - Number of interrupt levelsiniMask - Initial setting of the mask| Method Detail |
public void bindInterrupt(int level,
InterruptEntryInterface ie)
bindInterrupt in interface InterruptControllerInterfacelevel - Interrupt levelie - Interrupt entry (service routine)
public void maskInterrupt(int level,
boolean maskValue)
maskInterrupt in interface InterruptControllerInterfacelevel - Interrupt levelmaskValue - New value of the maskpublic void setInterrupt(int level)
level - Interrupt level
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||