public static List<KNNmyownParams> getParamsKNNmyown( javax.swing.JPanel percentTrainSettingsPanel, javax.swing.JComboBox comboBoxColName, javax.swing.JPanel panelSettingsKNNmyown) { KNNmyownParams par = new KNNmyownParams(); // get all params for the model: par.setPercentTrain( Integer.parseInt( ((PercentTrainSettingsPanel) percentTrainSettingsPanel).getPercentTrain())); par.setColName(comboBoxColName.getSelectedItem().toString()); // data List<KNNmyownParams> resultList = new ArrayList<>(); resultList.add(par); MainFrame.getInstance().setParamsGeneral(KNNmyownParams.class, resultList); ((KNNmyownSettingsPanel) panelSettingsKNNmyown) .setSpecificParams(KNNmyownParams.class, resultList); return resultList; }
@Override public KNNmyownParams getClone() { KNNmyownParams param = new KNNmyownParams(); param.setDataRangeFrom(this.getDataRangeFrom()); param.setDataRangeTo(this.getDataRangeTo()); param.setSeasonality(this.getSeasonality()); param.setNumForecasts(this.getNumForecasts()); param.setNumNeighbours(numNeighbours); param.setPercentTrain(this.getPercentTrain()); param.setColName(colName); return param; }