org.jcsp.net2.tcpip
Class TCPIPNodeFactory

java.lang.Object
  extended by org.jcsp.net2.NodeFactory
      extended by org.jcsp.net2.tcpip.TCPIPNodeFactory

Deprecated. This method of Node initialisation should no longer be used. See Node for more information

public final class TCPIPNodeFactory
extends NodeFactory

Used to initialise a Node. This is kept for backward compatibility. See Node for more information.

Author:
Kevin Chalmers
See Also:
Node, NodeFactory

Field Summary
 
Fields inherited from class org.jcsp.net2.NodeFactory
cnsAddress
 
Constructor Summary
TCPIPNodeFactory(String serverIP)
          Deprecated. Creates a new TCPIPNodeFactory
TCPIPNodeFactory(TCPIPNodeAddress addr)
          Deprecated. Creates a new TCPIPNodeFactory
 
Method Summary
protected  NodeAddress initNode(Node node)
          Deprecated. Initialises the Node, connecting to the CNS / BNS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TCPIPNodeFactory

public TCPIPNodeFactory(TCPIPNodeAddress addr)
Deprecated. 
Creates a new TCPIPNodeFactory

Parameters:
addr - The address of the CNS / BNS

TCPIPNodeFactory

public TCPIPNodeFactory(String serverIP)
Deprecated. 
Creates a new TCPIPNodeFactory

Parameters:
serverIP - The IP address of the CNS / BNS
Method Detail

initNode

protected NodeAddress initNode(Node node)
                        throws JCSPNetworkException
Deprecated. 
Initialises the Node, connecting to the CNS / BNS

Specified by:
initNode in class NodeFactory
Parameters:
node - The Node to initialise
Returns:
A new NodeAddress which the Node is registered at
Throws:
JCSPNetworkException - Thrown if something goes wrong during the Node initialisation process


Copyright © 1996-2012. All Rights Reserved.