public void generateYesNoPosition() { this.yesNoPosition = new List <string>(); this.yesNoPosition = SerialNumberGenerator.getYesNoPosition(this.configuration.NumOfVoters, this.configuration.NumOfCandidates); Utils.Logs.addLog("Proxy", NetworkLib.Constants.YES_NO_POSITION_GEN_SUCCESSFULL, true, NetworkLib.Constants.LOG_INFO); saveYesNoPositionToFile(); Utils.Logs.addLog("Proxy", NetworkLib.Constants.YES_NO_POSITION_SAVED_TO_FILE, true, NetworkLib.Constants.LOG_INFO); }
public SerialNumberGenerator getInstance() { if (sng == null) { sng = new SerialNumberGenerator(NetworkLib.Constants.NUM_OF_CANDIDATES, NetworkLib.Constants.NUMBER_OF_BITS_SR); } return(sng); }
public void generateSR() { this.numberOfVoters = this.configuration.NumOfVoters; this.SRList = SerialNumberGenerator.generateListOfSerialNumber(this.numberOfVoters, NetworkLib.Constants.NUMBER_OF_BITS_SR); Utils.Logs.addLog("Proxy", NetworkLib.Constants.SR_GEN_SUCCESSFULLY, true, NetworkLib.Constants.LOG_INFO); }