|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
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)
Deprecated. Creates a new wrapper for the given channel end. |
Method Summary | |
---|---|
void |
poison(int strength)
Deprecated. This injects poison into the channel. |
void |
write(Object o)
Deprecated. 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 ChannelOutput
o
- the value to write.ChannelOutput
public void poison(int strength)
Poisonable
poison
in interface Poisonable
strength
- the strength of the poison (must be >= 0).
|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |