/** * Creates a new NetChannelOutput connected to the input channel end with the given location * * @deprecated Use one2net instead * @param loc * The location to connect the output end to * @return A new NetChannelOutput connected to the input end at the given location * @//throws JCSPNetworkException * Thrown if something goes wrong in the underlying architecture */ public NetChannelOutput createOne2Net(NetChannelLocation loc) ////throws JCSPNetworkException { return(One2NetChannel.create(loc, Int32.MaxValue, new ObjectNetworkMessageFilter.FilterTX())); }
/** * 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)); }
/** * 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)); }
/** * Creates a new NetChannelOutput connected to the input end with the given NetChannelLocation, and having the given * poison immunity level * * @param loc * The location of the input end of the channel * @param immunityLevel * The immunity to poison that this channel has * @return A new NetChannelOutput * @//throws JCSPNetworkException * Thrown if something goes wrong in the underlying architecture */ public NetChannelOutput one2net(NetChannelLocation loc, int immunityLevel) //throws JCSPNetworkException { return(One2NetChannel.create(loc, immunityLevel, new ObjectNetworkMessageFilter.FilterTX())); }