Package org.jcsp.lang
Class Any2OneIntImpl
- java.lang.Object
-
- org.jcsp.lang.Any2OneIntImpl
-
- All Implemented Interfaces:
Any2OneChannelInt,ChannelInternalsInt
- Direct Known Subclasses:
Any2OneChannelIntImpl,BufferedAny2OneChannelIntImpl,PoisonableAny2OneChannelIntImpl,PoisonableBufferedAny2OneChannelInt
class Any2OneIntImpl extends java.lang.Object implements ChannelInternalsInt, Any2OneChannelInt
-
-
Field Summary
Fields Modifier and Type Field Description private ChannelInternalsIntchannelprivate java.lang.ObjectwriteMonitor
-
Constructor Summary
Constructors Constructor Description Any2OneIntImpl(ChannelInternalsInt _channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendRead()AltingChannelInputIntin()Returns the input end of the channel.SharedChannelOutputIntout()Returns the output end of the channel.intread()booleanreaderDisable()booleanreaderEnable(Alternative alt)booleanreaderPending()voidreaderPoison(int strength)intstartRead()voidwrite(int n)voidwriterPoison(int strength)
-
-
-
Field Detail
-
channel
private ChannelInternalsInt channel
-
writeMonitor
private final java.lang.Object writeMonitor
-
-
Constructor Detail
-
Any2OneIntImpl
Any2OneIntImpl(ChannelInternalsInt _channel)
-
-
Method Detail
-
endRead
public void endRead()
- Specified by:
endReadin interfaceChannelInternalsInt
-
read
public int read()
- Specified by:
readin interfaceChannelInternalsInt
-
readerDisable
public boolean readerDisable()
- Specified by:
readerDisablein interfaceChannelInternalsInt
-
readerEnable
public boolean readerEnable(Alternative alt)
- Specified by:
readerEnablein interfaceChannelInternalsInt
-
readerPending
public boolean readerPending()
- Specified by:
readerPendingin interfaceChannelInternalsInt
-
readerPoison
public void readerPoison(int strength)
- Specified by:
readerPoisonin interfaceChannelInternalsInt
-
startRead
public int startRead()
- Specified by:
startReadin interfaceChannelInternalsInt
-
write
public void write(int n)
- Specified by:
writein interfaceChannelInternalsInt
-
writerPoison
public void writerPoison(int strength)
- Specified by:
writerPoisonin interfaceChannelInternalsInt
-
in
public AltingChannelInputInt in()
Description copied from interface:Any2OneChannelIntReturns the input end of the channel.- Specified by:
inin interfaceAny2OneChannelInt
-
out
public SharedChannelOutputInt out()
Description copied from interface:Any2OneChannelIntReturns the output end of the channel.- Specified by:
outin interfaceAny2OneChannelInt
-
-