Package org.jcsp.net2

Class ChannelData

java.lang.Object
org.jcsp.net2.ChannelData

final class ChannelData extends Object
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 Details

    • vcn

      int vcn
      The virtual channel number. A unique number on the Node for identifying a channel.
    • state

      byte state
      The current state of the channel.
    • toChannel

      ChannelOutput toChannel
      The 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 poisonLevel
      Indicates the level of poison that has been placed on the channel, if relevant.
    • immunityLevel

      int immunityLevel
      Indicates the immunity level to poison this channel has
    • fromChannel

      ChannelInput fromChannel
      The 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()