Package org.jcsp.lang
Class Any2AnyIntImpl
java.lang.Object
org.jcsp.lang.Any2AnyIntImpl
- All Implemented Interfaces:
Any2AnyChannelInt,ChannelInternalsInt
- Direct Known Subclasses:
Any2AnyChannelIntImpl,BufferedAny2AnyChannelIntImpl,PoisonableAny2AnyChannelIntImpl,PoisonableBufferedAny2AnyChannelInt
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChannelInternalsIntprivate final MutexThe mutex on which readers must synchronizeprivate final Object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidendRead()in()Returns the input channel end.out()Returns the output channel end.intread()booleanbooleanreaderEnable(Alternative alt) booleanvoidreaderPoison(int strength) intvoidwrite(int n) voidwriterPoison(int strength)
-
Field Details
-
channel
-
readMutex
The mutex on which readers must synchronize -
writeMonitor
-
-
Constructor Details
-
Any2AnyIntImpl
Any2AnyIntImpl(ChannelInternalsInt _channel)
-
-
Method Details
-
in
Description copied from interface:Any2AnyChannelIntReturns the input channel end.- Specified by:
inin interfaceAny2AnyChannelInt
-
out
Description copied from interface:Any2AnyChannelIntReturns the output channel end.- Specified by:
outin interfaceAny2AnyChannelInt
-
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
-