/** * @param name * @param addr * @return NodeKey for this Node * @//throws JCSPNetworkException */ public NodeKey init(String name, NodeAddress addr) ////throws JCSPNetworkException { Node.log.log(this.GetType(), "Node initialisation begun"); if (this.initialized) { throw new JCSPNetworkException("Node already initialised"); } this.initialized = true; LinkServer.start(addr); this.nodeID = new NodeID(name, addr); this.nk = new NodeKey(); NodeAddress.installProtocol(addr.getProtocol(), addr.getProtocolID()); Node.log.log(this.GetType(), "Node initialisation complete"); return(this.nk); }