|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcsp.nxt.lang.Guard
public abstract class Guard
This is the super-class for all Alternative events selectable by a process.
Alternative. Its methods have
only package visibility within org.jcsp.nxt.lang and are of no concern to
users of this package. Currently, JCSP supports channel inputs as guards.
Note: for those familiar with the occam multiprocessing language, classes implementing Guard correspond to process guards for use within ALT constructs.
AltingChannelInputInt,
Alternative| Constructor Summary | |
|---|---|
Guard()
|
|
| Method Summary | |
|---|---|
(package private) abstract boolean |
disable()
Disables the guard for selection. |
(package private) abstract boolean |
enable(Alternative alt)
Returns true if the event is ready. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Guard()
| Method Detail |
|---|
abstract boolean enable(Alternative alt)
Note: this method should only be called by the Alternative class
alt - the Alternative class that is controlling the selection
abstract boolean disable()
Note: this method should only be called by the Alternative class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||