|
CSP for Java (JCSP) 1.1-rc2 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jcsp.lang.ChannelOutputWrapper
public class ChannelOutputWrapper
Defines a wrapper to go around a channel output end. This wrapper allows a channel end to be given away without any risk of the user of that end casting it to a channel input because they cannot gain access to the actual channel end.
| Constructor Summary | |
|---|---|
ChannelOutputWrapper(ChannelOutput out)
Creates a new wrapper for the given channel end. |
|
| Method Summary | |
|---|---|
void |
poison(int strength)
|
void |
write(Object o)
Writes a value to the channel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChannelOutputWrapper(ChannelOutput out)
out - the existing channel end.| Method Detail |
|---|
public void write(Object o)
write in interface ChannelOutputo - the value to write.ChannelOutputpublic void poison(int strength)
poison in interface Poisonable
|
CSP for Java (JCSP) 1.1-rc2 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||