public void run() { ClientInterface ci = new ClientInterface(dataBase); while (true) { System.out.println(); try { byte[] headerData; headerData = readRequestHeader(); ci.setMember(headerData); // ci.printMember(); if (Define.objec.SYSTEM == ci.getObjec()) { if (Define.order.MAJORITYCREATE == ci.getOrder()) { dataBase.createMajority(ci.getDataOfMajority()); } else if (Define.order.MAJORITYADD == ci.getOrder()) { dataBase.addMajority(ci.getDataOfMajority()); } else if (Define.order.MAJORITYRESET == ci.getOrder()) { dataBase.resetMajority(); } } else if (Define.objec.NODE == ci.getObjec()) { if (Define.order.CREATE == ci.getOrder()) { Node createNode = ci.getCreateNode(); dataBase.registrationNode(createNode, clientNumber); } else if (Define.order.EDIT == ci.getOrder()) { Node createNode = ci.getCreateNode(); System.out.println( "EditidentNumber = " + createNode.identNumber); // ///////////////////////// dataBase.EditNode(createNode, clientNumber); } else if (Define.order.DELETE == ci.getOrder()) { ID delID = ci.getDelId(); dataBase.DelateNode(delID); } else { // 未実装 } } else if (Define.objec.AGENDA == ci.getObjec()) { if (Define.order.CREATE == ci.getOrder()) { AgendaPacket ciAgendaPacket = ci.getAgendaPacket(); dataBase.getAgendaDataBase().addNode(ciAgendaPacket, ciAgendaPacket.getID()); } } Vector cloneDatabase = (Vector) dataBase.getDataBaseClone(); Vector tempDatabase = (Vector) cloneDatabase.get(0); } catch (IOException e) { // TODO 自動生成された catch ブロック e.printStackTrace(); break; } } }