예제 #1
0
        /**
         * Creates a new NetSharedChannelOutput connected to the channel with the given vcn on the given Node and the given
         * poison immunity
         *
         * @param nodeID
         *            The NodeID of the Node to connect to
         * @param vcn
         *            The Virtual Channel Number of the input channel
         * @param immunityLevel
         *            The immunity to poison that the channel has
         * @return A new NetSharedChannelOutput
         * @//throws JCSPNetworkException
         *             Thrown if something goes wrong in the underlying architecture
         */
        public NetSharedChannelOutput any2net(NodeID nodeID, int vcn, int immunityLevel)
        //throws JCSPNetworkException
        {
            NetChannelLocation loc = new NetChannelLocation(nodeID, vcn);

            return(Any2NetChannel.create(loc, immunityLevel, new ObjectNetworkMessageFilter.FilterTX()));
        }
예제 #2
0
        /**
         * Creates a new NetSharedChannelOutput connected to the channel with the given vcn on the given Node which uses the
         * given filter to encode outgoing messages
         *
         * @param nodeAddr
         *            The NodeAddress of the Node to connect to
         * @param vcn
         *            The Virtual Channel Number of the input channel
         * @param filter
         *            The immunity to poison that the channel has
         * @return A new NetSharedChannelOutput
         * @//throws JCSPNetworkException
         *             Thrown if something goes wrong in the underlying architecture
         */
        public NetSharedChannelOutput any2net(NodeAddress nodeAddr, int vcn, NetworkMessageFilter.FilterTx filter)
        //throws JCSPNetworkException
        {
            NodeID             remoteNode = LinkFactory.getLink(nodeAddr).remoteID;
            NetChannelLocation loc        = new NetChannelLocation(remoteNode, vcn);

            return(Any2NetChannel.create(loc, Int32.MaxValue, filter));
        }
예제 #3
0
        /**
         * Creates a new NetSharedChannelOutput connected to the channel with the given vcn on the given Node which has the
         * given poison immunity
         *
         * @param nodeAddr
         *            The NodeAddress of the Node to connect to
         * @param vcn
         *            The Virtual Channel Number of the input channel
         * @param immunityLevel
         *            The immunity to poison that the channel has
         * @return A new NetSharedChannelOutput
         * @//throws JCSPNetworkException
         *             Thrown if something goes wrong in the underlying architecture
         */
        public NetSharedChannelOutput any2net(NodeAddress nodeAddr, int vcn, int immunityLevel)
        //throws JCSPNetworkException
        {
            NodeID             remoteNode = LinkFactory.getLink(nodeAddr).remoteID;
            NetChannelLocation loc        = new NetChannelLocation(remoteNode, vcn);

            return(Any2NetChannel.create(loc, immunityLevel, new ObjectNetworkMessageFilter.FilterTX()));
        }
예제 #4
0
 /**
  * Creates a new NetSharedChannelOutput connected to the input end at the given location
  *
  * @deprecated Use any2net instead
  * @param loc
  *            The location to connect the output end to
  * @return A new NetSharedChannelOutput connected to the input end at the given location
  * @//throws JCSPNetworkException
  *             Thrown if something goes wrong in the underlying architecture
  */
 public NetSharedChannelOutput createAny2Net(NetChannelLocation loc)
 ////throws JCSPNetworkException
 {
     return(Any2NetChannel.create(loc, Int32.MaxValue, new ObjectNetworkMessageFilter.FilterTX()));
 }
예제 #5
0
 /**
  * Creates a new NetSharedChannelOutput connected to the input end with the given location and with the given
  * immunity level, which uses the given filter to encode outgoing messages.
  *
  * @param loc
  *            The location of the input end of the channel
  * @param immunityLevel
  *            The immunity to poison that this channel has
  * @param filter
  *            The filter used to encode outgoing messages
  * @return A new NetSharedChannelOutput
  * @//throws JCSPNetworkException
  *             Thrown if something goes wrong in the underlying architecture
  */
 public NetSharedChannelOutput any2net(NetChannelLocation loc, int immunityLevel,
                                       NetworkMessageFilter.FilterTx filter)
 //throws JCSPNetworkException
 {
     return(Any2NetChannel.create(loc, immunityLevel, filter));
 }
예제 #6
0
 /**
  * Creates a new NetSharedChannelOutput connected to the input end with the given location, and uses the given
  * filter to encode outgoing messages
  *
  * @param loc
  *            The location of the input end of the channel
  * @param filter
  *            The filter used to encode outgoing messages
  * @return A new NetSharedChannelOutput
  * @//throws JCSPNetworkException
  *             Thrown if something goes wrong in the underlying architecture
  */
 public NetSharedChannelOutput any2net(NetChannelLocation loc, NetworkMessageFilter.FilterTx filter)
 //throws JCSPNetworkException
 {
     return(Any2NetChannel.create(loc, Int32.MaxValue, filter));
 }