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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
endRead()
in()
Returns the input end of the channel.out()
Returns the output end of the channel.int
read()
boolean
boolean
readerEnable
(Alternative alt) boolean
void
readerPoison
(int strength) int
void
write
(int n) void
writerPoison
(int strength)
-
Field Details
-
channel
-
writeMonitor
-
-
Constructor Details
-
Any2OneIntImpl
Any2OneIntImpl(ChannelInternalsInt _channel)
-
-
Method Details
-
endRead
public void endRead()- Specified by:
endRead
in interfaceChannelInternalsInt
-
read
public int read()- Specified by:
read
in interfaceChannelInternalsInt
-
readerDisable
public boolean readerDisable()- Specified by:
readerDisable
in interfaceChannelInternalsInt
-
readerEnable
- Specified by:
readerEnable
in interfaceChannelInternalsInt
-
readerPending
public boolean readerPending()- Specified by:
readerPending
in interfaceChannelInternalsInt
-
readerPoison
public void readerPoison(int strength) - Specified by:
readerPoison
in interfaceChannelInternalsInt
-
startRead
public int startRead()- Specified by:
startRead
in interfaceChannelInternalsInt
-
write
public void write(int n) - Specified by:
write
in interfaceChannelInternalsInt
-
writerPoison
public void writerPoison(int strength) - Specified by:
writerPoison
in interfaceChannelInternalsInt
-
in
Description copied from interface:Any2OneChannelInt
Returns the input end of the channel.- Specified by:
in
in interfaceAny2OneChannelInt
-
out
Description copied from interface:Any2OneChannelInt
Returns the output end of the channel.- Specified by:
out
in interfaceAny2OneChannelInt
-