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 ChannelInternalsInt
channel
private java.lang.Object
writeMonitor
-
Constructor Summary
Constructors Constructor Description Any2OneIntImpl(ChannelInternalsInt _channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endRead()
AltingChannelInputInt
in()
Returns the input end of the channel.SharedChannelOutputInt
out()
Returns the output end of the channel.int
read()
boolean
readerDisable()
boolean
readerEnable(Alternative alt)
boolean
readerPending()
void
readerPoison(int strength)
int
startRead()
void
write(int n)
void
writerPoison(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:
endRead
in interfaceChannelInternalsInt
-
read
public int read()
- Specified by:
read
in interfaceChannelInternalsInt
-
readerDisable
public boolean readerDisable()
- Specified by:
readerDisable
in interfaceChannelInternalsInt
-
readerEnable
public boolean readerEnable(Alternative alt)
- 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
public AltingChannelInputInt in()
Description copied from interface:Any2OneChannelInt
Returns the input end of the channel.- Specified by:
in
in interfaceAny2OneChannelInt
-
out
public SharedChannelOutputInt out()
Description copied from interface:Any2OneChannelInt
Returns the output end of the channel.- Specified by:
out
in interfaceAny2OneChannelInt
-
-