Package org.jcsp.net2

Class ChannelData


  • final class ChannelData
    extends java.lang.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:
    NetChannelInput, NetChannelOutput
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) ChannelInput fromChannel
      The other end of the toChannel.
      (package private) int immunityLevel
      Indicates the immunity level to poison this channel has
      (package private) int poisonLevel
      Indicates the level of poison that has been placed on the channel, if relevant.
      (package private) byte state
      The current state of the channel.
      (package private) ChannelOutput toChannel
      The channel output used to connect to the network channel object.
      (package private) int vcn
      The virtual channel number.
    • Constructor Summary

      Constructors 
      Constructor Description
      ChannelData()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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 Detail

      • ChannelData

        ChannelData()