package gui.animate.cellanimate; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.util.StringTokenizer; class DrawLog { IniFile ini = null; String[] allModelNames = null; private static class CellInfo { CellPosition pos = new CellPosition(); double value = 0; String modelName = null; } public static int parseLine(String data, VTime current, String[] modelNames, CellInfo result) { if(data!=null && data.startsWith("Mensaje Y")) { StringTokenizer iter = new StringTokenizer(data); if(iter.countTokens()==12) { String[] tokens = new String[12]; for(int i=0; iter.hasMoreTokens(); i++) { tokens[i] = iter.nextToken(); } if("Mensaje".equals(tokens[0]) && "Y".equals(tokens[1]) && "out".equals(tokens[7])) { result.modelName = tokens[11].substring(0, tokens[11].indexOf('(')); if(result.modelName.equals(tokens[5].substring(0, tokens[5].indexOf('(')))) { for(int i=0; i=0) { drawers[pos].setValue(currentTime, info.pos, info.value); } } logfile.close(); }catch(FileNotFoundException e) { System.out.println("Can't open the log file " + logFilename); return false; }catch(Exception e){ System.err.println("Read log file error: "+e.getMessage()); return false; } return true; } /* public void print() { for(int i=0; i