Package org.jcsp.net
Class NetChannelInputProcess
- java.lang.Object
-
- org.jcsp.net.NetChannelInputProcess
-
-
Field Summary
Fields Modifier and Type Field Description private ChannelMessage.Ack
ackA
private ChannelMessage.Ack
ackB
private Alternative
alt
private ChannelID
channelID
Our channel ID.private long
channelIndex
Our channel index.private AltingChannelInput
fromNetIn
The channel we use for recieving from the demuxes.private SharedChannelOutput
fromNetOut
private java.lang.String
name
The name of this channel.private RejectableChannel
out
The channel used for output.private boolean
sendAckA
private Any2OneChannel
stopChannel
-
Constructor Summary
Constructors Constructor Description NetChannelInputProcess(java.lang.String label, RejectableChannel out)
Constructor which takes a label to assign to the channel's VCN and aChannelOutput
object on which to output any data received from over the network.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
breakChannel()
(package private) long
getChannelIndex()
private java.lang.Object
readFromNetChannel()
Reads a message from the network communications channel.void
run()
Handle this link.
-
-
-
Field Detail
-
channelIndex
private long channelIndex
Our channel index.
-
channelID
private ChannelID channelID
Our channel ID.
-
name
private java.lang.String name
The name of this channel.
-
fromNetIn
private AltingChannelInput fromNetIn
The channel we use for recieving from the demuxes.
-
fromNetOut
private SharedChannelOutput fromNetOut
-
out
private RejectableChannel out
The channel used for output.
-
stopChannel
private Any2OneChannel stopChannel
-
alt
private Alternative alt
-
ackA
private transient ChannelMessage.Ack ackA
-
ackB
private transient ChannelMessage.Ack ackB
-
sendAckA
private transient boolean sendAckA
-
-
Constructor Detail
-
NetChannelInputProcess
NetChannelInputProcess(java.lang.String label, RejectableChannel out)
Constructor which takes a label to assign to the channel's VCN and aChannelOutput
object on which to output any data received from over the network.- Parameters:
label
- the label to assign to the VCN. If this isnull
then no label will be assigned.out
- theChannelOutput object on which to forward any data received from over the network.
-
-
Method Detail
-
breakChannel
void breakChannel()
-
getChannelIndex
long getChannelIndex()
-
readFromNetChannel
private java.lang.Object readFromNetChannel()
Reads a message from the network communications channel. Acknowledges and ignores LinkLost messages.- Returns:
- The first Message read from the network.
-
-