continue;
}
ertek = st.nextToken();
if(nev.trim().equals("M") || nev.trim().toLowerCase().equals("nagym")){
nagyM = Double.parseDouble(ertek);
if(nagyM<0) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NEGATIVE_NUMBER_EXCEPTION, fileName, "nagyM");
}else if(nev.trim().equals("P") || nev.trim().toLowerCase().equals("nagyp")){
nagyP = Double.parseDouble(ertek);
if(nagyP<0) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NEGATIVE_NUMBER_EXCEPTION, fileName, "nagyP");
}else if(nev.trim().equals("U") || nev.trim().toLowerCase().equals("nagyu")){
nagyU = Double.parseDouble(ertek);
if(nagyU<0) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NEGATIVE_NUMBER_EXCEPTION, fileName, "nagyU");
}else if(nev.trim().equals("B") || nev.trim().toLowerCase().equals("nagyb")){
nagyB = Double.parseDouble(ertek);
if(nagyB<0) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NEGATIVE_NUMBER_EXCEPTION, fileName, "nagyB");
}else if(nev.trim().equals("T") || nev.trim().toLowerCase().equals("nagyt")){
nagyT = Integer.parseInt(ertek);
if(nagyT<0) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NEGATIVE_NUMBER_EXCEPTION, fileName, "nagyT");
}else if(nev.trim().equals("p") || nev.trim().toLowerCase().equals("kisp")){
kisP = Integer.parseInt(ertek);
if(kisP<0) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NEGATIVE_NUMBER_EXCEPTION, fileName, "kisP");
}else if(nev.trim().equals("gamma")){
gamma = Integer.parseInt(ertek);
if(gamma<0) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NEGATIVE_NUMBER_EXCEPTION, fileName, "gamma");
}else if(nev.trim().equals("epszilon")){
epszilon = Integer.parseInt(ertek);
// if(epszilon<0) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NEGATIVE_NUMBER_EXCEPTION, fileName, "epszilon");
}else if(nev.trim().equals("kappa")){
kappa = Double.parseDouble(ertek);
// if(kappa<0) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NEGATIVE_NUMBER_EXCEPTION, fileName, "kappa");
}else if(nev.trim().equals("lambda")){
lambda = Double.parseDouble(ertek);
// if(lambda<0) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NEGATIVE_NUMBER_EXCEPTION, fileName, "lambda");
}else if(nev.trim().equals("x%")){
xPercent = Integer.parseInt(ertek);
if(xPercent<0 || xPercent>100) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NOT_0_TO_100_EXCEPTION, fileName, "xPercent");
}else if(nev.trim().equals("r%")){
rPercent = Integer.parseInt(ertek);
if(rPercent<0 || rPercent>100) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NOT_0_TO_100_EXCEPTION, fileName, "rPercent");
}else if(nev.trim().equals("hp")){
hp = Integer.parseInt(ertek);
if(hp<0) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NEGATIVE_NUMBER_EXCEPTION, fileName, "hp");
}else if(nev.trim().equals("K")){
K = Integer.parseInt(ertek);
if(K!=0 && K!=1) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NOT_0_OR_1_EXCEPTION, fileName, sor, "K");
}else if(nev.trim().equals("L")){
L = Integer.parseInt(ertek);
if(L!=0 && L!=1) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NOT_0_OR_1_EXCEPTION, fileName, sor, "L");
}else if(nev.trim().toLowerCase().equals("kapij")){
if(ertek.trim().equals("1")) logger.setKAPijEnabled(true);
else if(!ertek.trim().equals("0")) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NOT_0_OR_1_EXCEPTION, fileName, sor);
}else if(nev.trim().toLowerCase().equals("hozzarendelesimeret")){
if(ertek.trim().equals("1")) logger.setHozzarendMeretEnabled(true);
else if(!ertek.trim().equals("0")) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NOT_0_OR_1_EXCEPTION, fileName, sor);
}else if(nev.trim().toLowerCase().equals("hozzarendelesiarany")){
if(ertek.trim().equals("1")) logger.setHozzarendAranyEnabled(true);
else if(!ertek.trim().equals("0")) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NOT_0_OR_1_EXCEPTION, fileName, sor);
}else if(nev.trim().toLowerCase().equals("tau")){
if(ertek.trim().equals("1")) logger.setTauEnabled(true);
else if(!ertek.trim().equals("0")) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NOT_0_OR_1_EXCEPTION, fileName, sor);
}else if(nev.trim().toLowerCase().equals("hozzarendelesek")){
if(ertek.trim().equals("1")) logger.setHozzarendelesEnabled(true);
else if(!ertek.trim().equals("0")) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NOT_0_OR_1_EXCEPTION, fileName, sor);
}else if(nev.trim().toLowerCase().equals("munkakizarasok")){
if(ertek.trim().equals("1")) logger.setWorkFinishEnabled(true);
else if(!ertek.trim().equals("0")) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NOT_0_OR_1_EXCEPTION, fileName, sor);
}else if(nev.trim().toLowerCase().equals("eroforraskizarasok")){
if(ertek.trim().equals("1")) logger.setTeamFinishEnabled(true);
else if(!ertek.trim().equals("0")) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NOT_0_OR_1_EXCEPTION, fileName, sor);
}else if(nev.trim().toLowerCase().equals("szazalek")){
if(ertek.trim().equals("1")) logger.setPercentEnabled(true);
else if(!ertek.trim().equals("0")) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NOT_0_OR_1_EXCEPTION, fileName, sor);
}else if(nev.trim().toLowerCase().equals("e'halmaz")){
if(ertek.trim().equals("1")) logger.setEvesszoEnabled(true);
else if(!ertek.trim().equals("0")) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NOT_0_OR_1_EXCEPTION, fileName, sor);
}else if(nev.trim().toLowerCase().equals("m'halmaz")){
if(ertek.trim().equals("1")) logger.setMvesszoEnabled(true);
else if(!ertek.trim().equals("0")) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NOT_0_OR_1_EXCEPTION, fileName, sor);
}else if(nev.trim().toLowerCase().equals("parameterek")){
if(ertek.trim().equals("1")) logger.setParametersEnabled(true);
else if(!ertek.trim().equals("0")) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NOT_0_OR_1_EXCEPTION, fileName, sor);
}else if(nev.trim().toLowerCase().equals("hozzarendelesifeladat")){
if(ertek.trim().equals("1")) logger.setHozzarendelesiFeladatEnabled(true);
else if(!ertek.trim().equals("0")) throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NOT_0_OR_1_EXCEPTION, fileName, sor);
}
if(st.hasMoreTokens() && !st.nextToken().startsWith("#")){
throw new GeomWrongFileTypeException(GeomWrongFileTypeException.MUCH_TOKEN_EXCEPTION, fileName, sor);
}
}
} catch (FileNotFoundException e){
throw new GeomFileNotFoundException(fileName);
} catch (NoSuchElementException e){
throw new GeomWrongFileTypeException(GeomWrongFileTypeException.FEW_TOKEN_EXCEPTION, fileName, sor);
} catch (NumberFormatException e){
throw new GeomWrongFileTypeException(GeomWrongFileTypeException.NUM_CONVERT_EXCEPTION, fileName, sor);
}
}