org.jcsp.net2
Class StandardNetChannelEndFactory

java.lang.Object
  extended by org.jcsp.net2.StandardNetChannelEndFactory
All Implemented Interfaces:
NetChannelEndFactory

public final class StandardNetChannelEndFactory
extends Object
implements NetChannelEndFactory

A concrete implementation of a NetChannelEndFactory, used to create networked channel ends

Author:
Kevin Chalmers (updated from Quickstone Technologies)
See Also:
NetChannelEndFactory, NetChannel

Constructor Summary
StandardNetChannelEndFactory()
           
 
Method Summary
<T> NetSharedChannelOutput<T>
any2net(NetChannelLocation loc)
          Creates a new NetSharedChannelOutput connected to the input end at the given location
<T> NetSharedChannelOutput<T>
any2net(NetChannelLocation loc, int immunityLevel)
          Creates a new NetSharedChannelOutput connected to the input end at the given location and with the given poison immunity level
<T> NetSharedChannelOutput<T>
any2net(NetChannelLocation loc, int immunityLevel, NetworkMessageFilter.FilterTx 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.
<T> NetSharedChannelOutput<T>
any2net(NetChannelLocation loc, NetworkMessageFilter.FilterTx filter)
          Creates a new NetSharedChannelOutput connected to the input end with the given location, and uses the given filter to encode outgoing messages
<T> NetSharedChannelOutput<T>
any2net(NodeAddress nodeAddr, int vcn)
          Creates a new NetSharedChannelOutput connected to the channel with the given vcn on the given Node
<T> NetSharedChannelOutput<T>
any2net(NodeAddress nodeAddr, int vcn, int immunityLevel)
          Creates a new NetSharedChannelOutput connected to the channel with the given vcn on the given Node which has the given poison immunity
<T> NetSharedChannelOutput<T>
any2net(NodeAddress nodeAddr, int vcn, int immunityLevel, NetworkMessageFilter.FilterTx filter)
          Creates a new NetSharedChannelOutput connected to the channel with the given vcn on the given Node that has the given poison immunity level and uses the given filter to encode outgoing messages
<T> NetSharedChannelOutput<T>
any2net(NodeAddress nodeAddr, int vcn, NetworkMessageFilter.FilterTx filter)
          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
<T> NetSharedChannelOutput<T>
any2net(NodeID nodeID, int vcn)
          Creates a new NetSharedChannelOutput connected to the channel with the given vcn on the given Node
<T> NetSharedChannelOutput<T>
any2net(NodeID nodeID, int vcn, int immunityLevel)
          Creates a new NetSharedChannelOutput connected to the channel with the given vcn on the given Node and the given poison immunity
<T> NetSharedChannelOutput<T>
any2net(NodeID nodeID, int vcn, int immunityLevel, NetworkMessageFilter.FilterTx filter)
          Creates a new NetSharedChannelOutput connected to the channel with the given vcn on the given Node, with the given poison immunity level, which uses the given filter to encode outgoing messages
<T> NetSharedChannelOutput<T>
any2net(NodeID nodeID, int vcn, NetworkMessageFilter.FilterTx filter)
          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
 NetSharedChannelOutput createAny2Net(NetChannelLocation loc)
          Deprecated. Use any2net instead
 NetSharedChannelInput createNet2Any()
          Deprecated. Use net2any instead
 NetAltingChannelInput createNet2One()
          Deprecated. Use net2one instead
 NetChannelOutput createOne2Net(NetChannelLocation loc)
          Deprecated. Use one2net instead
<T> NetSharedChannelInput<T>
net2any()
          Creates a new NetSharedChannelInput
<T> NetSharedChannelInput<T>
net2any(int immunityLevel)
          Creates a new NetSharedChannelInput with the given poison immunity level
<T> NetSharedChannelInput<T>
net2any(int immunityLevel, NetworkMessageFilter.FilterRx filter)
          Creates a new NetSharedChannelInput with the given poison immunity level, which uses the given filter to decode messages
<T> NetSharedChannelInput<T>
net2any(NetworkMessageFilter.FilterRx filter)
          Creates a new NetSharedChannelInput which uses the given filter to decode incoming messages
<T> NetAltingChannelInput<T>
net2one()
          Creates a new NetAltingChannelInput
<T> NetAltingChannelInput<T>
net2one(int immunityLevel)
          Creates a new NetAltingChannelInput with the given immunity level for poison
<T> NetAltingChannelInput<T>
net2one(int immunityLevel, NetworkMessageFilter.FilterRx filter)
          Creates a new NetAltingChannelInput with the given poison immunity level which uses the given filter to decode incoming messages
<T> NetAltingChannelInput<T>
net2one(NetworkMessageFilter.FilterRx filter)
          Creates a new NetAltingChannelInput which uses the given filter to decode incoming messages
<T> NetSharedChannelInput<T>
numberedNet2Any(int index)
          Creates a new NetSharedChannelInput with the given index
<T> NetSharedChannelInput<T>
numberedNet2Any(int index, int immunityLevel)
          Creates a new NetSharedChannelInput with the given index and poison immunity level
<T> NetSharedChannelInput<T>
numberedNet2Any(int index, int immunityLevel, NetworkMessageFilter.FilterRx filter)
          Creates a new NetSharedChannelInput with the given index and poison immunity level, which uses the given filter to decode incoming messages.
<T> NetSharedChannelInput<T>
numberedNet2Any(int index, NetworkMessageFilter.FilterRx filter)
          Creates a new NetSharedChannelInput with the given index that uses the given filter to decode incoming messages
<T> NetAltingChannelInput<T>
numberedNet2One(int index)
          Creates a new NetAltingChannelInput with the given index
<T> NetAltingChannelInput<T>
numberedNet2One(int index, int immunityLevel)
          Creates a new NetAltingChannelInput with the given index and the given poison immunity level
<T> NetAltingChannelInput<T>
numberedNet2One(int index, int immunityLevel, NetworkMessageFilter.FilterRx filter)
          Creates a new NetAltingChannelInput with the given index and given poison immunity, which uses the given filter to decode incoming messages
<T> NetAltingChannelInput<T>
numberedNet2One(int index, NetworkMessageFilter.FilterRx filter)
          Creates a new NetAltingChannelInput with the given index that uses the given filter to decode incoming messages
<T> NetChannelOutput<T>
one2net(NetChannelLocation loc)
          Creates a new NetChannelOutput connected to the input end with the given NetChannelLocation
<T> NetChannelOutput<T>
one2net(NetChannelLocation loc, int immunityLevel)
          Creates a new NetChannelOutput connected to the input end with the given NetChannelLocation, and having the given poison immunity level
<T> NetChannelOutput<T>
one2net(NetChannelLocation loc, int immunityLevel, NetworkMessageFilter.FilterTx filter)
          Creates a new NetChannelOutput connected to the given location with the given poison immunity level, and uses the given filter to encode outgoing messages.
<T> NetChannelOutput<T>
one2net(NetChannelLocation loc, NetworkMessageFilter.FilterTx filter)
          Creates a new NetChannelOutput connected to the input end with the given NetChannelLocation, and uses the given filter to encode outgoing messages
<T> NetChannelOutput<T>
one2net(NodeAddress nodeAddr, int vcn)
          Creates a new NetChannelOutput connected to the channel with the given vcn on the given Node
<T> NetChannelOutput<T>
one2net(NodeAddress nodeAddr, int vcn, int immunityLevel)
          Creates a new NetChannelOutput connected to the channel with the given vcn on the given Node with the given poison immunity
<T> NetChannelOutput<T>
one2net(NodeAddress nodeAddr, int vcn, int immunityLevel, NetworkMessageFilter.FilterTx filter)
          Creates a new NetChannelOutput connected to the channel with the given vcn on the given Node which has the given poison immunity and uses the given filter to encode outgoing messages
<T> NetChannelOutput<T>
one2net(NodeAddress nodeAddr, int vcn, NetworkMessageFilter.FilterTx filter)
          Creates a new NetChannelOutput connected to the channel with the given vcn on the given Node which uses the given filter to encode outgoing messages
<T> NetChannelOutput<T>
one2net(NodeID nodeID, int vcn)
          Creates a new NetChannelOutput connected to the channel with the given vcn on the given Node
<T> NetChannelOutput<T>
one2net(NodeID nodeID, int vcn, int immunityLevel)
          Creates a new NetChannelOutput connected to the channel with the given vcn on the given Node, and with the given poison immunity level
<T> NetChannelOutput<T>
one2net(NodeID nodeID, int vcn, int immunityLevel, NetworkMessageFilter.FilterTx filter)
          Creates a new NetChannelOutput connected to the channel with the given vcn on the given Node, with the given poison immunity level and uses the given filter to encode outgoing messages
<T> NetChannelOutput<T>
one2net(NodeID nodeID, int vcn, NetworkMessageFilter.FilterTx filter)
          Creates a new NetChannelOutput connected to the channel with the given vcn on the given Node, which uses the given filter to encode outgoing messages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardNetChannelEndFactory

public StandardNetChannelEndFactory()
Method Detail

createNet2One

public NetAltingChannelInput createNet2One()
Deprecated. Use net2one instead

Creates a new NetAltingChannelInput

Returns:
A new NetAltingChannelInput

createNet2Any

public NetSharedChannelInput createNet2Any()
Deprecated. Use net2any instead

Creates a new NetSharedChannelInput

Returns:
A new NetSharedChannelInput

createOne2Net

public NetChannelOutput createOne2Net(NetChannelLocation loc)
                               throws JCSPNetworkException
Deprecated. Use one2net instead

Creates a new NetChannelOutput connected to the input channel end with the given location

Parameters:
loc - The location to connect the output end to
Returns:
A new NetChannelOutput connected to the input end at the given location
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

createAny2Net

public NetSharedChannelOutput createAny2Net(NetChannelLocation loc)
                                     throws JCSPNetworkException
Deprecated. Use any2net instead

Creates a new NetSharedChannelOutput connected to the input end at the given location

Parameters:
loc - The location to connect the output end to
Returns:
A new NetSharedChannelOutput connected to the input end at the given location
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

net2one

public <T> NetAltingChannelInput<T> net2one()
Creates a new NetAltingChannelInput

Specified by:
net2one in interface NetChannelEndFactory
Returns:
A new NetAltingChannelInput

net2one

public <T> NetAltingChannelInput<T> net2one(int immunityLevel)
Creates a new NetAltingChannelInput with the given immunity level for poison

Specified by:
net2one in interface NetChannelEndFactory
Parameters:
immunityLevel - The immunity level for poison
Returns:
A new NetAltingChannelInput

net2one

public <T> NetAltingChannelInput<T> net2one(NetworkMessageFilter.FilterRx filter)
Creates a new NetAltingChannelInput which uses the given filter to decode incoming messages

Specified by:
net2one in interface NetChannelEndFactory
Parameters:
filter - The filter used to decode incoming messages
Returns:
A new NetAltingChannelInput

net2one

public <T> NetAltingChannelInput<T> net2one(int immunityLevel,
                                            NetworkMessageFilter.FilterRx filter)
Creates a new NetAltingChannelInput with the given poison immunity level which uses the given filter to decode incoming messages

Specified by:
net2one in interface NetChannelEndFactory
Parameters:
immunityLevel - The immunity level to poison for the created channel
filter - The filter used to decode incoming messages
Returns:
A new NetAltingChannelInput

net2any

public <T> NetSharedChannelInput<T> net2any()
Creates a new NetSharedChannelInput

Specified by:
net2any in interface NetChannelEndFactory
Returns:
A new NetSharedChannelInput

net2any

public <T> NetSharedChannelInput<T> net2any(int immunityLevel)
Creates a new NetSharedChannelInput with the given poison immunity level

Specified by:
net2any in interface NetChannelEndFactory
Parameters:
immunityLevel - The immunity level to poison for this channel
Returns:
A new NetSharedChannelInput

net2any

public <T> NetSharedChannelInput<T> net2any(NetworkMessageFilter.FilterRx filter)
Creates a new NetSharedChannelInput which uses the given filter to decode incoming messages

Specified by:
net2any in interface NetChannelEndFactory
Parameters:
filter - The filter used to decode incoming messages
Returns:
A new NetSharedChannelInput

net2any

public <T> NetSharedChannelInput<T> net2any(int immunityLevel,
                                            NetworkMessageFilter.FilterRx filter)
Creates a new NetSharedChannelInput with the given poison immunity level, which uses the given filter to decode messages

Specified by:
net2any in interface NetChannelEndFactory
Parameters:
immunityLevel - The immunity level to poison for this channel
filter - The filter used to decode incoming messages
Returns:
A new NetSharedChannelInput

numberedNet2One

public <T> NetAltingChannelInput<T> numberedNet2One(int index)
                                         throws IllegalArgumentException
Creates a new NetAltingChannelInput with the given index

Specified by:
numberedNet2One in interface NetChannelEndFactory
Parameters:
index - The index to create the channel with
Returns:
A new NetAltingChannelInput
Throws:
IllegalArgumentException - Thrown if a channel with the given index already exists

numberedNet2One

public <T> NetAltingChannelInput<T> numberedNet2One(int index,
                                                    int immunityLevel)
                                         throws IllegalArgumentException
Creates a new NetAltingChannelInput with the given index and the given poison immunity level

Specified by:
numberedNet2One in interface NetChannelEndFactory
Parameters:
index - The index to create the channel with
immunityLevel - The immunity to poison that the channel has
Returns:
A new NetAltingChannelInput
Throws:
IllegalArgumentException - Thrown if a channel with the given index already exists

numberedNet2One

public <T> NetAltingChannelInput<T> numberedNet2One(int index,
                                                    NetworkMessageFilter.FilterRx filter)
                                         throws IllegalArgumentException
Creates a new NetAltingChannelInput with the given index that uses the given filter to decode incoming messages

Specified by:
numberedNet2One in interface NetChannelEndFactory
Parameters:
index - The index to create the channel with
filter - The filter used to decode incoming messages
Returns:
A new NetAltingChannelInput
Throws:
IllegalArgumentException - Thrown if a channel with the given index already exists

numberedNet2One

public <T> NetAltingChannelInput<T> numberedNet2One(int index,
                                                    int immunityLevel,
                                                    NetworkMessageFilter.FilterRx filter)
                                         throws IllegalArgumentException
Creates a new NetAltingChannelInput with the given index and given poison immunity, which uses the given filter to decode incoming messages

Specified by:
numberedNet2One in interface NetChannelEndFactory
Parameters:
index - The index to create the channel with
immunityLevel - The immunity to poison that the channel has
filter - The filter used to decode incoming messages
Returns:
A new NetAltingChannelInput
Throws:
IllegalArgumentException - Thrown if a channel with the given index already exists

numberedNet2Any

public <T> NetSharedChannelInput<T> numberedNet2Any(int index)
                                         throws IllegalArgumentException
Creates a new NetSharedChannelInput with the given index

Specified by:
numberedNet2Any in interface NetChannelEndFactory
Parameters:
index - The index to create the channel with
Returns:
A new NetSharedChannelInput
Throws:
IllegalArgumentException - Thrown if a channel with the given index already exists

numberedNet2Any

public <T> NetSharedChannelInput<T> numberedNet2Any(int index,
                                                    int immunityLevel)
                                         throws IllegalArgumentException
Creates a new NetSharedChannelInput with the given index and poison immunity level

Specified by:
numberedNet2Any in interface NetChannelEndFactory
Parameters:
index - The index to create the channel with
immunityLevel - The immunity to poison the channel has
Returns:
A new NetSharedChannelInput
Throws:
IllegalArgumentException - Thrown if a channel with the given index already exists

numberedNet2Any

public <T> NetSharedChannelInput<T> numberedNet2Any(int index,
                                                    NetworkMessageFilter.FilterRx filter)
                                         throws IllegalArgumentException
Creates a new NetSharedChannelInput with the given index that uses the given filter to decode incoming messages

Specified by:
numberedNet2Any in interface NetChannelEndFactory
Parameters:
index - The index to create the channel with
filter - The filter used to decode incoming messages
Returns:
A new NetSharedChannelInput
Throws:
IllegalArgumentException - Thrown if a channel with the given index already exists

numberedNet2Any

public <T> NetSharedChannelInput<T> numberedNet2Any(int index,
                                                    int immunityLevel,
                                                    NetworkMessageFilter.FilterRx filter)
                                         throws IllegalArgumentException
Creates a new NetSharedChannelInput with the given index and poison immunity level, which uses the given filter to decode incoming messages.

Specified by:
numberedNet2Any in interface NetChannelEndFactory
Parameters:
index - The index to create the channel with
immunityLevel - The immunity level to poison that the channel has
filter - The filter used to decode incoming messages
Returns:
A new NetSharedChannelInput
Throws:
IllegalArgumentException - Thrown if a channel with the given index already exists.

one2net

public <T> NetChannelOutput<T> one2net(NetChannelLocation loc)
                            throws JCSPNetworkException
Creates a new NetChannelOutput connected to the input end with the given NetChannelLocation

Specified by:
one2net in interface NetChannelEndFactory
Parameters:
loc - The location of the input end of the channel
Returns:
A new NetChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

one2net

public <T> NetChannelOutput<T> one2net(NetChannelLocation loc,
                                       int immunityLevel)
                            throws JCSPNetworkException
Creates a new NetChannelOutput connected to the input end with the given NetChannelLocation, and having the given poison immunity level

Specified by:
one2net in interface NetChannelEndFactory
Parameters:
loc - The location of the input end of the channel
immunityLevel - The immunity to poison that this channel has
Returns:
A new NetChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

one2net

public <T> NetChannelOutput<T> one2net(NetChannelLocation loc,
                                       NetworkMessageFilter.FilterTx filter)
                            throws JCSPNetworkException
Creates a new NetChannelOutput connected to the input end with the given NetChannelLocation, and uses the given filter to encode outgoing messages

Specified by:
one2net in interface NetChannelEndFactory
Parameters:
loc - The location of the input end of the channel
filter - The filter used to encode outgoing messages
Returns:
A new NetChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

one2net

public <T> NetChannelOutput<T> one2net(NetChannelLocation loc,
                                       int immunityLevel,
                                       NetworkMessageFilter.FilterTx filter)
                            throws JCSPNetworkException
Creates a new NetChannelOutput connected to the given location with the given poison immunity level, and uses the given filter to encode outgoing messages.

Specified by:
one2net in interface NetChannelEndFactory
Parameters:
loc - The location of the input end of the channel
immunityLevel - The immunity to poison that this channel has
filter - The filter used to encode outgoing messages
Returns:
A new NetChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

any2net

public <T> NetSharedChannelOutput<T> any2net(NetChannelLocation loc)
                                  throws JCSPNetworkException
Creates a new NetSharedChannelOutput connected to the input end at the given location

Specified by:
any2net in interface NetChannelEndFactory
Parameters:
loc - The location of the input end of the channel
Returns:
A new NetSharedChannelInput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

any2net

public <T> NetSharedChannelOutput<T> any2net(NetChannelLocation loc,
                                             int immunityLevel)
                                  throws JCSPNetworkException
Creates a new NetSharedChannelOutput connected to the input end at the given location and with the given poison immunity level

Specified by:
any2net in interface NetChannelEndFactory
Parameters:
loc - The location of the input end of the channel
immunityLevel - The immunity to poison that the channel has
Returns:
A new NetSharedChannelInput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

any2net

public <T> NetSharedChannelOutput<T> any2net(NetChannelLocation loc,
                                             NetworkMessageFilter.FilterTx filter)
                                  throws JCSPNetworkException
Creates a new NetSharedChannelOutput connected to the input end with the given location, and uses the given filter to encode outgoing messages

Specified by:
any2net in interface NetChannelEndFactory
Parameters:
loc - The location of the input end of the channel
filter - The filter used to encode outgoing messages
Returns:
A new NetSharedChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

any2net

public <T> NetSharedChannelOutput<T> any2net(NetChannelLocation loc,
                                             int immunityLevel,
                                             NetworkMessageFilter.FilterTx filter)
                                  throws JCSPNetworkException
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.

Specified by:
any2net in interface NetChannelEndFactory
Parameters:
loc - The location of the input end of the channel
immunityLevel - The immunity to poison that this channel has
filter - The filter used to encode outgoing messages
Returns:
A new NetSharedChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

one2net

public <T> NetChannelOutput<T> one2net(NodeID nodeID,
                                       int vcn)
                            throws JCSPNetworkException
Creates a new NetChannelOutput connected to the channel with the given vcn on the given Node

Specified by:
one2net in interface NetChannelEndFactory
Parameters:
nodeID - The NodeID of the node that the input channel resides on
vcn - The Virtual Channel Number of the input channel
Returns:
A new NetChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

one2net

public <T> NetChannelOutput<T> one2net(NodeID nodeID,
                                       int vcn,
                                       int immunityLevel)
                            throws JCSPNetworkException
Creates a new NetChannelOutput connected to the channel with the given vcn on the given Node, and with the given poison immunity level

Specified by:
one2net in interface NetChannelEndFactory
Parameters:
nodeID - The NodeID of the Node that the input channel resides on
vcn - The Virtual Channel Number of the input channel
immunityLevel - The immunity to poison of the channel
Returns:
A new NetChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

one2net

public <T> NetChannelOutput<T> one2net(NodeID nodeID,
                                       int vcn,
                                       NetworkMessageFilter.FilterTx filter)
                            throws JCSPNetworkException
Creates a new NetChannelOutput connected to the channel with the given vcn on the given Node, which uses the given filter to encode outgoing messages

Specified by:
one2net in interface NetChannelEndFactory
Parameters:
nodeID - The NodeID of the Node that the input channel resides on
vcn - The Virtual Channel Number of the input channel
filter - The filter to encode outgoing messages
Returns:
A new NetChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong with the underlying architecture

one2net

public <T> NetChannelOutput<T> one2net(NodeID nodeID,
                                       int vcn,
                                       int immunityLevel,
                                       NetworkMessageFilter.FilterTx filter)
                            throws JCSPNetworkException
Creates a new NetChannelOutput connected to the channel with the given vcn on the given Node, with the given poison immunity level and uses the given filter to encode outgoing messages

Specified by:
one2net in interface NetChannelEndFactory
Parameters:
nodeID - The NodeID of the Node that the input channel resides on
vcn - The Virtual Channel Number of the input channel
immunityLevel - The immunity to poison that the channel has
filter - The filter that encodes the outgoing messages
Returns:
A new NetChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong with the underlying architecture

any2net

public <T> NetSharedChannelOutput<T> any2net(NodeID nodeID,
                                             int vcn)
                                  throws JCSPNetworkException
Creates a new NetSharedChannelOutput connected to the channel with the given vcn on the given Node

Specified by:
any2net in interface NetChannelEndFactory
Parameters:
nodeID - The NodeID of the Node to connect to
vcn - The Virtual Channel Number of the input channel
Returns:
A new NetSharedChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

any2net

public <T> NetSharedChannelOutput<T> any2net(NodeID nodeID,
                                             int vcn,
                                             int immunityLevel)
                                  throws JCSPNetworkException
Creates a new NetSharedChannelOutput connected to the channel with the given vcn on the given Node and the given poison immunity

Specified by:
any2net in interface NetChannelEndFactory
Parameters:
nodeID - The NodeID of the Node to connect to
vcn - The Virtual Channel Number of the input channel
immunityLevel - The immunity to poison that the channel has
Returns:
A new NetSharedChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

any2net

public <T> NetSharedChannelOutput<T> any2net(NodeID nodeID,
                                             int vcn,
                                             NetworkMessageFilter.FilterTx filter)
                                  throws JCSPNetworkException
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

Specified by:
any2net in interface NetChannelEndFactory
Parameters:
nodeID - The NodeID of the Node to connect to
vcn - The Virtual Channel Number of the input channel
filter - The filter used to encode the outgoing messages
Returns:
A new NetSharedChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

any2net

public <T> NetSharedChannelOutput<T> any2net(NodeID nodeID,
                                             int vcn,
                                             int immunityLevel,
                                             NetworkMessageFilter.FilterTx filter)
                                  throws JCSPNetworkException
Creates a new NetSharedChannelOutput connected to the channel with the given vcn on the given Node, with the given poison immunity level, which uses the given filter to encode outgoing messages

Specified by:
any2net in interface NetChannelEndFactory
Parameters:
nodeID - The NodeID of the Node to connect to
vcn - The Virtual Channel Number of the input channel
immunityLevel - The immunity to poison that the channel has
filter - The filter used to encode outgoing messages
Returns:
A new NetSharedChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

one2net

public <T> NetChannelOutput<T> one2net(NodeAddress nodeAddr,
                                       int vcn)
                            throws JCSPNetworkException
Creates a new NetChannelOutput connected to the channel with the given vcn on the given Node

Specified by:
one2net in interface NetChannelEndFactory
Parameters:
nodeAddr - The NodeAddress of the Node to connect to
vcn - The Virtual Channel Number of the input channel
Returns:
A new NetChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

one2net

public <T> NetChannelOutput<T> one2net(NodeAddress nodeAddr,
                                       int vcn,
                                       int immunityLevel)
                            throws JCSPNetworkException
Creates a new NetChannelOutput connected to the channel with the given vcn on the given Node with the given poison immunity

Specified by:
one2net in interface NetChannelEndFactory
Parameters:
nodeAddr - The NodeAddress of the Node to connect to
vcn - The Virtual Channel Number of the input channel
immunityLevel - The immunity to poison the channel has
Returns:
A new NetChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

one2net

public <T> NetChannelOutput<T> one2net(NodeAddress nodeAddr,
                                       int vcn,
                                       NetworkMessageFilter.FilterTx filter)
                            throws JCSPNetworkException
Creates a new NetChannelOutput connected to the channel with the given vcn on the given Node which uses the given filter to encode outgoing messages

Specified by:
one2net in interface NetChannelEndFactory
Parameters:
nodeAddr - The NodeAddress of the Node to connect to
vcn - The Virtual Channel Number of the input channel
filter - The filter used to encode outgoing messages
Returns:
A new NetChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

one2net

public <T> NetChannelOutput<T> one2net(NodeAddress nodeAddr,
                                       int vcn,
                                       int immunityLevel,
                                       NetworkMessageFilter.FilterTx filter)
                            throws JCSPNetworkException
Creates a new NetChannelOutput connected to the channel with the given vcn on the given Node which has the given poison immunity and uses the given filter to encode outgoing messages

Specified by:
one2net in interface NetChannelEndFactory
Parameters:
nodeAddr - The NodeAddress of the Node to connect to
vcn - The Virtual Channel Number of the input channel
immunityLevel - The immunity to poison that the channel has
filter - The filter used to encode outgoing messages
Returns:
A new NetChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

any2net

public <T> NetSharedChannelOutput<T> any2net(NodeAddress nodeAddr,
                                             int vcn)
                                  throws JCSPNetworkException
Creates a new NetSharedChannelOutput connected to the channel with the given vcn on the given Node

Specified by:
any2net in interface NetChannelEndFactory
Parameters:
nodeAddr - The NodeAddress of the Node to connect to
vcn - The Virtual Channel Number of the input channel
Returns:
A new NetSharedChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

any2net

public <T> NetSharedChannelOutput<T> any2net(NodeAddress nodeAddr,
                                             int vcn,
                                             int immunityLevel)
                                  throws JCSPNetworkException
Creates a new NetSharedChannelOutput connected to the channel with the given vcn on the given Node which has the given poison immunity

Specified by:
any2net in interface NetChannelEndFactory
Parameters:
nodeAddr - The NodeAddress of the Node to connect to
vcn - The Virtual Channel Number of the input channel
immunityLevel - The immunity to poison that the channel has
Returns:
A new NetSharedChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

any2net

public <T> NetSharedChannelOutput<T> any2net(NodeAddress nodeAddr,
                                             int vcn,
                                             NetworkMessageFilter.FilterTx filter)
                                  throws JCSPNetworkException
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

Specified by:
any2net in interface NetChannelEndFactory
Parameters:
nodeAddr - The NodeAddress of the Node to connect to
vcn - The Virtual Channel Number of the input channel
filter - The immunity to poison that the channel has
Returns:
A new NetSharedChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture

any2net

public <T> NetSharedChannelOutput<T> any2net(NodeAddress nodeAddr,
                                             int vcn,
                                             int immunityLevel,
                                             NetworkMessageFilter.FilterTx filter)
                                  throws JCSPNetworkException
Creates a new NetSharedChannelOutput connected to the channel with the given vcn on the given Node that has the given poison immunity level and uses the given filter to encode outgoing messages

Specified by:
any2net in interface NetChannelEndFactory
Parameters:
nodeAddr - The NodeAddress of the Node to connect to
vcn - The Virtual Channel Number of the input channel
immunityLevel - The immunity to poison that the channel has
filter - The filter used to encode outgoing messages
Returns:
A new NetSharedChannelOutput
Throws:
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture


Copyright © 1996-2012. All Rights Reserved.