Package org.jcsp.net2
Class ChannelData
java.lang.Object
org.jcsp.net2.ChannelData
A class that is used to keep track of the state of a network channel. For a description of networked channels, see
the relevant documentation.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) ChannelInput
The other end of the toChannel.(package private) int
Indicates the immunity level to poison this channel has(package private) int
Indicates the level of poison that has been placed on the channel, if relevant.(package private) byte
The current state of the channel.(package private) ChannelOutput
The channel output used to connect to the network channel object.(package private) int
The virtual channel number. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
vcn
int vcnThe virtual channel number. A unique number on the Node for identifying a channel. -
state
byte stateThe current state of the channel. -
toChannel
ChannelOutput toChannelThe channel output used to connect to the network channel object. For a networked input end this is used to communicate input messages from connected output ends. For output channels this is usually used for acknowledgement, but may also be used for passing link lost and poison messages. -
poisonLevel
int poisonLevelIndicates the level of poison that has been placed on the channel, if relevant. -
immunityLevel
int immunityLevelIndicates the immunity level to poison this channel has -
fromChannel
ChannelInput fromChannelThe other end of the toChannel. This will be set whenever a channel is used in a mobile manner. Any received messages when the channel is moved are written to the normal channel, and they can then be accessed via this end.
-
-
Constructor Details
-
ChannelData
ChannelData()
-