Class One2AnyIntImpl
java.lang.Object
org.jcsp.lang.One2AnyIntImpl
- All Implemented Interfaces:
ChannelInternalsInt, One2AnyChannelInt
- Direct Known Subclasses:
BufferedOne2AnyChannelIntImpl, One2AnyChannelIntImpl, PoisonableBufferedOne2AnyChannelInt, PoisonableOne2AnyChannelIntImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChannelInternalsIntprivate final MutexThe mutex on which readers must synchronize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidendRead()in()Returns the input end of the channel.out()Returns the output end of the channel.intread()booleanbooleanreaderEnable(Alternative alt) booleanvoidreaderPoison(int strength) intvoidwrite(int n) voidwriterPoison(int strength)
-
Field Details
-
channel
-
readMutex
The mutex on which readers must synchronize
-
-
Constructor Details
-
One2AnyIntImpl
One2AnyIntImpl(ChannelInternalsInt _channel)
-
-
Method Details
-
in
Description copied from interface:One2AnyChannelIntReturns the input end of the channel.- Specified by:
inin interfaceOne2AnyChannelInt
-
out
Description copied from interface:One2AnyChannelIntReturns the output end of the channel.- Specified by:
outin interfaceOne2AnyChannelInt
-
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
- 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
-