Package org.jcsp.net2.tcpip
Class TCPIPNodeFactory
- java.lang.Object
-
- org.jcsp.net2.NodeFactory
-
- org.jcsp.net2.tcpip.TCPIPNodeFactory
-
public final class TCPIPNodeFactory extends NodeFactory
Deprecated.This method of Node initialisation should no longer be used. See Node for more informationUsed 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
Constructors Constructor Description TCPIPNodeFactory(String serverIP)
Deprecated.Creates a new TCPIPNodeFactoryTCPIPNodeFactory(TCPIPNodeAddress addr)
Deprecated.Creates a new TCPIPNodeFactory
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected NodeAddress
initNode(Node node)
Deprecated.Initialises the Node, connecting to the CNS / BNS
-
-
-
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 classNodeFactory
- 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
-
-