bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public String getCourseName(String courseId) { for (int i = 0; i < m_courses.length; i++) { if (m_courses[i].getId().equals(courseId)) { return m_courses[i].getTitle(); } } return null; }
public String getCourseName(String courseId) { for (int i = 0; i < m_courses.length; i++) { if (m_courses[i].getId().equals(courseId)) { return m_courses[i].getTitle(); } } return null; }
3,239,855
public String getCourseName(String courseId) { for (int i = 0; i < m_courses.length; i++) { if (m_courses[i].getId().equals(courseId)) { return m_courses[i].getTitle(); } } return null; }
public String getCourseName(String courseId) { for (int i = 0; i < m_courses.length; i++) { if (m_courses[i].getId().equals(courseId)) { return m_courses[i].getTitle(); } } return null; }
3,239,856
public String getCourseName(String courseId) { for (int i = 0; i < m_courses.length; i++) { if (m_courses[i].getId().equals(courseId)) { return m_courses[i].getTitle(); } } return null; }
public String getCourseName(String courseId) { for (int i = 0; i < m_courses.length; i++) { if (m_courses[i].getId().equals(courseId)) { return m_courses[i].getTitle(); } } return null; }
3,239,857
public void onPostDelete(PostDeleteEvent event) {}
public void onPostDelete(PostDeleteEvent event) {}
3,239,858
public void onPostInsert(PostInsertEvent event) {}
public void onPostInsert(PostInsertEvent event) {}
3,239,859
public void onPostUpdate(PostUpdateEvent event) {}
public void onPostUpdate(PostUpdateEvent event) {}
3,239,860
public void onPreLoad(PreLoadEvent event) {}
public void onPreLoad(PreLoadEvent event) {}
3,239,861
protected void addJars(XMLElement data) throws Exception { notifyCompilerListener("addJars", CompilerListener.BEGIN, data); Iterator iter = data.getChildrenNamed("jar").iterator(); while (iter.hasNext()) { XMLElement el = (XMLElement) iter.next(); String src = requireAttribute(el, "src"); URL url = findProjectResource(src, "Jar file", el); compiler.addJarContent(url); // Additionals for mark a jar file also used in the uninstaller. // The contained files will be copied from the installer into the // uninstaller if needed. // Therefore the contained files of the jar should be in the // installer also // they are used only from the uninstaller. This is the reason why // the stage // wiil be only observed for the uninstaller. String stage = el.getAttribute("stage"); if (stage != null && (stage.equalsIgnoreCase("both") || stage.equalsIgnoreCase("uninstall"))) { CustomData ca = new CustomData(null, getContainedFilePaths(url), null, CustomData.UNINSTALLER_JAR); compiler.addCustomJar(ca, url); } } notifyCompilerListener("addJars", CompilerListener.END, data); }
protected void addJars(XMLElement data) throws Exception { notifyCompilerListener("addJars", CompilerListener.BEGIN, data); Iterator iter = data.getChildrenNamed("jar").iterator(); while (iter.hasNext()) { XMLElement el = (XMLElement) iter.next(); String src = requireAttribute(el, "src"); URL url = findProjectResource(src, "Jar file", el); compiler.addJarContent(url); // Additionals for mark a jar file also used in the uninstaller. // The contained files will be copied from the installer into the // uninstaller if needed. // Therefore the contained files of the jar should be in the // installer also // they are used only from the uninstaller. This is the reason why // the stage // wiil be only observed for the uninstaller. String stage = el.getAttribute("stage"); if (stage != null && ("both".equalsIgnoreCase(stage) || "uninstall".equalsIgnoreCase(stage))) { CustomData ca = new CustomData(null, getContainedFilePaths(url), null, CustomData.UNINSTALLER_JAR); compiler.addCustomJar(ca, url); } } notifyCompilerListener("addJars", CompilerListener.END, data); }
3,239,862
protected void addNativeLibraries(XMLElement data) throws Exception { boolean needAddOns = false; notifyCompilerListener("addNativeLibraries", CompilerListener.BEGIN, data); Iterator iter = data.getChildrenNamed("native").iterator(); while (iter.hasNext()) { XMLElement el = (XMLElement) iter.next(); String type = requireAttribute(el, "type"); String name = requireAttribute(el, "name"); String path = "bin/native/" + type + "/" + name; URL url = findIzPackResource(path, "Native Library", el); compiler.addNativeLibrary(name, url); // Additionals for mark a native lib also used in the uninstaller // The lib will be copied from the installer into the uninstaller if // needed. // Therefore the lib should be in the installer also it is used only // from // the uninstaller. This is the reason why the stage wiil be only // observed // for the uninstaller. String stage = el.getAttribute("stage"); List constraints = OsConstraint.getOsList(el); if (stage != null && (stage.equalsIgnoreCase("both") || stage.equalsIgnoreCase("uninstall"))) { ArrayList al = new ArrayList(); al.add(name); CustomData cad = new CustomData(null, al, constraints, CustomData.UNINSTALLER_LIB); compiler.addNativeUninstallerLibrary(cad); needAddOns = true; } } if (needAddOns) { // Add the uninstaller extensions as a resource if specified XMLElement root = requireChildNamed(data, "info"); XMLElement uninstallInfo = root.getFirstChildNamed("uninstaller"); if (validateYesNoAttribute(uninstallInfo, "write", YES)) { URL url = findIzPackResource("lib/uninstaller-ext.jar", "Uninstaller extensions", root); compiler.addResource("IzPack.uninstaller-ext", url); } } notifyCompilerListener("addNativeLibraries", CompilerListener.END, data); }
protected void addNativeLibraries(XMLElement data) throws Exception { boolean needAddOns = false; notifyCompilerListener("addNativeLibraries", CompilerListener.BEGIN, data); Iterator iter = data.getChildrenNamed("native").iterator(); while (iter.hasNext()) { XMLElement el = (XMLElement) iter.next(); String type = requireAttribute(el, "type"); String name = requireAttribute(el, "name"); String path = "bin/native/" + type + "/" + name; URL url = findIzPackResource(path, "Native Library", el); compiler.addNativeLibrary(name, url); // Additionals for mark a native lib also used in the uninstaller // The lib will be copied from the installer into the uninstaller if // needed. // Therefore the lib should be in the installer also it is used only // from // the uninstaller. This is the reason why the stage wiil be only // observed // for the uninstaller. String stage = el.getAttribute("stage"); List constraints = OsConstraint.getOsList(el); if (stage != null && ("both".equalsIgnoreCase(stage) || "uninstall".equalsIgnoreCase(stage))) { ArrayList al = new ArrayList(); al.add(name); CustomData cad = new CustomData(null, al, constraints, CustomData.UNINSTALLER_LIB); compiler.addNativeUninstallerLibrary(cad); needAddOns = true; } } if (needAddOns) { // Add the uninstaller extensions as a resource if specified XMLElement root = requireChildNamed(data, "info"); XMLElement uninstallInfo = root.getFirstChildNamed("uninstaller"); if (validateYesNoAttribute(uninstallInfo, "write", YES)) { URL url = findIzPackResource("lib/uninstaller-ext.jar", "Uninstaller extensions", root); compiler.addResource("IzPack.uninstaller-ext", url); } } notifyCompilerListener("addNativeLibraries", CompilerListener.END, data); }
3,239,863
protected void addPanels(XMLElement data) throws CompilerException { notifyCompilerListener("addPanels", CompilerListener.BEGIN, data); XMLElement root = requireChildNamed(data, "panels"); // at least one panel is required Vector panels = root.getChildrenNamed("panel"); if (panels.isEmpty()) parseError(root, "<panels> requires a <panel>"); // We process each panel markup Iterator iter = panels.iterator(); while (iter.hasNext()) { XMLElement xmlPanel = (XMLElement) iter.next(); // create the serialized Panel data Panel panel = new Panel(); panel.osConstraints = OsConstraint.getOsList(xmlPanel); String className = xmlPanel.getAttribute("classname"); // Panel files come in jars packaged w/ IzPack String jarPath = "bin/panels/" + className + ".jar"; URL url = findIzPackResource(jarPath, "Panel jar file", xmlPanel); String fullClassName = null; try { fullClassName = getFullClassName(url, className); } catch (Exception e) { ; } if (fullClassName != null) panel.className = fullClassName; else panel.className = className; // insert into the packager compiler.addPanelJar(panel, url); } notifyCompilerListener("addPanels", CompilerListener.END, data); }
protected void addPanels(XMLElement data) throws CompilerException { notifyCompilerListener("addPanels", CompilerListener.BEGIN, data) XMLElement root = requireChildNamed(data, "panels") // at least one panel is required Vector panels = root.getChildrenNamed("panel") if (panels.isEmpty()) parseError(root, "<panels> requires a <panel>") // We process each panel markup Iterator iter = panels.iterator() while (iter.hasNext()) { XMLElement xmlPanel = (XMLElement) iter.next() // create the serialized Panel data Panel panel = new Panel() panel.osConstraints = OsConstraint.getOsList(xmlPanel) String className = xmlPanel.getAttribute("classname") // Panel files come in jars packaged w/ IzPack String jarPath = "bin/panels/" + className + ".jar" URL url = findIzPackResource(jarPath, "Panel jar file", xmlPanel) String fullClassName = null try { fullClassName = getFullClassName(url, className) } catch (Exception e) { } if (fullClassName != null) panel.className = fullClassName else panel.className = className // insert into the packager compiler.addPanelJar(panel, url) } notifyCompilerListener("addPanels", CompilerListener.END, data) }
3,239,864
protected int getOverrideValue(XMLElement f) throws CompilerException { int override = PackFile.OVERRIDE_UPDATE; String override_val = f.getAttribute("override"); if (override_val != null) { if (override_val.equalsIgnoreCase("true")) { override = PackFile.OVERRIDE_TRUE; } else if (override_val.equalsIgnoreCase("false")) { override = PackFile.OVERRIDE_FALSE; } else if (override_val.equalsIgnoreCase("asktrue")) { override = PackFile.OVERRIDE_ASK_TRUE; } else if (override_val.equalsIgnoreCase("askfalse")) { override = PackFile.OVERRIDE_ASK_FALSE; } else if (override_val.equalsIgnoreCase("update")) { override = PackFile.OVERRIDE_UPDATE; } else parseError(f, "invalid value for attribute \"override\""); } return override; }
protected int getOverrideValue(XMLElement f) throws CompilerException { int override = PackFile.OVERRIDE_UPDATE; String override_val = f.getAttribute("override"); if (override_val != null) { if ("true".equalsIgnoreCase(override_val)) { override = PackFile.OVERRIDE_TRUE; } else if (override_val.equalsIgnoreCase("false")) { override = PackFile.OVERRIDE_FALSE; } else if (override_val.equalsIgnoreCase("asktrue")) { override = PackFile.OVERRIDE_ASK_TRUE; } else if (override_val.equalsIgnoreCase("askfalse")) { override = PackFile.OVERRIDE_ASK_FALSE; } else if (override_val.equalsIgnoreCase("update")) { override = PackFile.OVERRIDE_UPDATE; } else parseError(f, "invalid value for attribute \"override\""); } return override; }
3,239,865
protected int getOverrideValue(XMLElement f) throws CompilerException { int override = PackFile.OVERRIDE_UPDATE; String override_val = f.getAttribute("override"); if (override_val != null) { if (override_val.equalsIgnoreCase("true")) { override = PackFile.OVERRIDE_TRUE; } else if (override_val.equalsIgnoreCase("false")) { override = PackFile.OVERRIDE_FALSE; } else if (override_val.equalsIgnoreCase("asktrue")) { override = PackFile.OVERRIDE_ASK_TRUE; } else if (override_val.equalsIgnoreCase("askfalse")) { override = PackFile.OVERRIDE_ASK_FALSE; } else if (override_val.equalsIgnoreCase("update")) { override = PackFile.OVERRIDE_UPDATE; } else parseError(f, "invalid value for attribute \"override\""); } return override; }
protected int getOverrideValue(XMLElement f) throws CompilerException { int override = PackFile.OVERRIDE_UPDATE; String override_val = f.getAttribute("override"); if (override_val != null) { if (override_val.equalsIgnoreCase("true")) { override = PackFile.OVERRIDE_TRUE; } else if ("false".equalsIgnoreCase(override_val)) { override = PackFile.OVERRIDE_FALSE; } else if (override_val.equalsIgnoreCase("asktrue")) { override = PackFile.OVERRIDE_ASK_TRUE; } else if (override_val.equalsIgnoreCase("askfalse")) { override = PackFile.OVERRIDE_ASK_FALSE; } else if (override_val.equalsIgnoreCase("update")) { override = PackFile.OVERRIDE_UPDATE; } else parseError(f, "invalid value for attribute \"override\""); } return override; }
3,239,866
protected int getOverrideValue(XMLElement f) throws CompilerException { int override = PackFile.OVERRIDE_UPDATE; String override_val = f.getAttribute("override"); if (override_val != null) { if (override_val.equalsIgnoreCase("true")) { override = PackFile.OVERRIDE_TRUE; } else if (override_val.equalsIgnoreCase("false")) { override = PackFile.OVERRIDE_FALSE; } else if (override_val.equalsIgnoreCase("asktrue")) { override = PackFile.OVERRIDE_ASK_TRUE; } else if (override_val.equalsIgnoreCase("askfalse")) { override = PackFile.OVERRIDE_ASK_FALSE; } else if (override_val.equalsIgnoreCase("update")) { override = PackFile.OVERRIDE_UPDATE; } else parseError(f, "invalid value for attribute \"override\""); } return override; }
protected int getOverrideValue(XMLElement f) throws CompilerException { int override = PackFile.OVERRIDE_UPDATE; String override_val = f.getAttribute("override"); if (override_val != null) { if (override_val.equalsIgnoreCase("true")) { override = PackFile.OVERRIDE_TRUE; } else if (override_val.equalsIgnoreCase("false")) { override = PackFile.OVERRIDE_FALSE; } else if ("asktrue".equalsIgnoreCase(override_val)) { override = PackFile.OVERRIDE_ASK_TRUE; } else if (override_val.equalsIgnoreCase("askfalse")) { override = PackFile.OVERRIDE_ASK_FALSE; } else if (override_val.equalsIgnoreCase("update")) { override = PackFile.OVERRIDE_UPDATE; } else parseError(f, "invalid value for attribute \"override\""); } return override; }
3,239,867
protected int getOverrideValue(XMLElement f) throws CompilerException { int override = PackFile.OVERRIDE_UPDATE; String override_val = f.getAttribute("override"); if (override_val != null) { if (override_val.equalsIgnoreCase("true")) { override = PackFile.OVERRIDE_TRUE; } else if (override_val.equalsIgnoreCase("false")) { override = PackFile.OVERRIDE_FALSE; } else if (override_val.equalsIgnoreCase("asktrue")) { override = PackFile.OVERRIDE_ASK_TRUE; } else if (override_val.equalsIgnoreCase("askfalse")) { override = PackFile.OVERRIDE_ASK_FALSE; } else if (override_val.equalsIgnoreCase("update")) { override = PackFile.OVERRIDE_UPDATE; } else parseError(f, "invalid value for attribute \"override\""); } return override; }
protected int getOverrideValue(XMLElement f) throws CompilerException { int override = PackFile.OVERRIDE_UPDATE; String override_val = f.getAttribute("override"); if (override_val != null) { if (override_val.equalsIgnoreCase("true")) { override = PackFile.OVERRIDE_TRUE; } else if (override_val.equalsIgnoreCase("false")) { override = PackFile.OVERRIDE_FALSE; } else if (override_val.equalsIgnoreCase("asktrue")) { override = PackFile.OVERRIDE_ASK_TRUE; } else if ("askfalse".equalsIgnoreCase(override_val)) { override = PackFile.OVERRIDE_ASK_FALSE; } else if (override_val.equalsIgnoreCase("update")) { override = PackFile.OVERRIDE_UPDATE; } else parseError(f, "invalid value for attribute \"override\""); } return override; }
3,239,868
protected int getOverrideValue(XMLElement f) throws CompilerException { int override = PackFile.OVERRIDE_UPDATE; String override_val = f.getAttribute("override"); if (override_val != null) { if (override_val.equalsIgnoreCase("true")) { override = PackFile.OVERRIDE_TRUE; } else if (override_val.equalsIgnoreCase("false")) { override = PackFile.OVERRIDE_FALSE; } else if (override_val.equalsIgnoreCase("asktrue")) { override = PackFile.OVERRIDE_ASK_TRUE; } else if (override_val.equalsIgnoreCase("askfalse")) { override = PackFile.OVERRIDE_ASK_FALSE; } else if (override_val.equalsIgnoreCase("update")) { override = PackFile.OVERRIDE_UPDATE; } else parseError(f, "invalid value for attribute \"override\""); } return override; }
protected int getOverrideValue(XMLElement f) throws CompilerException { int override = PackFile.OVERRIDE_UPDATE; String override_val = f.getAttribute("override"); if (override_val != null) { if (override_val.equalsIgnoreCase("true")) { override = PackFile.OVERRIDE_TRUE; } else if (override_val.equalsIgnoreCase("false")) { override = PackFile.OVERRIDE_FALSE; } else if (override_val.equalsIgnoreCase("asktrue")) { override = PackFile.OVERRIDE_ASK_TRUE; } else if (override_val.equalsIgnoreCase("askfalse")) { override = PackFile.OVERRIDE_ASK_FALSE; } else if ("update".equalsIgnoreCase(override_val)) { override = PackFile.OVERRIDE_UPDATE; } else parseError(f, "invalid value for attribute \"override\""); } return override; }
3,239,869
public static void main(String[] args) { // Outputs some informations System.out.println(""); System.out.println(".:: IzPack - Version " + Compiler.IZPACK_VERSION + " ::."); System.out.println(""); System.out.println("< compiler specifications version : " + VERSION + " >"); System.out.println(""); System.out.println("- Copyright (C) 2001-2006 Julien Ponge"); System.out.println("- Visit http://www.izforge.com/ for the latests releases"); System.out.println("- Released under the terms of the Apache Software License version 2.0."); System.out.println(""); // exit code 1 means: error int exitCode = 1; // We analyse the command line parameters try { // Our arguments String filename; String base = "."; String kind = "standard"; String output; String compr_format = "default"; int compr_level = -1; // First check int nArgs = args.length; if (nArgs < 1) throw new Exception("no arguments given"); // We get the IzPack home directory String home = "."; String izHome = System.getProperty("IZPACK_HOME"); if (izHome != null) home = izHome; File homeFile = new File(home); if (!homeFile.exists() && homeFile.isDirectory()) { System.err.println("IZPACK_HOME (" + home + ") doesn't exist"); System.exit(-1); } Compiler.setIzpackHome(home); // The users wants to know the command line parameters if (args[0].equalsIgnoreCase("-?")) { System.out.println("-> Command line parameters are : (xml file) [args]"); System.out.println(" (xml file): the xml file describing the installation"); System.out .println(" -b (base) : indicates the base path that the compiler will use for filenames"); System.out.println(" default is the current path"); System.out.println(" -k (kind) : indicates the kind of installer to generate"); System.out.println(" default is standard"); System.out.println(" -o (out) : indicates the output file name"); System.out.println(" default is the xml file name\n"); System.out.println(" -c (compression) : indicates the compression format to be used for packs"); System.out.println(" default is the internal deflate compression\n"); System.out.println(" -l (compression-level) : indicates the level for the used compression format"); System.out.println(" if supported. Only integer are valid\n"); System.out.println(" When using vm option -DSTACKTRACE=true there is all kind of debug info "); System.out.println(""); exitCode = 0; } else { // We can parse the other parameters & try to compile the // installation // We get the input file name and we initialize the output file // name filename = args[0]; // default jar files names are based on input file name output = filename.substring(0, filename.length() - 3) + "jar"; // We parse the other ones int pos = 1; while (pos < nArgs) if ((args[pos].startsWith("-")) && (args[pos].length() == 2)) { switch (args[pos].toLowerCase().charAt(1)) { case 'b': if ((pos + 1) < nArgs) { pos++; base = args[pos]; } else throw new Exception("base argument missing"); break; case 'k': if ((pos + 1) < nArgs) { pos++; kind = args[pos]; } else throw new Exception("kind argument missing"); break; case 'o': if ((pos + 1) < nArgs) { pos++; output = args[pos]; } else throw new Exception("output argument missing"); break; case 'c': if ((pos + 1) < nArgs) { pos++; compr_format = args[pos]; } else throw new Exception("compression format argument missing"); break; case 'l': if ((pos + 1) < nArgs) { pos++; compr_level = Integer.parseInt(args[pos]); } else throw new Exception("compression level argument missing"); break; default: throw new Exception("unknown argument"); } pos++; } else throw new Exception("bad argument"); // Outputs what we are going to do System.out.println("-> Processing : " + filename); System.out.println("-> Output : " + output); System.out.println("-> Base path : " + base); System.out.println("-> Kind : " + kind); System.out.println("-> Compression : " + compr_format); System.out.println("-> Compr. level: " + compr_level); System.out.println(""); // Calls the compiler CmdlinePackagerListener listener = new CmdlinePackagerListener(); CompilerConfig compiler = new CompilerConfig(filename, base, kind, output, compr_format, compr_level, listener, (String) null); compiler.executeCompiler(); // Waits while (compiler.isAlive()) Thread.sleep(100); if (compiler.wasSuccessful()) exitCode = 0; System.out.println("Build time: " + new Date()); } } catch (Exception err) { // Something bad has happened System.err.println("-> Fatal error :"); System.err.println(" " + err.getMessage()); err.printStackTrace(); System.err.println(""); System.err.println("(tip : use -? to get the commmand line parameters)"); } // Closes the JVM System.exit(exitCode); }
public static void main(String[] args) { // Outputs some informations System.out.println(""); System.out.println(".:: IzPack - Version " + Compiler.IZPACK_VERSION + " ::."); System.out.println(""); System.out.println("< compiler specifications version : " + VERSION + " >"); System.out.println(""); System.out.println("- Copyright (C) 2001-2006 Julien Ponge"); System.out.println("- Visit http://www.izforge.com/ for the latests releases"); System.out.println("- Released under the terms of the Apache Software License version 2.0."); System.out.println(""); // exit code 1 means: error int exitCode = 1; // We analyse the command line parameters try { // Our arguments String filename; String base = "."; String kind = "standard"; String output; String compr_format = "default"; int compr_level = -1; // First check int nArgs = args.length; if (nArgs < 1) throw new Exception("no arguments given"); // We get the IzPack home directory String home = "."; String izHome = System.getProperty("IZPACK_HOME"); if (izHome != null) home = izHome; File homeFile = new File(home); if (!homeFile.exists() && homeFile.isDirectory()) { System.err.println("IZPACK_HOME (" + home + ") doesn't exist"); System.exit(-1); } Compiler.setIzpackHome(home); // The users wants to know the command line parameters if ("-?".equalsIgnoreCase(args[0])) { System.out.println("-> Command line parameters are : (xml file) [args]"); System.out.println(" (xml file): the xml file describing the installation"); System.out .println(" -b (base) : indicates the base path that the compiler will use for filenames"); System.out.println(" default is the current path"); System.out.println(" -k (kind) : indicates the kind of installer to generate"); System.out.println(" default is standard"); System.out.println(" -o (out) : indicates the output file name"); System.out.println(" default is the xml file name\n"); System.out.println(" -c (compression) : indicates the compression format to be used for packs"); System.out.println(" default is the internal deflate compression\n"); System.out.println(" -l (compression-level) : indicates the level for the used compression format"); System.out.println(" if supported. Only integer are valid\n"); System.out.println(" When using vm option -DSTACKTRACE=true there is all kind of debug info "); System.out.println(""); exitCode = 0; } else { // We can parse the other parameters & try to compile the // installation // We get the input file name and we initialize the output file // name filename = args[0]; // default jar files names are based on input file name output = filename.substring(0, filename.length() - 3) + "jar"; // We parse the other ones int pos = 1; while (pos < nArgs) if ((args[pos].startsWith("-")) && (args[pos].length() == 2)) { switch (args[pos].toLowerCase().charAt(1)) { case 'b': if ((pos + 1) < nArgs) { pos++; base = args[pos]; } else throw new Exception("base argument missing"); break; case 'k': if ((pos + 1) < nArgs) { pos++; kind = args[pos]; } else throw new Exception("kind argument missing"); break; case 'o': if ((pos + 1) < nArgs) { pos++; output = args[pos]; } else throw new Exception("output argument missing"); break; case 'c': if ((pos + 1) < nArgs) { pos++; compr_format = args[pos]; } else throw new Exception("compression format argument missing"); break; case 'l': if ((pos + 1) < nArgs) { pos++; compr_level = Integer.parseInt(args[pos]); } else throw new Exception("compression level argument missing"); break; default: throw new Exception("unknown argument"); } pos++; } else throw new Exception("bad argument"); // Outputs what we are going to do System.out.println("-> Processing : " + filename); System.out.println("-> Output : " + output); System.out.println("-> Base path : " + base); System.out.println("-> Kind : " + kind); System.out.println("-> Compression : " + compr_format); System.out.println("-> Compr. level: " + compr_level); System.out.println(""); // Calls the compiler CmdlinePackagerListener listener = new CmdlinePackagerListener(); CompilerConfig compiler = new CompilerConfig(filename, base, kind, output, compr_format, compr_level, listener, (String) null); compiler.executeCompiler(); // Waits while (compiler.isAlive()) Thread.sleep(100); if (compiler.wasSuccessful()) exitCode = 0; System.out.println("Build time: " + new Date()); } } catch (Exception err) { // Something bad has happened System.err.println("-> Fatal error :"); System.err.println(" " + err.getMessage()); err.printStackTrace(); System.err.println(""); System.err.println("(tip : use -? to get the commmand line parameters)"); } // Closes the JVM System.exit(exitCode); }
3,239,870
protected boolean requireYesNoAttribute(XMLElement element, String attribute) throws CompilerException { String value = requireAttribute(element, attribute); if (value.equalsIgnoreCase("yes")) return true; if (value.equalsIgnoreCase("no")) return false; parseError(element, "<" + element.getName() + "> invalid attribute '" + attribute + "': Expected (yes|no)"); return false; // never happens }
protected boolean requireYesNoAttribute(XMLElement element, String attribute) throws CompilerException { String value = requireAttribute(element, attribute); if (value.equalsIgnoreCase("yes")) return true; if (value.equalsIgnoreCase("no")) return false; parseError(element, "<" + element.getName() + "> invalid attribute '" + attribute + "': Expected (yes|no)"); return false; // never happens }
3,239,871
protected boolean validateYesNoAttribute(XMLElement element, String attribute, boolean defaultValue) { if (element == null) return defaultValue; String value = element.getAttribute(attribute, (defaultValue ? "yes" : "no")); if (value.equalsIgnoreCase("yes")) return true; if (value.equalsIgnoreCase("no")) return false; // TODO: should this be an error if it's present but "none of the // above"? parseWarn(element, "<" + element.getName() + "> invalid attribute '" + attribute + "': Expected (yes|no) if present"); return defaultValue; }
protected boolean validateYesNoAttribute(XMLElement element, String attribute, boolean defaultValue) { if (element == null) return defaultValue; String value = element.getAttribute(attribute, (defaultValue ? "yes" : "no")); if (value.equalsIgnoreCase("yes")) return true; if (value.equalsIgnoreCase("no")) return false; // TODO: should this be an error if it's present but "none of the // above"? parseWarn(element, "<" + element.getName() + "> invalid attribute '" + attribute + "': Expected (yes|no) if present"); return defaultValue; }
3,239,872
protected PackInfo(String name, String id, String description, boolean required) { pack = new Pack( name, id, description, null, required, true); }
protected PackInfo(String name, String id, String description, boolean required, boolean loose) { pack = new Pack( name, id, description, null, required, true); }
3,239,873
protected PackInfo(String name, String id, String description, boolean required) { pack = new Pack( name, id, description, null, required, true); }
protected PackInfo(String name, String id, String description, boolean required) { pack = new Pack( name, id, description, null, required, true, loose); }
3,239,874
public UpdateCheck(ArrayList includes, ArrayList excludes, String casesensitive) { this.includesList = includes; this.excludesList = excludes; this.caseSensitive = ((casesensitive != null) && casesensitive.equalsIgnoreCase("yes")); }
public UpdateCheck() { this.includesList = includes; this.excludesList = excludes; this.caseSensitive = ((casesensitive != null) && casesensitive.equalsIgnoreCase("yes")); }
3,239,875
public UpdateCheck(ArrayList includes, ArrayList excludes, String casesensitive) { this.includesList = includes; this.excludesList = excludes; this.caseSensitive = ((casesensitive != null) && casesensitive.equalsIgnoreCase("yes")); }
public UpdateCheck(ArrayList includes, ArrayList excludes, String casesensitive) { this.includesList = includes; this.excludesList = excludes; this.caseSensitive = ((casesensitive != null) && casesensitive.equalsIgnoreCase("yes")); }
3,239,876
protected void addInfo(XMLElement data) throws Exception { notifyCompilerListener("addInfo", CompilerListener.BEGIN, data); // Initialisation XMLElement root = requireChildNamed(data, "info"); Info info = new Info(); String temp = null; info.setAppName(requireContent(requireChildNamed(root, "appname"))); info.setAppVersion(requireContent(requireChildNamed(root, "appversion"))); // validate and insert app URL URL appURL = requireURLContent(requireChildNamed(root, "url")); info.setAppURL(appURL.toString()); // We get the authors list XMLElement authors = root.getFirstChildNamed("authors"); if (authors != null) { Iterator iter = authors.getChildrenNamed("author").iterator(); while (iter.hasNext()) { XMLElement author = (XMLElement) iter.next(); String name = requireAttribute(author, "name"); String email = requireAttribute(author, "email"); info.addAuthor(new Info.Author(name, email)); } } // We get the java version required XMLElement javaVersion = root.getFirstChildNamed("javaversion"); if (javaVersion != null) info.setJavaVersion(requireContent(javaVersion)); // validate and insert (and require if -web kind) web dir XMLElement webDirURL = root.getFirstChildNamed("webdir"); if (webDirURL != null) info.setWebDirURL(requireURLContent(webDirURL).toString()); if (kind != null) { if (kind.equalsIgnoreCase(WEB) && webDirURL == null) { parseError(root, "<webdir> required when \"WEB\" installer requested"); } else if (kind.equalsIgnoreCase(STANDARD) && webDirURL != null) { // Need a Warning? parseWarn(webDirURL, "Not creating web installer."); info.setWebDirURL(null); } } // Add the uninstaller as a resource if specified XMLElement uninstallInfo = root.getFirstChildNamed("uninstaller"); if (validateYesNoAttribute(uninstallInfo, "write", YES)) { URL url = findIzPackResource("lib/uninstaller.jar", "Uninstaller", root); packager.addResource("IzPack.uninstaller", url); } packager.setInfo(info); notifyCompilerListener("addInfo", CompilerListener.END, data); }
protected void addInfo(XMLElement data) throws Exception { notifyCompilerListener("addInfo", CompilerListener.BEGIN, data); // Initialisation XMLElement root = requireChildNamed(data, "info"); Info info = new Info(); String temp = null; info.setAppName(requireContent(requireChildNamed(root, "appname"))); info.setAppVersion(requireContent(requireChildNamed(root, "appversion"))); // validate and insert app URL URL appURL = requireURLContent(requireChildNamed(root, "url")); info.setAppURL(appURL.toString()); // We get the authors list XMLElement authors = root.getFirstChildNamed("authors"); if (authors != null) { Iterator iter = authors.getChildrenNamed("author").iterator(); while (iter.hasNext()) { XMLElement author = (XMLElement) iter.next(); String name = requireAttribute(author, "name"); String email = requireAttribute(author, "email"); info.addAuthor(new Info.Author(name, email)); } } // We get the java version required XMLElement javaVersion = root.getFirstChildNamed("javaversion"); if (javaVersion != null) info.setJavaVersion(requireContent(javaVersion)); // validate and insert (and require if -web kind) web dir XMLElement webDirURL = root.getFirstChildNamed("webdir"); if (webDirURL != null) info.setWebDirURL(requireURLContent(webDirURL).toString()); if (kind != null) { if (kind.equalsIgnoreCase(WEB) && webDirURL == null) { parseError(root, "<webdir> required when \"WEB\" installer requested"); } else if (kind.equalsIgnoreCase(STANDARD) && webDirURL != null) { // Need a Warning? parseWarn(webDirURL, "Not creating web installer."); info.setWebDirURL(null); } } // Add the uninstaller as a resource if specified XMLElement uninstallInfo = root.getFirstChildNamed("uninstaller"); if (validateYesNoAttribute(uninstallInfo, "write", YES)) { URL url = findIzPackResource("lib/uninstaller.jar", "Uninstaller", root); packager.addResource("IzPack.uninstaller", url); } packager.setInfo(info); notifyCompilerListener("addInfo", CompilerListener.END, data); }
3,239,877
public String getCourseId(Term term, List requiredFields) { StringBuffer sb = new StringBuffer(); if (term != null) { sb.append(term.getYear()); sb.append(","); sb.append(term.getTerm()); } else { sb.append(",,"); } for (int i = 0; i < requiredFields.size(); i++) { sb.append(","); sb.append((String) requiredFields.get(i)); } return sb.toString(); }
public String getCourseId(Term term, List requiredFields) { StringBuffer sb = new StringBuffer(); if (term != null) { sb.append(term.getYear()); sb.append(","); sb.append(term.getTerm()); } else { sb.append(",,"); } for (int i = 0; i < requiredFields.size(); i++) { sb.append(","); sb.append((String) requiredFields.get(i)); } return sb.toString(); }
3,239,878
public List getInstructorCourses(String instructorId, String termYear, String termTerm) { Set sections = cmService.findInstructingSections(instructorId); List courses = new ArrayList(); for(Iterator iter = sections.iterator(); iter.hasNext();) { Section section = (Section)iter.next(); Course course = getLegacyCourseFromCmSection(section); AcademicSession as = cmService.getAcademicSession(course.getTermId()); // TODO: How do we convert between these term strings and the CM AcademicSession? if(as.getTitle().indexOf(termYear) != -1 && as.getTitle().indexOf(termTerm) != -1) { courses.add(course); } } return courses; }
public List getInstructorCourses(String instructorId, String termYear, String termTerm) { Set sections = cmService.findInstructingSections(instructorId); List courses = new ArrayList(); for(Iterator iter = sections.iterator(); iter.hasNext();) { Section section = (Section)iter.next(); Course course = getLegacyCourseFromCmSection(section); AcademicSession as = cmService.getAcademicSession(course.getTermId()); // TODO: How do we convert between these term strings and the CM AcademicSession? if(as.getTitle().indexOf(termYear) != -1 && as.getTitle().indexOf(termTerm) != -1) { courses.add(course); } } return courses; }
3,239,880
public List getInstructorCourses(String instructorId, String termYear, String termTerm) { Set sections = cmService.findInstructingSections(instructorId); List courses = new ArrayList(); for(Iterator iter = sections.iterator(); iter.hasNext();) { Section section = (Section)iter.next(); Course course = getLegacyCourseFromCmSection(section); AcademicSession as = cmService.getAcademicSession(course.getTermId()); // TODO: How do we convert between these term strings and the CM AcademicSession? if(as.getTitle().indexOf(termYear) != -1 && as.getTitle().indexOf(termTerm) != -1) { courses.add(course); } } return courses; }
public List getInstructorCourses(String instructorId, String termYear, String termTerm) { Set sections = cmService.findInstructingSections(instructorId); List courses = new ArrayList(); for(Iterator iter = sections.iterator(); iter.hasNext();) { Section section = (Section)iter.next(); Course course = getLegacyCourseFromCmSection(section); AcademicSession as = cmService.getAcademicSession(course.getTermId()); // TODO: How do we convert between these term strings and the CM AcademicSession? if(as.getTitle().indexOf(termYear) != -1 && as.getTitle().indexOf(termTerm) != -1) { courses.add(course); } } return courses; }
3,239,881
public List getInstructorCourses(String instructorId, String termYear, String termTerm) { Set sections = cmService.findInstructingSections(instructorId); List courses = new ArrayList(); for(Iterator iter = sections.iterator(); iter.hasNext();) { Section section = (Section)iter.next(); Course course = getLegacyCourseFromCmSection(section); AcademicSession as = cmService.getAcademicSession(course.getTermId()); // TODO: How do we convert between these term strings and the CM AcademicSession? if(as.getTitle().indexOf(termYear) != -1 && as.getTitle().indexOf(termTerm) != -1) { courses.add(course); } } return courses; }
public List getInstructorCourses(String instructorId, String termYear, String termTerm) { Set sections = cmService.findInstructingSections(instructorId); List courses = new ArrayList(); for(Iterator iter = sections.iterator(); iter.hasNext();) { Section section = (Section)iter.next(); Course course = getLegacyCourseFromCmSection(section); AcademicSession as = cmService.getAcademicSession(course.getTermId()); // TODO: How do we convert between these term strings and the CM AcademicSession? if(as.getTitle().indexOf(termYear) != -1 && as.getTitle().indexOf(termTerm) != -1) { courses.add(course); } } return courses; }
3,239,882
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
3,239,885
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while (panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
3,239,886
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
3,239,887
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels." + panelClassName + "AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
3,239,888
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
3,239,889
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
3,239,890
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if (automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
3,239,891
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
3,239,892
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
3,239,893
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println( "ERROR: no default constructor for " + automationHelperClassName + ", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
3,239,894
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed(panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
3,239,895
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey(panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
3,239,896
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer) this.panelInstanceCount.get(panelClassName)).intValue(); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
3,239,897
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
3,239,898
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if (automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
3,239,899
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
3,239,900
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
3,239,901
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
3,239,902
public XMLElement getXMLData(File input) throws Exception { FileInputStream in = new FileInputStream(input); // Initialises the parser StdXMLParser parser = new StdXMLParser(); parser.setBuilder(new StdXMLBuilder()); parser.setReader(new StdXMLReader(in)); parser.setValidator(new NonValidator()); XMLElement rtn = (XMLElement)parser.parse(); in.close(); return rtn; }
public XMLElement getXMLData(File input) throws Exception { FileInputStream in = new FileInputStream(input); // Initialises the parser StdXMLParser parser = new StdXMLParser(); parser.setBuilder(new StdXMLBuilder()); parser.setReader(new StdXMLReader(in)); parser.setValidator(new NonValidator()); XMLElement rtn = (XMLElement) parser.parse(); in.close(); return rtn; }
3,239,904
public void loadInstallData(AutomatedInstallData installdata) throws Exception { // Usefull variables InputStream in; DataInputStream datIn; ObjectInputStream objIn; int size; int i; // We load the variables Properties variables = null; in = getClass().getResourceAsStream("/vars"); if (null != in) { objIn = new ObjectInputStream(in); variables = (Properties) objIn.readObject(); objIn.close(); } // We load the Info data in = getClass().getResourceAsStream("/info"); objIn = new ObjectInputStream(in); Info inf = (Info) objIn.readObject(); objIn.close(); // We put the Info data as variables installdata.setVariable(ScriptParser.APP_NAME, inf.getAppName()); installdata.setVariable(ScriptParser.APP_URL, inf.getAppURL()); installdata.setVariable(ScriptParser.APP_VER, inf.getAppVersion()); // We read the panels order data in = getClass().getResourceAsStream("/panelsOrder"); objIn = new ObjectInputStream(in); List panelsOrder = (List)objIn.readObject(); objIn.close(); String os = System.getProperty("os.name"); // We read the packs data in = getClass().getResourceAsStream("/packs.info"); objIn = new ObjectInputStream(in); size = objIn.readInt(); ArrayList availablePacks = new ArrayList(); ArrayList allPacks = new ArrayList(); for (i = 0; i < size; i++) { Pack pk = (Pack) objIn.readObject(); allPacks.add(pk); if (OsConstraint.oneMatchesCurrentSystem(pk.osConstraints)) availablePacks.add(pk); } objIn.close(); // We determine the operating system and the initial installation path String user = System.getProperty("user.name"); String dir; String installPath; if (os.regionMatches(true, 0, "windows", 0, 7)) { dir = buildWindowsDefaultPath(); } else if (os.regionMatches(true, 0, "mac os x", 0, 6)) { dir = "/Applications" + File.separator; } else if (os.regionMatches(true, 0, "mac", 0, 3)) { dir = ""; } else { if (user.equals("root")) { dir = "/usr/local" + File.separator; } else { dir = System.getProperty("user.home") + File.separator; } } installPath = dir + inf.getAppName(); installdata.setInstallPath(installPath); installdata.setVariable (ScriptParser.JAVA_HOME, System.getProperty("java.home")); installdata.setVariable (ScriptParser.USER_HOME, System.getProperty("user.home")); installdata.setVariable (ScriptParser.USER_NAME, System.getProperty("user.name")); installdata.setVariable (ScriptParser.FILE_SEPARATOR, File.separator); if (null != variables) { Enumeration enum = variables.keys(); String varName = null; String varValue = null; while (enum.hasMoreElements()) { varName = (String) enum.nextElement(); varValue = variables.getProperty(varName); installdata.setVariable(varName, varValue); } }
public void loadInstallData(AutomatedInstallData installdata) throws Exception { // Usefull variables InputStream in; DataInputStream datIn; ObjectInputStream objIn; int size; int i; // We load the variables Properties variables = null; in = getClass().getResourceAsStream("/vars"); if (null != in) { objIn = new ObjectInputStream(in); variables = (Properties) objIn.readObject(); objIn.close(); } // We load the Info data in = getClass().getResourceAsStream("/info"); objIn = new ObjectInputStream(in); Info inf = (Info) objIn.readObject(); objIn.close(); // We put the Info data as variables installdata.setVariable(ScriptParser.APP_NAME, inf.getAppName()); installdata.setVariable(ScriptParser.APP_URL, inf.getAppURL()); installdata.setVariable(ScriptParser.APP_VER, inf.getAppVersion()); // We read the panels order data in = getClass().getResourceAsStream("/panelsOrder"); objIn = new ObjectInputStream(in); List panelsOrder = (List)objIn.readObject(); objIn.close(); String os = System.getProperty("os.name"); // We read the packs data in = getClass().getResourceAsStream("/packs.info"); objIn = new ObjectInputStream(in); size = objIn.readInt(); ArrayList availablePacks = new ArrayList(); ArrayList allPacks = new ArrayList(); for (i = 0; i < size; i++) { Pack pk = (Pack) objIn.readObject(); allPacks.add(pk); if (OsConstraint.oneMatchesCurrentSystem(pk.osConstraints)) availablePacks.add(pk); } objIn.close(); // We determine the operating system and the initial installation path String user = System.getProperty("user.name"); String dir; String installPath; if (os.regionMatches(true, 0, "windows", 0, 7)) { dir = buildWindowsDefaultPath(); } else if (os.regionMatches(true, 0, "mac os x", 0, 6)) { dir = "/Applications" + File.separator; } else if (os.regionMatches(true, 0, "mac", 0, 3)) { dir = ""; } else { if (user.equals("root")) { dir = "/usr/local" + File.separator; } else { dir = System.getProperty("user.home") + File.separator; } } installPath = dir + inf.getAppName(); installdata.setInstallPath(installPath); installdata.setVariable (ScriptParser.JAVA_HOME, System.getProperty("java.home")); installdata.setVariable (ScriptParser.USER_HOME, System.getProperty("user.home")); installdata.setVariable (ScriptParser.USER_NAME, System.getProperty("user.name")); installdata.setVariable (ScriptParser.FILE_SEPARATOR, File.separator); if (null != variables) { Enumeration enum = variables.keys(); String varName = null; String varValue = null; while (enum.hasMoreElements()) { varName = (String) enum.nextElement(); varValue = variables.getProperty(varName); installdata.setVariable(varName, varValue); } }
3,239,905
public void loadInstallData(AutomatedInstallData installdata) throws Exception { // Usefull variables InputStream in; DataInputStream datIn; ObjectInputStream objIn; int size; int i; // We load the variables Properties variables = null; in = getClass().getResourceAsStream("/vars"); if (null != in) { objIn = new ObjectInputStream(in); variables = (Properties) objIn.readObject(); objIn.close(); } // We load the Info data in = getClass().getResourceAsStream("/info"); objIn = new ObjectInputStream(in); Info inf = (Info) objIn.readObject(); objIn.close(); // We put the Info data as variables installdata.setVariable(ScriptParser.APP_NAME, inf.getAppName()); installdata.setVariable(ScriptParser.APP_URL, inf.getAppURL()); installdata.setVariable(ScriptParser.APP_VER, inf.getAppVersion()); // We read the panels order data in = getClass().getResourceAsStream("/panelsOrder"); objIn = new ObjectInputStream(in); List panelsOrder = (List)objIn.readObject(); objIn.close(); String os = System.getProperty("os.name"); // We read the packs data in = getClass().getResourceAsStream("/packs.info"); objIn = new ObjectInputStream(in); size = objIn.readInt(); ArrayList availablePacks = new ArrayList(); ArrayList allPacks = new ArrayList(); for (i = 0; i < size; i++) { Pack pk = (Pack) objIn.readObject(); allPacks.add(pk); if (OsConstraint.oneMatchesCurrentSystem(pk.osConstraints)) availablePacks.add(pk); } objIn.close(); // We determine the operating system and the initial installation path String user = System.getProperty("user.name"); String dir; String installPath; if (os.regionMatches(true, 0, "windows", 0, 7)) { dir = buildWindowsDefaultPath(); } else if (os.regionMatches(true, 0, "mac os x", 0, 6)) { dir = "/Applications" + File.separator; } else if (os.regionMatches(true, 0, "mac", 0, 3)) { dir = ""; } else { if (user.equals("root")) { dir = "/usr/local" + File.separator; } else { dir = System.getProperty("user.home") + File.separator; } } installPath = dir + inf.getAppName(); installdata.setInstallPath(installPath); installdata.setVariable (ScriptParser.JAVA_HOME, System.getProperty("java.home")); installdata.setVariable (ScriptParser.USER_HOME, System.getProperty("user.home")); installdata.setVariable (ScriptParser.USER_NAME, System.getProperty("user.name")); installdata.setVariable (ScriptParser.FILE_SEPARATOR, File.separator); if (null != variables) { Enumeration enum = variables.keys(); String varName = null; String varValue = null; while (enum.hasMoreElements()) { varName = (String) enum.nextElement(); varValue = variables.getProperty(varName); installdata.setVariable(varName, varValue); } }
public void loadInstallData(AutomatedInstallData installdata) throws Exception { // Usefull variables InputStream in; DataInputStream datIn; ObjectInputStream objIn; int size; int i; // We load the variables Properties variables = null; in = InstallerBase.class.getResourceAsStream("/vars"); if (null != in) { objIn = new ObjectInputStream(in); variables = (Properties) objIn.readObject(); objIn.close(); } // We load the Info data in = getClass().getResourceAsStream("/info"); objIn = new ObjectInputStream(in); Info inf = (Info) objIn.readObject(); objIn.close(); // We put the Info data as variables installdata.setVariable(ScriptParser.APP_NAME, inf.getAppName()); installdata.setVariable(ScriptParser.APP_URL, inf.getAppURL()); installdata.setVariable(ScriptParser.APP_VER, inf.getAppVersion()); // We read the panels order data in = getClass().getResourceAsStream("/panelsOrder"); objIn = new ObjectInputStream(in); List panelsOrder = (List)objIn.readObject(); objIn.close(); String os = System.getProperty("os.name"); // We read the packs data in = getClass().getResourceAsStream("/packs.info"); objIn = new ObjectInputStream(in); size = objIn.readInt(); ArrayList availablePacks = new ArrayList(); ArrayList allPacks = new ArrayList(); for (i = 0; i < size; i++) { Pack pk = (Pack) objIn.readObject(); allPacks.add(pk); if (OsConstraint.oneMatchesCurrentSystem(pk.osConstraints)) availablePacks.add(pk); } objIn.close(); // We determine the operating system and the initial installation path String user = System.getProperty("user.name"); String dir; String installPath; if (os.regionMatches(true, 0, "windows", 0, 7)) { dir = buildWindowsDefaultPath(); } else if (os.regionMatches(true, 0, "mac os x", 0, 6)) { dir = "/Applications" + File.separator; } else if (os.regionMatches(true, 0, "mac", 0, 3)) { dir = ""; } else { if (user.equals("root")) { dir = "/usr/local" + File.separator; } else { dir = System.getProperty("user.home") + File.separator; } } installPath = dir + inf.getAppName(); installdata.setInstallPath(installPath); installdata.setVariable (ScriptParser.JAVA_HOME, System.getProperty("java.home")); installdata.setVariable (ScriptParser.USER_HOME, System.getProperty("user.home")); installdata.setVariable (ScriptParser.USER_NAME, System.getProperty("user.name")); installdata.setVariable (ScriptParser.FILE_SEPARATOR, File.separator); if (null != variables) { Enumeration enum = variables.keys(); String varName = null; String varValue = null; while (enum.hasMoreElements()) { varName = (String) enum.nextElement(); varValue = variables.getProperty(varName); installdata.setVariable(varName, varValue); } }
3,239,906
public void loadInstallData(AutomatedInstallData installdata) throws Exception { // Usefull variables InputStream in; DataInputStream datIn; ObjectInputStream objIn; int size; int i; // We load the variables Properties variables = null; in = getClass().getResourceAsStream("/vars"); if (null != in) { objIn = new ObjectInputStream(in); variables = (Properties) objIn.readObject(); objIn.close(); } // We load the Info data in = getClass().getResourceAsStream("/info"); objIn = new ObjectInputStream(in); Info inf = (Info) objIn.readObject(); objIn.close(); // We put the Info data as variables installdata.setVariable(ScriptParser.APP_NAME, inf.getAppName()); installdata.setVariable(ScriptParser.APP_URL, inf.getAppURL()); installdata.setVariable(ScriptParser.APP_VER, inf.getAppVersion()); // We read the panels order data in = getClass().getResourceAsStream("/panelsOrder"); objIn = new ObjectInputStream(in); List panelsOrder = (List)objIn.readObject(); objIn.close(); String os = System.getProperty("os.name"); // We read the packs data in = getClass().getResourceAsStream("/packs.info"); objIn = new ObjectInputStream(in); size = objIn.readInt(); ArrayList availablePacks = new ArrayList(); ArrayList allPacks = new ArrayList(); for (i = 0; i < size; i++) { Pack pk = (Pack) objIn.readObject(); allPacks.add(pk); if (OsConstraint.oneMatchesCurrentSystem(pk.osConstraints)) availablePacks.add(pk); } objIn.close(); // We determine the operating system and the initial installation path String user = System.getProperty("user.name"); String dir; String installPath; if (os.regionMatches(true, 0, "windows", 0, 7)) { dir = buildWindowsDefaultPath(); } else if (os.regionMatches(true, 0, "mac os x", 0, 6)) { dir = "/Applications" + File.separator; } else if (os.regionMatches(true, 0, "mac", 0, 3)) { dir = ""; } else { if (user.equals("root")) { dir = "/usr/local" + File.separator; } else { dir = System.getProperty("user.home") + File.separator; } } installPath = dir + inf.getAppName(); installdata.setInstallPath(installPath); installdata.setVariable (ScriptParser.JAVA_HOME, System.getProperty("java.home")); installdata.setVariable (ScriptParser.USER_HOME, System.getProperty("user.home")); installdata.setVariable (ScriptParser.USER_NAME, System.getProperty("user.name")); installdata.setVariable (ScriptParser.FILE_SEPARATOR, File.separator); if (null != variables) { Enumeration enum = variables.keys(); String varName = null; String varValue = null; while (enum.hasMoreElements()) { varName = (String) enum.nextElement(); varValue = variables.getProperty(varName); installdata.setVariable(varName, varValue); } }
public void loadInstallData(AutomatedInstallData installdata) throws Exception { // Usefull variables InputStream in; DataInputStream datIn; ObjectInputStream objIn; int size; int i; // We load the variables Properties variables = null; in = getClass().getResourceAsStream("/vars"); if (null != in) { objIn = new ObjectInputStream(in); variables = (Properties) objIn.readObject(); objIn.close(); } // We load the Info data in = InstallerBase.class.getResourceAsStream("/info"); objIn = new ObjectInputStream(in); Info inf = (Info) objIn.readObject(); objIn.close(); // We put the Info data as variables installdata.setVariable(ScriptParser.APP_NAME, inf.getAppName()); installdata.setVariable(ScriptParser.APP_URL, inf.getAppURL()); installdata.setVariable(ScriptParser.APP_VER, inf.getAppVersion()); // We read the panels order data in = getClass().getResourceAsStream("/panelsOrder"); objIn = new ObjectInputStream(in); List panelsOrder = (List)objIn.readObject(); objIn.close(); String os = System.getProperty("os.name"); // We read the packs data in = getClass().getResourceAsStream("/packs.info"); objIn = new ObjectInputStream(in); size = objIn.readInt(); ArrayList availablePacks = new ArrayList(); ArrayList allPacks = new ArrayList(); for (i = 0; i < size; i++) { Pack pk = (Pack) objIn.readObject(); allPacks.add(pk); if (OsConstraint.oneMatchesCurrentSystem(pk.osConstraints)) availablePacks.add(pk); } objIn.close(); // We determine the operating system and the initial installation path String user = System.getProperty("user.name"); String dir; String installPath; if (os.regionMatches(true, 0, "windows", 0, 7)) { dir = buildWindowsDefaultPath(); } else if (os.regionMatches(true, 0, "mac os x", 0, 6)) { dir = "/Applications" + File.separator; } else if (os.regionMatches(true, 0, "mac", 0, 3)) { dir = ""; } else { if (user.equals("root")) { dir = "/usr/local" + File.separator; } else { dir = System.getProperty("user.home") + File.separator; } } installPath = dir + inf.getAppName(); installdata.setInstallPath(installPath); installdata.setVariable (ScriptParser.JAVA_HOME, System.getProperty("java.home")); installdata.setVariable (ScriptParser.USER_HOME, System.getProperty("user.home")); installdata.setVariable (ScriptParser.USER_NAME, System.getProperty("user.name")); installdata.setVariable (ScriptParser.FILE_SEPARATOR, File.separator); if (null != variables) { Enumeration enum = variables.keys(); String varName = null; String varValue = null; while (enum.hasMoreElements()) { varName = (String) enum.nextElement(); varValue = variables.getProperty(varName); installdata.setVariable(varName, varValue); } }
3,239,907
public void loadInstallData(AutomatedInstallData installdata) throws Exception { // Usefull variables InputStream in; DataInputStream datIn; ObjectInputStream objIn; int size; int i; // We load the variables Properties variables = null; in = getClass().getResourceAsStream("/vars"); if (null != in) { objIn = new ObjectInputStream(in); variables = (Properties) objIn.readObject(); objIn.close(); } // We load the Info data in = getClass().getResourceAsStream("/info"); objIn = new ObjectInputStream(in); Info inf = (Info) objIn.readObject(); objIn.close(); // We put the Info data as variables installdata.setVariable(ScriptParser.APP_NAME, inf.getAppName()); installdata.setVariable(ScriptParser.APP_URL, inf.getAppURL()); installdata.setVariable(ScriptParser.APP_VER, inf.getAppVersion()); // We read the panels order data in = getClass().getResourceAsStream("/panelsOrder"); objIn = new ObjectInputStream(in); List panelsOrder = (List)objIn.readObject(); objIn.close(); String os = System.getProperty("os.name"); // We read the packs data in = getClass().getResourceAsStream("/packs.info"); objIn = new ObjectInputStream(in); size = objIn.readInt(); ArrayList availablePacks = new ArrayList(); ArrayList allPacks = new ArrayList(); for (i = 0; i < size; i++) { Pack pk = (Pack) objIn.readObject(); allPacks.add(pk); if (OsConstraint.oneMatchesCurrentSystem(pk.osConstraints)) availablePacks.add(pk); } objIn.close(); // We determine the operating system and the initial installation path String user = System.getProperty("user.name"); String dir; String installPath; if (os.regionMatches(true, 0, "windows", 0, 7)) { dir = buildWindowsDefaultPath(); } else if (os.regionMatches(true, 0, "mac os x", 0, 6)) { dir = "/Applications" + File.separator; } else if (os.regionMatches(true, 0, "mac", 0, 3)) { dir = ""; } else { if (user.equals("root")) { dir = "/usr/local" + File.separator; } else { dir = System.getProperty("user.home") + File.separator; } } installPath = dir + inf.getAppName(); installdata.setInstallPath(installPath); installdata.setVariable (ScriptParser.JAVA_HOME, System.getProperty("java.home")); installdata.setVariable (ScriptParser.USER_HOME, System.getProperty("user.home")); installdata.setVariable (ScriptParser.USER_NAME, System.getProperty("user.name")); installdata.setVariable (ScriptParser.FILE_SEPARATOR, File.separator); if (null != variables) { Enumeration enum = variables.keys(); String varName = null; String varValue = null; while (enum.hasMoreElements()) { varName = (String) enum.nextElement(); varValue = variables.getProperty(varName); installdata.setVariable(varName, varValue); } }
public void loadInstallData(AutomatedInstallData installdata) throws Exception { // Usefull variables InputStream in; DataInputStream datIn; ObjectInputStream objIn; int size; int i; // We load the variables Properties variables = null; in = getClass().getResourceAsStream("/vars"); if (null != in) { objIn = new ObjectInputStream(in); variables = (Properties) objIn.readObject(); objIn.close(); } // We load the Info data in = getClass().getResourceAsStream("/info"); objIn = new ObjectInputStream(in); Info inf = (Info) objIn.readObject(); objIn.close(); // We put the Info data as variables installdata.setVariable(ScriptParser.APP_NAME, inf.getAppName()); installdata.setVariable(ScriptParser.APP_URL, inf.getAppURL()); installdata.setVariable(ScriptParser.APP_VER, inf.getAppVersion()); // We read the panels order data in = getClass().getResourceAsStream("/panelsOrder"); objIn = new ObjectInputStream(in); List panelsOrder = (List)objIn.readObject(); objIn.close(); String os = System.getProperty("os.name"); // We read the packs data in = getClass().getResourceAsStream("/packs.info"); objIn = new ObjectInputStream(in); size = objIn.readInt(); ArrayList availablePacks = new ArrayList(); ArrayList allPacks = new ArrayList(); for (i = 0; i < size; i++) { Pack pk = (Pack) objIn.readObject(); allPacks.add(pk); if (OsConstraint.oneMatchesCurrentSystem(pk.osConstraints)) availablePacks.add(pk); } objIn.close(); // We determine the operating system and the initial installation path String user = System.getProperty("user.name"); String dir; String installPath; if (os.regionMatches(true, 0, "windows", 0, 7)) { dir = buildWindowsDefaultPath(); } else if (os.regionMatches(true, 0, "mac os x", 0, 6)) { dir = "/Applications" + File.separator; } else if (os.regionMatches(true, 0, "mac", 0, 3)) { dir = ""; } else { if (user.equals("root")) { dir = "/usr/local" + File.separator; } else { dir = System.getProperty("user.home") + File.separator; } } installPath = dir + inf.getAppName(); installdata.setInstallPath(installPath); installdata.setVariable (ScriptParser.JAVA_HOME, System.getProperty("java.home")); installdata.setVariable (ScriptParser.USER_HOME, System.getProperty("user.home")); installdata.setVariable (ScriptParser.USER_NAME, System.getProperty("user.name")); installdata.setVariable (ScriptParser.FILE_SEPARATOR, File.separator); if (null != variables) { Enumeration enum = variables.keys(); String varName = null; String varValue = null; while (enum.hasMoreElements()) { varName = (String) enum.nextElement(); varValue = variables.getProperty(varName); installdata.setVariable(varName, varValue); } }
3,239,908
public void loadInstallData(AutomatedInstallData installdata) throws Exception { // Usefull variables InputStream in; DataInputStream datIn; ObjectInputStream objIn; int size; int i; // We load the variables Properties variables = null; in = getClass().getResourceAsStream("/vars"); if (null != in) { objIn = new ObjectInputStream(in); variables = (Properties) objIn.readObject(); objIn.close(); } // We load the Info data in = getClass().getResourceAsStream("/info"); objIn = new ObjectInputStream(in); Info inf = (Info) objIn.readObject(); objIn.close(); // We put the Info data as variables installdata.setVariable(ScriptParser.APP_NAME, inf.getAppName()); installdata.setVariable(ScriptParser.APP_URL, inf.getAppURL()); installdata.setVariable(ScriptParser.APP_VER, inf.getAppVersion()); // We read the panels order data in = getClass().getResourceAsStream("/panelsOrder"); objIn = new ObjectInputStream(in); List panelsOrder = (List)objIn.readObject(); objIn.close(); String os = System.getProperty("os.name"); // We read the packs data in = getClass().getResourceAsStream("/packs.info"); objIn = new ObjectInputStream(in); size = objIn.readInt(); ArrayList availablePacks = new ArrayList(); ArrayList allPacks = new ArrayList(); for (i = 0; i < size; i++) { Pack pk = (Pack) objIn.readObject(); allPacks.add(pk); if (OsConstraint.oneMatchesCurrentSystem(pk.osConstraints)) availablePacks.add(pk); } objIn.close(); // We determine the operating system and the initial installation path String user = System.getProperty("user.name"); String dir; String installPath; if (os.regionMatches(true, 0, "windows", 0, 7)) { dir = buildWindowsDefaultPath(); } else if (os.regionMatches(true, 0, "mac os x", 0, 6)) { dir = "/Applications" + File.separator; } else if (os.regionMatches(true, 0, "mac", 0, 3)) { dir = ""; } else { if (user.equals("root")) { dir = "/usr/local" + File.separator; } else { dir = System.getProperty("user.home") + File.separator; } } installPath = dir + inf.getAppName(); installdata.setInstallPath(installPath); installdata.setVariable (ScriptParser.JAVA_HOME, System.getProperty("java.home")); installdata.setVariable (ScriptParser.USER_HOME, System.getProperty("user.home")); installdata.setVariable (ScriptParser.USER_NAME, System.getProperty("user.name")); installdata.setVariable (ScriptParser.FILE_SEPARATOR, File.separator); if (null != variables) { Enumeration enum = variables.keys(); String varName = null; String varValue = null; while (enum.hasMoreElements()) { varName = (String) enum.nextElement(); varValue = variables.getProperty(varName); installdata.setVariable(varName, varValue); } }
public void loadInstallData(AutomatedInstallData installdata) throws Exception { // Usefull variables InputStream in; DataInputStream datIn; ObjectInputStream objIn; int size; int i; // We load the variables Properties variables = null; in = getClass().getResourceAsStream("/vars"); if (null != in) { objIn = new ObjectInputStream(in); variables = (Properties) objIn.readObject(); objIn.close(); } // We load the Info data in = getClass().getResourceAsStream("/info"); objIn = new ObjectInputStream(in); Info inf = (Info) objIn.readObject(); objIn.close(); // We put the Info data as variables installdata.setVariable(ScriptParser.APP_NAME, inf.getAppName()); installdata.setVariable(ScriptParser.APP_URL, inf.getAppURL()); installdata.setVariable(ScriptParser.APP_VER, inf.getAppVersion()); // We read the panels order data in = getClass().getResourceAsStream("/panelsOrder"); objIn = new ObjectInputStream(in); List panelsOrder = (List)objIn.readObject(); objIn.close(); String os = System.getProperty("os.name"); // We read the packs data in = InstallerBase.class.getResourceAsStream("/packs.info"); objIn = new ObjectInputStream(in); size = objIn.readInt(); ArrayList availablePacks = new ArrayList(); ArrayList allPacks = new ArrayList(); for (i = 0; i < size; i++) { Pack pk = (Pack) objIn.readObject(); allPacks.add(pk); if (OsConstraint.oneMatchesCurrentSystem(pk.osConstraints)) availablePacks.add(pk); } objIn.close(); // We determine the operating system and the initial installation path String user = System.getProperty("user.name"); String dir; String installPath; if (os.regionMatches(true, 0, "windows", 0, 7)) { dir = buildWindowsDefaultPath(); } else if (os.regionMatches(true, 0, "mac os x", 0, 6)) { dir = "/Applications" + File.separator; } else if (os.regionMatches(true, 0, "mac", 0, 3)) { dir = ""; } else { if (user.equals("root")) { dir = "/usr/local" + File.separator; } else { dir = System.getProperty("user.home") + File.separator; } } installPath = dir + inf.getAppName(); installdata.setInstallPath(installPath); installdata.setVariable (ScriptParser.JAVA_HOME, System.getProperty("java.home")); installdata.setVariable (ScriptParser.USER_HOME, System.getProperty("user.home")); installdata.setVariable (ScriptParser.USER_NAME, System.getProperty("user.name")); installdata.setVariable (ScriptParser.FILE_SEPARATOR, File.separator); if (null != variables) { Enumeration enum = variables.keys(); String varName = null; String varValue = null; while (enum.hasMoreElements()) { varName = (String) enum.nextElement(); varValue = variables.getProperty(varName); installdata.setVariable(varName, varValue); } }
3,239,909
public void loadInstallData(AutomatedInstallData installdata) throws Exception { // Usefull variables InputStream in; DataInputStream datIn; ObjectInputStream objIn; int size; int i; // We load the variables Properties variables = null; in = getClass().getResourceAsStream("/vars"); if (null != in) { objIn = new ObjectInputStream(in); variables = (Properties) objIn.readObject(); objIn.close(); } // We load the Info data in = getClass().getResourceAsStream("/info"); objIn = new ObjectInputStream(in); Info inf = (Info) objIn.readObject(); objIn.close(); // We put the Info data as variables installdata.setVariable(ScriptParser.APP_NAME, inf.getAppName()); installdata.setVariable(ScriptParser.APP_URL, inf.getAppURL()); installdata.setVariable(ScriptParser.APP_VER, inf.getAppVersion()); // We read the panels order data in = getClass().getResourceAsStream("/panelsOrder"); objIn = new ObjectInputStream(in); List panelsOrder = (List)objIn.readObject(); objIn.close(); String os = System.getProperty("os.name"); // We read the packs data in = getClass().getResourceAsStream("/packs.info"); objIn = new ObjectInputStream(in); size = objIn.readInt(); ArrayList availablePacks = new ArrayList(); ArrayList allPacks = new ArrayList(); for (i = 0; i < size; i++) { Pack pk = (Pack) objIn.readObject(); allPacks.add(pk); if (OsConstraint.oneMatchesCurrentSystem(pk.osConstraints)) availablePacks.add(pk); } objIn.close(); // We determine the operating system and the initial installation path String user = System.getProperty("user.name"); String dir; String installPath; if (os.regionMatches(true, 0, "windows", 0, 7)) { dir = buildWindowsDefaultPath(); } else if (os.regionMatches(true, 0, "mac os x", 0, 6)) { dir = "/Applications" + File.separator; } else if (os.regionMatches(true, 0, "mac", 0, 3)) { dir = ""; } else { if (user.equals("root")) { dir = "/usr/local" + File.separator; } else { dir = System.getProperty("user.home") + File.separator; } } installPath = dir + inf.getAppName(); installdata.setInstallPath(installPath); installdata.setVariable (ScriptParser.JAVA_HOME, System.getProperty("java.home")); installdata.setVariable (ScriptParser.USER_HOME, System.getProperty("user.home")); installdata.setVariable (ScriptParser.USER_NAME, System.getProperty("user.name")); installdata.setVariable (ScriptParser.FILE_SEPARATOR, File.separator); if (null != variables) { Enumeration enum = variables.keys(); String varName = null; String varValue = null; while (enum.hasMoreElements()) { varName = (String) enum.nextElement(); varValue = variables.getProperty(varName); installdata.setVariable(varName, varValue); } }
public void loadInstallData(AutomatedInstallData installdata) throws Exception { // Usefull variables InputStream in; DataInputStream datIn; ObjectInputStream objIn; int size; int i; // We load the variables Properties variables = null; in = getClass().getResourceAsStream("/vars"); if (null != in) { objIn = new ObjectInputStream(in); variables = (Properties) objIn.readObject(); objIn.close(); } // We load the Info data in = getClass().getResourceAsStream("/info"); objIn = new ObjectInputStream(in); Info inf = (Info) objIn.readObject(); objIn.close(); // We put the Info data as variables installdata.setVariable(ScriptParser.APP_NAME, inf.getAppName()); installdata.setVariable(ScriptParser.APP_URL, inf.getAppURL()); installdata.setVariable(ScriptParser.APP_VER, inf.getAppVersion()); // We read the panels order data in = getClass().getResourceAsStream("/panelsOrder"); objIn = new ObjectInputStream(in); List panelsOrder = (List)objIn.readObject(); objIn.close(); String os = System.getProperty("os.name"); // We read the packs data in = getClass().getResourceAsStream("/packs.info"); objIn = new ObjectInputStream(in); size = objIn.readInt(); ArrayList availablePacks = new ArrayList(); ArrayList allPacks = new ArrayList(); for (i = 0; i < size; i++) { Pack pk = (Pack) objIn.readObject(); allPacks.add(pk); if (OsConstraint.oneMatchesCurrentSystem(pk.osConstraints)) availablePacks.add(pk); } objIn.close(); // We determine the operating system and the initial installation path String user = System.getProperty("user.name"); String dir; String installPath; if (os.regionMatches(true, 0, "windows", 0, 7)) { dir = buildWindowsDefaultPath(); } else if (os.regionMatches(true, 0, "mac os x", 0, 6)) { dir = "/Applications" + File.separator; } else if (os.regionMatches(true, 0, "mac", 0, 3)) { dir = ""; } else { if (user.equals("root")) { dir = "/usr/local" + File.separator; } else { dir = System.getProperty("user.home") + File.separator; } } installPath = dir + inf.getAppName(); installdata.setInstallPath(installPath); installdata.setVariable (ScriptParser.JAVA_HOME, System.getProperty("java.home")); installdata.setVariable (ScriptParser.USER_HOME, System.getProperty("user.home")); installdata.setVariable (ScriptParser.USER_NAME, System.getProperty("user.name")); installdata.setVariable (ScriptParser.FILE_SEPARATOR, File.separator); if (null != variables) { Enumeration enum = variables.keys(); String varName = null; String varValue = null; while (enum.hasMoreElements()) { varName = (String) enum.nextElement(); varValue = variables.getProperty(varName); installdata.setVariable(varName, varValue); } }
3,239,910
public void loadInstallData(AutomatedInstallData installdata) throws Exception { // Usefull variables InputStream in; DataInputStream datIn; ObjectInputStream objIn; int size; int i; // We load the variables Properties variables = null; in = getClass().getResourceAsStream("/vars"); if (null != in) { objIn = new ObjectInputStream(in); variables = (Properties) objIn.readObject(); objIn.close(); } // We load the Info data in = getClass().getResourceAsStream("/info"); objIn = new ObjectInputStream(in); Info inf = (Info) objIn.readObject(); objIn.close(); // We put the Info data as variables installdata.setVariable(ScriptParser.APP_NAME, inf.getAppName()); installdata.setVariable(ScriptParser.APP_URL, inf.getAppURL()); installdata.setVariable(ScriptParser.APP_VER, inf.getAppVersion()); // We read the panels order data in = getClass().getResourceAsStream("/panelsOrder"); objIn = new ObjectInputStream(in); List panelsOrder = (List)objIn.readObject(); objIn.close(); String os = System.getProperty("os.name"); // We read the packs data in = getClass().getResourceAsStream("/packs.info"); objIn = new ObjectInputStream(in); size = objIn.readInt(); ArrayList availablePacks = new ArrayList(); ArrayList allPacks = new ArrayList(); for (i = 0; i < size; i++) { Pack pk = (Pack) objIn.readObject(); allPacks.add(pk); if (OsConstraint.oneMatchesCurrentSystem(pk.osConstraints)) availablePacks.add(pk); } objIn.close(); // We determine the operating system and the initial installation path String user = System.getProperty("user.name"); String dir; String installPath; if (os.regionMatches(true, 0, "windows", 0, 7)) { dir = buildWindowsDefaultPath(); } else if (os.regionMatches(true, 0, "mac os x", 0, 6)) { dir = "/Applications" + File.separator; } else if (os.regionMatches(true, 0, "mac", 0, 3)) { dir = ""; } else { if (user.equals("root")) { dir = "/usr/local" + File.separator; } else { dir = System.getProperty("user.home") + File.separator; } } installPath = dir + inf.getAppName(); installdata.setInstallPath(installPath); installdata.setVariable (ScriptParser.JAVA_HOME, System.getProperty("java.home")); installdata.setVariable (ScriptParser.USER_HOME, System.getProperty("user.home")); installdata.setVariable (ScriptParser.USER_NAME, System.getProperty("user.name")); installdata.setVariable (ScriptParser.FILE_SEPARATOR, File.separator); if (null != variables) { Enumeration enum = variables.keys(); String varName = null; String varValue = null; while (enum.hasMoreElements()) { varName = (String) enum.nextElement(); varValue = variables.getProperty(varName); installdata.setVariable(varName, varValue); } }
public void loadInstallData(AutomatedInstallData installdata) throws Exception { // Usefull variables InputStream in; DataInputStream datIn; ObjectInputStream objIn; int size; int i; // We load the variables Properties variables = null; in = getClass().getResourceAsStream("/vars"); if (null != in) { objIn = new ObjectInputStream(in); variables = (Properties) objIn.readObject(); objIn.close(); } // We load the Info data in = getClass().getResourceAsStream("/info"); objIn = new ObjectInputStream(in); Info inf = (Info) objIn.readObject(); objIn.close(); // We put the Info data as variables installdata.setVariable(ScriptParser.APP_NAME, inf.getAppName()); installdata.setVariable(ScriptParser.APP_URL, inf.getAppURL()); installdata.setVariable(ScriptParser.APP_VER, inf.getAppVersion()); // We read the panels order data in = getClass().getResourceAsStream("/panelsOrder"); objIn = new ObjectInputStream(in); List panelsOrder = (List)objIn.readObject(); objIn.close(); String os = System.getProperty("os.name"); // We read the packs data in = getClass().getResourceAsStream("/packs.info"); objIn = new ObjectInputStream(in); size = objIn.readInt(); ArrayList availablePacks = new ArrayList(); ArrayList allPacks = new ArrayList(); for (i = 0; i < size; i++) { Pack pk = (Pack) objIn.readObject(); allPacks.add(pk); if (OsConstraint.oneMatchesCurrentSystem(pk.osConstraints)) availablePacks.add(pk); } objIn.close(); // We determine the operating system and the initial installation path String user = System.getProperty("user.name"); String dir; String installPath; if (os.regionMatches(true, 0, "windows", 0, 7)) { dir = buildWindowsDefaultPath(); } else if (os.regionMatches(true, 0, "mac os x", 0, 6)) { dir = "/Applications" + File.separator; } else if (os.regionMatches(true, 0, "mac", 0, 3)) { dir = ""; } else { if (user.equals("root")) { dir = "/usr/local" + File.separator; } else { dir = System.getProperty("user.home") + File.separator; } } installPath = dir + inf.getAppName(); installdata.setInstallPath(installPath); installdata.setVariable (ScriptParser.JAVA_HOME, System.getProperty("java.home")); installdata.setVariable (ScriptParser.USER_HOME, System.getProperty("user.home")); installdata.setVariable (ScriptParser.USER_NAME, System.getProperty("user.name")); installdata.setVariable (ScriptParser.FILE_SEPARATOR, File.separator); if (null != variables) { Enumeration enum = variables.keys(); String varName = null; String varValue = null; while (enum.hasMoreElements()) { varName = (String) enum.nextElement(); varValue = variables.getProperty(varName); installdata.setVariable(varName, varValue); } }
3,239,911
public IzPackMetalTheme() { color = new ColorUIResource(0, 0, 0); Font font1 = createFont("Tahoma", Font.PLAIN, 11); Font font2 = createFont("Tahoma", Font.BOLD, 11); menuFont = new FontUIResource(font1); controlFont = new FontUIResource(font1); windowTitleFont = new FontUIResource(font2); monospacedFont = new FontUIResource(font1); }
public IzPackMetalTheme() { color = new ColorUIResource(0, 0, 0); Font font1 = createFont("Tahoma", Font.PLAIN, 11); Font font2 = createFont("Tahoma", Font.BOLD, 11); menuFont = new FontUIResource(font1); controlFont = new FontUIResource(font1); windowTitleFont = new FontUIResource(font2); }
3,239,913
public String process (ProcessingClient client){ String retValue = ""; String host = "localhost"; int port = 0; int oPort = 0; boolean found = false; InetAddress inet = null; ServerSocket socket = null; try{ if (client.getNumFields()>1){ host = client.getFieldContents(0); oPort = Integer.parseInt(client.getFieldContents(1)); }else{ oPort = Integer.parseInt(client.getFieldContents(0)); } }catch (Exception ex){ return getReturnValue(client, null, null); } port = oPort; while (!found){ try{ inet = InetAddress.getByName(host); socket = new ServerSocket(port, 0, inet); if (socket.getLocalPort() > 0){ found = true; retValue = getReturnValue(client, null, String.valueOf(port)); }else{ port++; } }catch (java.net.BindException ex){ port++; }catch (Exception ex){ return getReturnValue(client, null, null); }finally{ try{ socket.close(); }catch (Exception ex){ ; } } } return retValue; }
public String process (ProcessingClient client){ String retValue = ""; String host = "localhost"; int port = 0; int oPort = 0; boolean found = false; InetAddress inet = null; ServerSocket socket = null; try{ if (client.getNumFields()>1){ host = client.getFieldContents(0); oPort = Integer.parseInt(client.getFieldContents(1)); }else{ oPort = Integer.parseInt(client.getFieldContents(0)); } }catch (Exception ex){ return getReturnValue(client, null, null); } port = oPort; while (!found){ try{ inet = InetAddress.getByName(host); socket = new ServerSocket(port, 0, inet); if (socket.getLocalPort() > 0){ found = true; retValue = getReturnValue(client, null, String.valueOf(port)); }else{ port++; } }catch (java.net.BindException ex){ port++; }catch (Exception ex){ return getReturnValue(client, null, null); }finally{ try{ socket.close(); }catch (Exception ex){ ; } } } return retValue; }
3,239,914
public void writeSkeletonInstaller (JarOutputStream out) throws Exception { InputStream is = getClass().getResourceAsStream("lib/installer.jar"); ZipInputStream skeleton_is = null; if (is != null) { skeleton_is = new ZipInputStream (is); } if (skeleton_is == null) { skeleton_is = new JarInputStream (new FileInputStream ( Compiler.IZPACK_HOME + "lib" + File.separator + "installer.jar")); } ZipEntry zentry; while ((zentry = skeleton_is.getNextEntry()) != null) { // Puts a new entry out.putNextEntry(new ZipEntry(zentry.getName())); // Copy the data copyStream(skeleton_is, out); out.closeEntry(); skeleton_is.closeEntry(); } }
public void writeSkeletonInstaller (JarOutputStream out) throws Exception { InputStream is = getClass().getResourceAsStream("lib/installer.jar"); ZipInputStream skeleton_is = null; if (is != null) { skeleton_is = new ZipInputStream (is); } if (skeleton_is == null) { skeleton_is = new ZipInputStream (new FileInputStream ( Compiler.IZPACK_HOME + "lib" + File.separator + "installer.jar")); } ZipEntry zentry; while ((zentry = skeleton_is.getNextEntry()) != null) { // Puts a new entry out.putNextEntry(new ZipEntry(zentry.getName())); // Copy the data copyStream(skeleton_is, out); out.closeEntry(); skeleton_is.closeEntry(); } }
3,239,915
public ProcessPanelWorker( AutomatedInstallData idata, AbstractUIProcessHandler handler) throws IOException { this.idata = idata; this.handler = handler; this.vs = new VariableSubstitutor(idata.getVariableValueMap()); if (!readSpec()) throw new IOException("Error reading processing specification"); }
public ProcessPanelWorker( AutomatedInstallData idata, AbstractUIProcessHandler handler) throws IOException { this.idata = idata; this.handler = handler; this.vs = new VariableSubstitutor(idata.getVariables()); if (!readSpec()) throw new IOException("Error reading processing specification"); }
3,239,916
public ImgPacksPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); preLoadImages(); packsLabel = new JLabel(parent.langpack.getString("ImgPacksPanel.packs"), parent.icons.getImageIcon("preferences"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 1, 1, 0.25, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(packsLabel, gbConstraints); add(packsLabel); packsLabel = new JLabel(parent.langpack.getString("ImgPacksPanel.snap"), parent.icons.getImageIcon("tip"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 1, 0, 1, 1, 0.75, 0.0); layout.addLayoutComponent(packsLabel, gbConstraints); add(packsLabel); packsList = new JList(idata.availablePacks.toArray()); packsList.addListSelectionListener(this); packsList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); JScrollPane scroller1 = new JScrollPane(packsList); parent.buildConstraints(gbConstraints, 0, 1, 1, 1, 0.25, 1.0); gbConstraints.fill = GridBagConstraints.BOTH; gbConstraints.anchor = GridBagConstraints.CENTER; layout.addLayoutComponent(scroller1, gbConstraints); add(scroller1); imgLabel = new JLabel((ImageIcon) images.get(0)); JScrollPane scroller2 = new JScrollPane(imgLabel); parent.buildConstraints(gbConstraints, 1, 1, 1, 1, 0.75, 1.0); layout.addLayoutComponent(scroller2, gbConstraints); add(scroller2); checkBox = new JCheckBox(parent.langpack.getString("ImgPacksPanel.checkbox")); checkBox.addActionListener(this); parent.buildConstraints(gbConstraints, 0, 2, 1, 1, 0.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(checkBox, gbConstraints); add(checkBox); spaceLabel = new JLabel(parent.langpack.getString("PacksPanel.space")); parent.buildConstraints(gbConstraints, 0, 2, 1, 1, 0.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.EAST; layout.addLayoutComponent(spaceLabel, gbConstraints); add(spaceLabel); descLabel = new JLabel(""); parent.buildConstraints(gbConstraints, 1, 2, 1, 1, 0.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(descLabel, gbConstraints); add(descLabel); packsList.setSelectedIndex(0); // We update the checkbox and the description Pack pack = (Pack) idata.availablePacks.get(index); checkBox.setEnabled(!pack.required); checkBox.setSelected(idata.selectedPacks.contains(pack)); descLabel.setText(pack.description); }
public ImgPacksPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); preLoadImages(); packsLabel = new JLabel(parent.langpack.getString("ImgPacksPanel.packs"), parent.icons.getImageIcon("preferences"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 1, 1, 0.25, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(packsLabel, gbConstraints); add(packsLabel); packsLabel = new JLabel(parent.langpack.getString("ImgPacksPanel.snap"), parent.icons.getImageIcon("tip"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 1, 0, 1, 1, 0.75, 0.0); layout.addLayoutComponent(packsLabel, gbConstraints); add(packsLabel); packsList = new JList(idata.availablePacks.toArray()); packsList.addListSelectionListener(this); packsList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); JScrollPane scroller1 = new JScrollPane(packsList); parent.buildConstraints(gbConstraints, 0, 1, 1, 1, 0.25, 1.0); gbConstraints.fill = GridBagConstraints.BOTH; gbConstraints.anchor = GridBagConstraints.CENTER; layout.addLayoutComponent(scroller1, gbConstraints); add(scroller1); imgLabel = new JLabel((ImageIcon) images.get(0)); JScrollPane scroller2 = new JScrollPane(imgLabel); parent.buildConstraints(gbConstraints, 1, 1, 1, 1, 0.75, 1.0); layout.addLayoutComponent(scroller2, gbConstraints); add(scroller2); checkBox = new JCheckBox(parent.langpack.getString("ImgPacksPanel.checkbox")); checkBox.addActionListener(this); parent.buildConstraints(gbConstraints, 0, 2, 1, 1, 0.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(checkBox, gbConstraints); add(checkBox); spaceLabel = new JLabel(parent.langpack.getString("PacksPanel.space")); parent.buildConstraints(gbConstraints, 0, 2, 1, 1, 0.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.EAST; layout.addLayoutComponent(spaceLabel, gbConstraints); add(spaceLabel); descLabel = new JLabel(""); parent.buildConstraints(gbConstraints, 1, 2, 1, 1, 0.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(descLabel, gbConstraints); add(descLabel); packsList.setSelectedIndex(0); // We update the checkbox and the description Pack pack = (Pack) idata.availablePacks.get(index); checkBox.setEnabled(!pack.required); checkBox.setSelected(idata.selectedPacks.contains(pack)); descLabel.setText(pack.description); }
3,239,917
public ImgPacksPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); preLoadImages(); packsLabel = new JLabel(parent.langpack.getString("ImgPacksPanel.packs"), parent.icons.getImageIcon("preferences"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 1, 1, 0.25, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(packsLabel, gbConstraints); add(packsLabel); packsLabel = new JLabel(parent.langpack.getString("ImgPacksPanel.snap"), parent.icons.getImageIcon("tip"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 1, 0, 1, 1, 0.75, 0.0); layout.addLayoutComponent(packsLabel, gbConstraints); add(packsLabel); packsList = new JList(idata.availablePacks.toArray()); packsList.addListSelectionListener(this); packsList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); JScrollPane scroller1 = new JScrollPane(packsList); parent.buildConstraints(gbConstraints, 0, 1, 1, 1, 0.25, 1.0); gbConstraints.fill = GridBagConstraints.BOTH; gbConstraints.anchor = GridBagConstraints.CENTER; layout.addLayoutComponent(scroller1, gbConstraints); add(scroller1); imgLabel = new JLabel((ImageIcon) images.get(0)); JScrollPane scroller2 = new JScrollPane(imgLabel); parent.buildConstraints(gbConstraints, 1, 1, 1, 1, 0.75, 1.0); layout.addLayoutComponent(scroller2, gbConstraints); add(scroller2); checkBox = new JCheckBox(parent.langpack.getString("ImgPacksPanel.checkbox")); checkBox.addActionListener(this); parent.buildConstraints(gbConstraints, 0, 2, 1, 1, 0.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(checkBox, gbConstraints); add(checkBox); spaceLabel = new JLabel(parent.langpack.getString("PacksPanel.space")); parent.buildConstraints(gbConstraints, 0, 2, 1, 1, 0.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.EAST; layout.addLayoutComponent(spaceLabel, gbConstraints); add(spaceLabel); descLabel = new JLabel(""); parent.buildConstraints(gbConstraints, 1, 2, 1, 1, 0.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(descLabel, gbConstraints); add(descLabel); packsList.setSelectedIndex(0); // We update the checkbox and the description Pack pack = (Pack) idata.availablePacks.get(index); checkBox.setEnabled(!pack.required); checkBox.setSelected(idata.selectedPacks.contains(pack)); descLabel.setText(pack.description); }
public ImgPacksPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); preLoadImages(); packsLabel = new JLabel(parent.langpack.getString("ImgPacksPanel.packs"), parent.icons.getImageIcon("preferences"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 1, 1, 0.25, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(packsLabel, gbConstraints); add(packsLabel); packsLabel = new JLabel(parent.langpack.getString("ImgPacksPanel.snap"), parent.icons.getImageIcon("tip"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 1, 0, 1, 1, 0.75, 0.0); layout.addLayoutComponent(packsLabel, gbConstraints); add(packsLabel); packsList = new JList(idata.availablePacks.toArray()); packsList.addListSelectionListener(this); packsList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); JScrollPane scroller1 = new JScrollPane(packsList); parent.buildConstraints(gbConstraints, 0, 1, 1, 1, 0.25, 1.0); gbConstraints.fill = GridBagConstraints.BOTH; gbConstraints.anchor = GridBagConstraints.CENTER; layout.addLayoutComponent(scroller1, gbConstraints); add(scroller1); imgLabel = new JLabel((ImageIcon) images.get(0)); JScrollPane scroller2 = new JScrollPane(imgLabel); parent.buildConstraints(gbConstraints, 1, 1, 1, 1, 0.75, 1.0); layout.addLayoutComponent(scroller2, gbConstraints); add(scroller2); checkBox = new JCheckBox(parent.langpack.getString("ImgPacksPanel.checkbox")); checkBox.addActionListener(this); parent.buildConstraints(gbConstraints, 0, 2, 1, 1, 0.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(checkBox, gbConstraints); add(checkBox); spaceLabel = new JLabel(parent.langpack.getString("PacksPanel.space")); parent.buildConstraints(gbConstraints, 0, 2, 1, 1, 0.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.EAST; layout.addLayoutComponent(spaceLabel, gbConstraints); add(spaceLabel); descLabel = new JLabel(""); parent.buildConstraints(gbConstraints, 1, 2, 1, 1, 0.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(descLabel, gbConstraints); add(descLabel); packsList.setSelectedIndex(0); // We update the checkbox and the description Pack pack = (Pack) idata.availablePacks.get(index); checkBox.setEnabled(!pack.required); checkBox.setSelected(idata.selectedPacks.contains(pack)); descLabel.setText(pack.description); }
3,239,918
public ImgPacksPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); preLoadImages(); packsLabel = new JLabel(parent.langpack.getString("ImgPacksPanel.packs"), parent.icons.getImageIcon("preferences"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 1, 1, 0.25, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(packsLabel, gbConstraints); add(packsLabel); packsLabel = new JLabel(parent.langpack.getString("ImgPacksPanel.snap"), parent.icons.getImageIcon("tip"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 1, 0, 1, 1, 0.75, 0.0); layout.addLayoutComponent(packsLabel, gbConstraints); add(packsLabel); packsList = new JList(idata.availablePacks.toArray()); packsList.addListSelectionListener(this); packsList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); JScrollPane scroller1 = new JScrollPane(packsList); parent.buildConstraints(gbConstraints, 0, 1, 1, 1, 0.25, 1.0); gbConstraints.fill = GridBagConstraints.BOTH; gbConstraints.anchor = GridBagConstraints.CENTER; layout.addLayoutComponent(scroller1, gbConstraints); add(scroller1); imgLabel = new JLabel((ImageIcon) images.get(0)); JScrollPane scroller2 = new JScrollPane(imgLabel); parent.buildConstraints(gbConstraints, 1, 1, 1, 1, 0.75, 1.0); layout.addLayoutComponent(scroller2, gbConstraints); add(scroller2); checkBox = new JCheckBox(parent.langpack.getString("ImgPacksPanel.checkbox")); checkBox.addActionListener(this); parent.buildConstraints(gbConstraints, 0, 2, 1, 1, 0.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(checkBox, gbConstraints); add(checkBox); spaceLabel = new JLabel(parent.langpack.getString("PacksPanel.space")); parent.buildConstraints(gbConstraints, 0, 2, 1, 1, 0.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.EAST; layout.addLayoutComponent(spaceLabel, gbConstraints); add(spaceLabel); descLabel = new JLabel(""); parent.buildConstraints(gbConstraints, 1, 2, 1, 1, 0.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(descLabel, gbConstraints); add(descLabel); packsList.setSelectedIndex(0); // We update the checkbox and the description Pack pack = (Pack) idata.availablePacks.get(index); checkBox.setEnabled(!pack.required); checkBox.setSelected(idata.selectedPacks.contains(pack)); descLabel.setText(pack.description); }
public ImgPacksPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); preLoadImages(); packsLabel = new JLabel(parent.langpack.getString("ImgPacksPanel.packs"), parent.icons.getImageIcon("preferences"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 1, 1, 0.25, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(packsLabel, gbConstraints); add(packsLabel); packsLabel = new JLabel(parent.langpack.getString("ImgPacksPanel.snap"), parent.icons.getImageIcon("tip"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 1, 0, 1, 1, 0.75, 0.0); layout.addLayoutComponent(packsLabel, gbConstraints); add(packsLabel); packsList = new JList(idata.availablePacks.toArray()); packsList.addListSelectionListener(this); packsList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); JScrollPane scroller1 = new JScrollPane(packsList); parent.buildConstraints(gbConstraints, 0, 1, 1, 1, 0.25, 1.0); gbConstraints.fill = GridBagConstraints.BOTH; gbConstraints.anchor = GridBagConstraints.CENTER; layout.addLayoutComponent(scroller1, gbConstraints); add(scroller1); imgLabel = new JLabel((ImageIcon) images.get(0)); JScrollPane scroller2 = new JScrollPane(imgLabel); parent.buildConstraints(gbConstraints, 1, 1, 1, 1, 0.75, 1.0); layout.addLayoutComponent(scroller2, gbConstraints); add(scroller2); checkBox = new JCheckBox(parent.langpack.getString("ImgPacksPanel.checkbox")); checkBox.addActionListener(this); parent.buildConstraints(gbConstraints, 0, 2, 1, 1, 0.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(checkBox, gbConstraints); add(checkBox); spaceLabel = new JLabel(parent.langpack.getString("PacksPanel.space")); parent.buildConstraints(gbConstraints, 0, 2, 1, 1, 0.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.EAST; layout.addLayoutComponent(spaceLabel, gbConstraints); add(spaceLabel); descLabel = new JLabel(""); parent.buildConstraints(gbConstraints, 1, 2, 1, 1, 0.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(descLabel, gbConstraints); add(descLabel); packsList.setSelectedIndex(0); // We update the checkbox and the description Pack pack = (Pack) idata.availablePacks.get(index); checkBox.setEnabled(!pack.required); checkBox.setSelected(idata.selectedPacks.contains(pack)); descLabel.setText(pack.description); }
3,239,919
public void actionPerformed(ActionEvent e) { // We select or not the current pack Pack pack = (Pack) idata.availablePacks.get(index); if (checkBox.isSelected()) { idata.selectedPacks.add(pack); bytes += pack.nbytes; } else { idata.selectedPacks.remove(idata.selectedPacks.indexOf(pack)); bytes -= pack.nbytes; } showSpaceRequired(); }
public void actionPerformed(ActionEvent e) { // We select or not the current pack Pack pack = (Pack) idata.availablePacks.get(index); if (checkBox.isSelected()) { idata.selectedPacks.add(pack); bytes += pack.nbytes; } else { idata.selectedPacks.remove(idata.selectedPacks.indexOf(pack)); bytes -= pack.nbytes; } showSpaceRequired(); }
3,239,920
public void makeXMLData(XMLElement panelRoot) { new ImgPacksPanelAutomationHelper().makeXMLData(idata, panelRoot); }
public void makeXMLData(XMLElement panelRoot) { new ImgPacksPanelAutomationHelper().makeXMLData(idata, panelRoot); }
3,239,921
private void preLoadImages() { int size = idata.availablePacks.size(); images = new ArrayList(size); for (int i = 0; i < size; i++) try { URL url = ResourceManager.getInstance().getURL("ImgPacksPanel.img." + i); ImageIcon img = new ImageIcon(url); images.add(img); } catch (Exception err) { err.printStackTrace(); } }
private void preLoadImages() { int size = idata.availablePacks.size(); images = new ArrayList(size); for (int i = 0; i < size; i++) try { URL url = ResourceManager.getInstance().getURL("ImgPacksPanel.img." + i); ImageIcon img = new ImageIcon(url); images.add(img); } catch (Exception err) { err.printStackTrace(); } }
3,239,922
private void preLoadImages() { int size = idata.availablePacks.size(); images = new ArrayList(size); for (int i = 0; i < size; i++) try { URL url = ResourceManager.getInstance().getURL("ImgPacksPanel.img." + i); ImageIcon img = new ImageIcon(url); images.add(img); } catch (Exception err) { err.printStackTrace(); } }
private void preLoadImages() { int size = idata.availablePacks.size(); images = new ArrayList(size); for (int i = 0; i < size; i++) try { URL url = ResourceManager.getInstance().getURL("ImgPacksPanel.img." + i); ImageIcon img = new ImageIcon(url); images.add(img); } catch (Exception err) { err.printStackTrace(); } }
3,239,923
private void showSpaceRequired() { StringBuffer result = new StringBuffer(parent.langpack.getString("PacksPanel.space")); result.append(Pack.toByteUnitsString(bytes)); spaceLabel.setText(result.toString()); }
private void showSpaceRequired() { StringBuffer result = new StringBuffer(parent.langpack.getString("PacksPanel.space")); result.append(Pack.toByteUnitsString(bytes)); spaceLabel.setText(result.toString()); }
3,239,924
public void rewind() throws IllegalArgumentException, NativeLibException { synchronized (logging) { Iterator iter = logging.iterator(); suspendLogging(); while (iter.hasNext()) { RegistryLogItem rli = (RegistryLogItem) iter.next(); switch (rli.getType()) { case RegistryLogItem.CREATED_KEY: deleteKeyIfEmpty(rli.getRoot(), rli.getKey()); break; case RegistryLogItem.REMOVED_KEY: createKeyN(rli.getRoot(), rli.getKey()); break; case RegistryLogItem.CREATED_VALUE: RegDataContainer currentContents = null; // Delete value only if reg entry exists and equal to the // stored // value. try { currentContents = getValue(rli.getRoot(), rli.getKey(), rli.getValueName()); } catch (NativeLibException nle) { break; } if (currentContents.equals(rli.getNewValue())) { Debug.error("delete it "); deleteValueN(rli.getRoot(), rli.getKey(), rli.getValueName()); } // TODO: what todo if value has changed? break; case RegistryLogItem.REMOVED_VALUE: // Set old value only if reg entry not exists. try { getValue(rli.getRoot(), rli.getKey(), rli.getValueName()); } catch (NativeLibException nle) { setValueN(rli.getRoot(), rli.getKey(), rli.getValueName(), rli .getOldValue()); } break; case RegistryLogItem.CHANGED_VALUE: // Change to old value only if reg entry exists and equal to // the // stored value. try { currentContents = getValue(rli.getRoot(), rli.getKey(), rli.getValueName()); } catch (NativeLibException nle) { break; } if (currentContents.equals(rli.getNewValue())) { setValueN(rli.getRoot(), rli.getKey(), rli.getValueName(), rli .getOldValue()); } break; } } } }
public void rewind() throws IllegalArgumentException, NativeLibException { synchronized (logging) { Iterator iter = logging.iterator(); suspendLogging(); while (iter.hasNext()) { RegistryLogItem rli = (RegistryLogItem) iter.next(); switch (rli.getType()) { case RegistryLogItem.CREATED_KEY: deleteKeyIfEmpty(rli.getRoot(), rli.getKey()); break; case RegistryLogItem.REMOVED_KEY: createKeyN(rli.getRoot(), rli.getKey()); break; case RegistryLogItem.CREATED_VALUE: RegDataContainer currentContents = null; // Delete value only if reg entry exists and equal to the // stored // value. try { currentContents = getValue(rli.getRoot(), rli.getKey(), rli.getValueName()); } catch (NativeLibException nle) { break; } if (currentContents.equals(rli.getNewValue())) { deleteValueN(rli.getRoot(), rli.getKey(), rli.getValueName()); } // TODO: what todo if value has changed? break; case RegistryLogItem.REMOVED_VALUE: // Set old value only if reg entry not exists. try { getValue(rli.getRoot(), rli.getKey(), rli.getValueName()); } catch (NativeLibException nle) { setValueN(rli.getRoot(), rli.getKey(), rli.getValueName(), rli .getOldValue()); } break; case RegistryLogItem.CHANGED_VALUE: // Change to old value only if reg entry exists and equal to // the // stored value. try { currentContents = getValue(rli.getRoot(), rli.getKey(), rli.getValueName()); } catch (NativeLibException nle) { break; } if (currentContents.equals(rli.getNewValue())) { setValueN(rli.getRoot(), rli.getKey(), rli.getValueName(), rli .getOldValue()); } break; } } } }
3,239,925
public NativeLibException(String message) { super(message); }
public NativeLibException() { super(message); }
3,239,926
public NativeLibException(String message) { super(message); }
public NativeLibException(String message) { super(); }
3,239,927
public RegDataContainer(String data) { super(); type = REG_SZ; stringData = data; }
public RegDataContainer() { super(); type = REG_SZ; stringData = data; }
3,239,928
public RegDataContainer(String data) { super(); type = REG_SZ; stringData = data; }
public RegDataContainer(String data) { super(); type = REG_SZ; stringData = data; }
3,239,929
public void loadInstallData(AutomatedInstallData installdata) throws Exception { // Usefull variables InputStream in; ObjectInputStream objIn; int size; int i; // We load the variables Properties variables = null; in = InstallerBase.class.getResourceAsStream("/vars"); if (null != in) { objIn = new ObjectInputStream(in); variables = (Properties) objIn.readObject(); objIn.close(); } // We load the Info data in = InstallerBase.class.getResourceAsStream("/info"); objIn = new ObjectInputStream(in); Info inf = (Info) objIn.readObject(); objIn.close(); // We put the Info data as variables installdata.setVariable(ScriptParser.APP_NAME, inf.getAppName()); if (inf.getAppURL() != null) installdata.setVariable(ScriptParser.APP_URL, inf.getAppURL()); installdata.setVariable(ScriptParser.APP_VER, inf.getAppVersion()); // We read the panels order data in = InstallerBase.class.getResourceAsStream("/panelsOrder"); objIn = new ObjectInputStream(in); List panelsOrder = (List) objIn.readObject(); objIn.close(); // We read the packs data in = InstallerBase.class.getResourceAsStream("/packs.info"); objIn = new ObjectInputStream(in); size = objIn.readInt(); ArrayList availablePacks = new ArrayList(); ArrayList allPacks = new ArrayList(); for (i = 0; i < size; i++) { Pack pk = (Pack) objIn.readObject(); allPacks.add(pk); if (OsConstraint.oneMatchesCurrentSystem(pk.osConstraints)) availablePacks.add(pk); } objIn.close(); // We determine the operating system and the initial installation path String dir; String installPath; if (OsVersion.IS_WINDOWS) { dir = buildWindowsDefaultPath(); } else if (OsVersion.IS_OSX) { dir = "/Applications"; } else { if (new File("/usr/local/").canWrite()) { dir = "/usr/local"; } else { dir = System.getProperty("user.home"); } } // We determine the hostname and IPAdress String hostname; String IPAddress; try { InetAddress addr = InetAddress.getLocalHost(); // Get IP Address IPAddress = addr.getHostAddress(); // Get hostname hostname = addr.getHostName(); } catch (Exception e) { hostname = ""; IPAddress = ""; } installdata.setVariable("APPLICATIONS_DEFAULT_ROOT", dir); dir = dir + File.separator; installdata.setVariable(ScriptParser.JAVA_HOME, System.getProperty("java.home")); installdata.setVariable(ScriptParser.CLASS_PATH, System.getProperty("java.class.path")); installdata.setVariable(ScriptParser.USER_HOME, System.getProperty("user.home")); installdata.setVariable(ScriptParser.USER_NAME, System.getProperty("user.name")); installdata.setVariable(ScriptParser.IP_ADDRESS, IPAddress); installdata.setVariable(ScriptParser.HOST_NAME, hostname); installdata.setVariable(ScriptParser.FILE_SEPARATOR, File.separator); Enumeration e = System.getProperties().keys(); while (e.hasMoreElements()) { String varName = (String) e.nextElement(); String varValue = System.getProperty(varName); if (varValue != null) { varName = varName.replace('.', '_'); installdata.setVariable("SYSTEM_" + varName, varValue); } } if (null != variables) { Enumeration enumeration = variables.keys(); String varName; String varValue; while (enumeration.hasMoreElements()) { varName = (String) enumeration.nextElement(); varValue = variables.getProperty(varName); installdata.setVariable(varName, varValue); } } installdata.info = inf; installdata.panelsOrder = panelsOrder; installdata.availablePacks = availablePacks; installdata.allPacks = allPacks; // get list of preselected packs Iterator pack_it = availablePacks.iterator(); while (pack_it.hasNext()) { Pack pack = (Pack) pack_it.next(); if (pack.preselected) installdata.selectedPacks.add(pack); } // Set the installation path in a default manner installPath = dir + inf.getAppName(); if (inf.getInstallationSubPath() != null) { // A subpath was defined, use it. installPath = IoHelper.translatePath(dir + inf.getInstallationSubPath(), new VariableSubstitutor(installdata.getVariables())); } installdata.setInstallPath(installPath); // Load custom action data. loadCustomData(installdata); }
public void loadInstallData(AutomatedInstallData installdata) throws Exception { // Usefull variables InputStream in; ObjectInputStream objIn; int size; int i; // We load the variables Properties variables = null; in = InstallerBase.class.getResourceAsStream("/vars"); if (null != in) { objIn = new ObjectInputStream(in); variables = (Properties) objIn.readObject(); objIn.close(); } // We load the Info data in = InstallerBase.class.getResourceAsStream("/info"); objIn = new ObjectInputStream(in); Info inf = (Info) objIn.readObject(); objIn.close(); // We put the Info data as variables installdata.setVariable(ScriptParser.APP_NAME, inf.getAppName()); if (inf.getAppURL() != null) installdata.setVariable(ScriptParser.APP_URL, inf.getAppURL()); installdata.setVariable(ScriptParser.APP_VER, inf.getAppVersion()); // We read the panels order data in = InstallerBase.class.getResourceAsStream("/panelsOrder"); objIn = new ObjectInputStream(in); List panelsOrder = (List) objIn.readObject(); objIn.close(); // We read the packs data in = InstallerBase.class.getResourceAsStream("/packs.info"); objIn = new ObjectInputStream(in); size = objIn.readInt(); ArrayList availablePacks = new ArrayList(); ArrayList allPacks = new ArrayList(); for (i = 0; i < size; i++) { Pack pk = (Pack) objIn.readObject(); allPacks.add(pk); if (OsConstraint.oneMatchesCurrentSystem(pk.osConstraints)) availablePacks.add(pk); } objIn.close(); // We determine the operating system and the initial installation path String dir; String installPath; if (OsVersion.IS_WINDOWS) { dir = buildWindowsDefaultPath(); } else if (OsVersion.IS_OSX) { dir = "/Applications"; } else { if (new File("/usr/local/").canWrite()) { dir = "/usr/local"; } else { dir = System.getProperty("user.home"); } } // We determine the hostname and IPAdress String hostname; String IPAddress; try { InetAddress addr = InetAddress.getLocalHost(); // Get IP Address IPAddress = addr.getHostAddress(); // Get hostname hostname = addr.getHostName(); } catch (Exception e) { hostname = ""; IPAddress = ""; } installdata.setVariable("APPLICATIONS_DEFAULT_ROOT", dir); dir += File.separator; installdata.setVariable(ScriptParser.JAVA_HOME, System.getProperty("java.home")); installdata.setVariable(ScriptParser.CLASS_PATH, System.getProperty("java.class.path")); installdata.setVariable(ScriptParser.USER_HOME, System.getProperty("user.home")); installdata.setVariable(ScriptParser.USER_NAME, System.getProperty("user.name")); installdata.setVariable(ScriptParser.IP_ADDRESS, IPAddress); installdata.setVariable(ScriptParser.HOST_NAME, hostname); installdata.setVariable(ScriptParser.FILE_SEPARATOR, File.separator); Enumeration e = System.getProperties().keys(); while (e.hasMoreElements()) { String varName = (String) e.nextElement(); String varValue = System.getProperty(varName); if (varValue != null) { varName = varName.replace('.', '_'); installdata.setVariable("SYSTEM_" + varName, varValue); } } if (null != variables) { Enumeration enumeration = variables.keys(); String varName; String varValue; while (enumeration.hasMoreElements()) { varName = (String) enumeration.nextElement(); varValue = variables.getProperty(varName); installdata.setVariable(varName, varValue); } } installdata.info = inf; installdata.panelsOrder = panelsOrder; installdata.availablePacks = availablePacks; installdata.allPacks = allPacks; // get list of preselected packs Iterator pack_it = availablePacks.iterator(); while (pack_it.hasNext()) { Pack pack = (Pack) pack_it.next(); if (pack.preselected) installdata.selectedPacks.add(pack); } // Set the installation path in a default manner installPath = dir + inf.getAppName(); if (inf.getInstallationSubPath() != null) { // A subpath was defined, use it. installPath = IoHelper.translatePath(dir + inf.getInstallationSubPath(), new VariableSubstitutor(installdata.getVariables())); } installdata.setInstallPath(installPath); // Load custom action data. loadCustomData(installdata); }
3,239,930
public XInfoPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We add the components infoLabel = new JLabel(parent.langpack.getString("InfoPanel.info"), parent.icons.getImageIcon("edit"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 1, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(); textArea.setEditable(false); JScrollPane scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 1, 1, 1.0, 0.9); gbConstraints.anchor = GridBagConstraints.CENTER; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); }
public XInfoPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We add the components infoLabel = new JLabel(parent.langpack.getString("InfoPanel.info"), parent.icons.getImageIcon("edit"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 1, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.BOTH; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(); textArea.setEditable(false); JScrollPane scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 1, 1, 1.0, 0.9); gbConstraints.anchor = GridBagConstraints.CENTER; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); }
3,239,931
public ObjectPool createPool() { return new GenericObjectPool(_factory,_maxActive,_whenExhaustedAction,_maxWait,_maxIdle,_minIdle,_testOnBorrow,_testOnReturn,_timeBetweenEvictionRunsMillis,_numTestsPerEvictionRun,_minEvictableIdleTimeMillis,_testWhileIdle); }
public ObjectPool createPool() { return new GenericObjectPool(_factory,_maxActive,_whenExhaustedAction,_maxWait,_maxIdle,_minIdle,_testOnBorrow,_testOnReturn,_timeBetweenEvictionRunsMillis,_numTestsPerEvictionRun,_minEvictableIdleTimeMillis,_testWhileIdle,_softMinEvictableIdleTimeMillis); }
3,239,932
public TargetPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); //Initialization this.parent = parent; // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // load the default directory info (if present) loadDefaultDir(); if (defaultDir != null) // override the system default that uses app name (which is set in the Installer class) idata.setInstallPath(defaultDir); // We create and put the components infoLabel = new JLabel( parent.langpack.getString("TargetPanel.info"), parent.icons.getImageIcon("home"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 3.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textField = new JTextField(idata.getInstallPath(), 40); textField.addActionListener(this); parent.buildConstraints(gbConstraints, 0, 1, GridBagConstraints.RELATIVE, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.HORIZONTAL; gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(textField, gbConstraints); add(textField); browseButton = ButtonFactory.createButton( parent.langpack.getString("TargetPanel.browse"), parent.icons.getImageIcon("open"), idata.buttonsHColor); browseButton.addActionListener(this); parent.buildConstraints(gbConstraints, 1, 1, GridBagConstraints.REMAINDER, 1, 0.0, 0.0); gbConstraints.fill = GridBagConstraints.HORIZONTAL; gbConstraints.anchor = GridBagConstraints.EAST; layout.addLayoutComponent(browseButton, gbConstraints); add(browseButton); }
public TargetPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); //Initialization this.parentFrame = parent; // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // load the default directory info (if present) loadDefaultDir(); if (defaultDir != null) // override the system default that uses app name (which is set in the Installer class) idata.setInstallPath(defaultDir); // We create and put the components infoLabel = new JLabel( parent.langpack.getString("TargetPanel.info"), parent.icons.getImageIcon("home"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 3.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textField = new JTextField(idata.getInstallPath(), 40); textField.addActionListener(this); parent.buildConstraints(gbConstraints, 0, 1, GridBagConstraints.RELATIVE, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.HORIZONTAL; gbConstraints.anchor = GridBagConstraints.WEST; layout.addLayoutComponent(textField, gbConstraints); add(textField); browseButton = ButtonFactory.createButton( parent.langpack.getString("TargetPanel.browse"), parent.icons.getImageIcon("open"), idata.buttonsHColor); browseButton.addActionListener(this); parent.buildConstraints(gbConstraints, 1, 1, GridBagConstraints.REMAINDER, 1, 0.0, 0.0); gbConstraints.fill = GridBagConstraints.HORIZONTAL; gbConstraints.anchor = GridBagConstraints.EAST; layout.addLayoutComponent(browseButton, gbConstraints); add(browseButton); }
3,239,933
public void actionPerformed(ActionEvent e) { Object source = e.getSource(); if (source != textField) { // The user wants to browse its filesystem // Prepares the file chooser JFileChooser fc = new JFileChooser(); fc.setCurrentDirectory(new File(textField.getText())); fc.setMultiSelectionEnabled(false); fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); fc.addChoosableFileFilter(fc.getAcceptAllFileFilter()); // Shows it if (fc.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) { String path = fc.getSelectedFile().getAbsolutePath(); File dir = new File(path); if (dir.canWrite()) textField.setText(path); } } else if (source == textField) { parent.navigateNext(); } }
public void actionPerformed(ActionEvent e) { Object source = e.getSource(); if (source != textField) { // The user wants to browse its filesystem // Prepares the file chooser JFileChooser fc = new JFileChooser(); fc.setCurrentDirectory(new File(textField.getText())); fc.setMultiSelectionEnabled(false); fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); fc.addChoosableFileFilter(fc.getAcceptAllFileFilter()); // Shows it if (fc.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) { String path = fc.getSelectedFile().getAbsolutePath(); File dir = new File(path); if (dir.canWrite()) textField.setText(path); } } else if (source == textField) { parentFrame.navigateNext(); } }
3,239,934
public boolean isValidated() { String installPath = textField.getText(); boolean ok = true; // We put a warning if the specified target is nameless if (installPath.length() == 0) { int res = JOptionPane.showConfirmDialog( this, parent.langpack.getString("TargetPanel.empty_target"), parent.langpack.getString("installer.warning"), JOptionPane.YES_NO_OPTION); ok = (res == JOptionPane.YES_OPTION); } if (!ok) return ok; // Normalize the path File path = new File(installPath).getAbsoluteFile(); installPath = path.toString(); // We put a warning if the directory exists else we warn that it will be created if (path.exists()) { int res = JOptionPane.showConfirmDialog( this, parent.langpack.getString("TargetPanel.warn"), parent.langpack.getString("installer.warning"), JOptionPane.YES_NO_OPTION); ok = (res == JOptionPane.YES_OPTION); } else JOptionPane.showMessageDialog( this, parent.langpack.getString("TargetPanel.createdir") + "\n" + installPath); idata.setInstallPath(installPath); return ok; }
public boolean isValidated() { String installPath = textField.getText(); boolean ok = true; // We put a warning if the specified target is nameless if (installPath.length() == 0) { int res = JOptionPane.showConfirmDialog( this, parent.langpack.getString("TargetPanel.empty_target"), parent.langpack.getString("installer.warning"), JOptionPane.YES_NO_OPTION); ok = (res == JOptionPane.YES_OPTION); } if (!ok) return ok; // Normalize the path File path = new File(installPath).getAbsoluteFile(); installPath = path.toString(); // We put a warning if the directory exists else we warn that it will be created if (path.exists()) { int res = JOptionPane.showConfirmDialog( this, parent.langpack.getString("TargetPanel.warn"), parent.langpack.getString("installer.warning"), JOptionPane.YES_NO_OPTION); ok = (res == JOptionPane.YES_OPTION); } else JOptionPane.showMessageDialog( this, parent.langpack.getString("TargetPanel.createdir") + "\n" + installPath); idata.setInstallPath(installPath); return ok; }
3,239,935
public boolean isValidated() { String installPath = textField.getText(); boolean ok = true; // We put a warning if the specified target is nameless if (installPath.length() == 0) { int res = JOptionPane.showConfirmDialog( this, parent.langpack.getString("TargetPanel.empty_target"), parent.langpack.getString("installer.warning"), JOptionPane.YES_NO_OPTION); ok = (res == JOptionPane.YES_OPTION); } if (!ok) return ok; // Normalize the path File path = new File(installPath).getAbsoluteFile(); installPath = path.toString(); // We put a warning if the directory exists else we warn that it will be created if (path.exists()) { int res = JOptionPane.showConfirmDialog( this, parent.langpack.getString("TargetPanel.warn"), parent.langpack.getString("installer.warning"), JOptionPane.YES_NO_OPTION); ok = (res == JOptionPane.YES_OPTION); } else JOptionPane.showMessageDialog( this, parent.langpack.getString("TargetPanel.createdir") + "\n" + installPath); idata.setInstallPath(installPath); return ok; }
public boolean isValidated() { String installPath = textField.getText(); boolean ok = true; // We put a warning if the specified target is nameless if (installPath.length() == 0) { int res = JOptionPane.showConfirmDialog( this, parent.langpack.getString("TargetPanel.empty_target"), parent.langpack.getString("installer.warning"), JOptionPane.YES_NO_OPTION); ok = (res == JOptionPane.YES_OPTION); } if (!ok) return ok; // Normalize the path File path = new File(installPath).getAbsoluteFile(); installPath = path.toString(); // We put a warning if the directory exists else we warn that it will be created if (path.exists()) { int res = JOptionPane.showConfirmDialog( this, parent.langpack.getString("TargetPanel.warn"), parent.langpack.getString("installer.warning"), JOptionPane.YES_NO_OPTION); ok = (res == JOptionPane.YES_OPTION); } else JOptionPane.showMessageDialog( this, parent.langpack.getString("TargetPanel.createdir") + "\n" + installPath); idata.setInstallPath(installPath); return ok; }
3,239,936
public boolean isValidated() { String installPath = textField.getText(); boolean ok = true; // We put a warning if the specified target is nameless if (installPath.length() == 0) { int res = JOptionPane.showConfirmDialog( this, parent.langpack.getString("TargetPanel.empty_target"), parent.langpack.getString("installer.warning"), JOptionPane.YES_NO_OPTION); ok = (res == JOptionPane.YES_OPTION); } if (!ok) return ok; // Normalize the path File path = new File(installPath).getAbsoluteFile(); installPath = path.toString(); // We put a warning if the directory exists else we warn that it will be created if (path.exists()) { int res = JOptionPane.showConfirmDialog( this, parent.langpack.getString("TargetPanel.warn"), parent.langpack.getString("installer.warning"), JOptionPane.YES_NO_OPTION); ok = (res == JOptionPane.YES_OPTION); } else JOptionPane.showMessageDialog( this, parent.langpack.getString("TargetPanel.createdir") + "\n" + installPath); idata.setInstallPath(installPath); return ok; }
public boolean isValidated() { String installPath = textField.getText(); boolean ok = true; // We put a warning if the specified target is nameless if (installPath.length() == 0) { int res = JOptionPane.showConfirmDialog( this, parent.langpack.getString("TargetPanel.empty_target"), parent.langpack.getString("installer.warning"), JOptionPane.YES_NO_OPTION); ok = (res == JOptionPane.YES_OPTION); } if (!ok) return ok; // Normalize the path File path = new File(installPath).getAbsoluteFile(); installPath = path.toString(); // We put a warning if the directory exists else we warn that it will be created if (path.exists()) { int res = JOptionPane.showConfirmDialog( this, parent.langpack.getString("TargetPanel.warn"), parent.langpack.getString("installer.warning"), JOptionPane.YES_NO_OPTION); ok = (res == JOptionPane.YES_OPTION); } else JOptionPane.showMessageDialog( this, parentFrame.langpack.getString("TargetPanel.createdir") + "\n" + installPath); idata.setInstallPath(installPath); return ok; }
3,239,937
public void loadDefaultDir() { BufferedReader br = null; try { String os = System.getProperty("os.name"); InputStream in = null; if (os.regionMatches(true, 0, "windows", 0, 7)) in = parent.getResource("TargetPanel.dir.windows"); else if (os.regionMatches(true, 0, "mac os x", 0, 8)) in = parent.getResource("TargetPanel.dir.macosx"); else if (os.regionMatches(true, 0, "mac", 0, 3)) in = parent.getResource("TargetPanel.dir.mac"); else { // first try to look up by specific os name os = os.replace(' ', '_'); // avoid spaces in file names os = os.toLowerCase(); // for consistency among TargetPanel res files in = parent.getResource("TargetPanel.dir.".concat(os)); // if not specific os, try getting generic 'unix' resource file if (in == null) in = parent.getResource("TargetPanel.dir.unix"); // if all those failed, try to look up a generic dir file if (in == null) in = parent.getResource("TargetPanel.dir"); } // if all above tests failed, there is no resource file, // so use system default if (in == null) return; // now read the file, once we've identified which one to read InputStreamReader isr = new InputStreamReader(in); br = new BufferedReader(isr); String line = null; while ((line = br.readLine()) != null) { line = line.trim(); // use the first non-blank line if (!line.equals("")) break; } defaultDir = line; } catch (Exception e) { defaultDir = null; // leave unset to take the system default set by Installer class } finally { try { if (br != null) br.close(); } catch (IOException ignored) { } } }
public void loadDefaultDir() { BufferedReader br = null; try { String os = System.getProperty("os.name"); InputStream in = null; if (os.regionMatches(true, 0, "windows", 0, 7)) in = parentFrame.getResource("TargetPanel.dir.windows"); else if (os.regionMatches(true, 0, "mac os x", 0, 8)) in = parent.getResource("TargetPanel.dir.macosx"); else if (os.regionMatches(true, 0, "mac", 0, 3)) in = parent.getResource("TargetPanel.dir.mac"); else { // first try to look up by specific os name os = os.replace(' ', '_'); // avoid spaces in file names os = os.toLowerCase(); // for consistency among TargetPanel res files in = parent.getResource("TargetPanel.dir.".concat(os)); // if not specific os, try getting generic 'unix' resource file if (in == null) in = parent.getResource("TargetPanel.dir.unix"); // if all those failed, try to look up a generic dir file if (in == null) in = parent.getResource("TargetPanel.dir"); } // if all above tests failed, there is no resource file, // so use system default if (in == null) return; // now read the file, once we've identified which one to read InputStreamReader isr = new InputStreamReader(in); br = new BufferedReader(isr); String line = null; while ((line = br.readLine()) != null) { line = line.trim(); // use the first non-blank line if (!line.equals("")) break; } defaultDir = line; } catch (Exception e) { defaultDir = null; // leave unset to take the system default set by Installer class } finally { try { if (br != null) br.close(); } catch (IOException ignored) { } } }
3,239,938
public void loadDefaultDir() { BufferedReader br = null; try { String os = System.getProperty("os.name"); InputStream in = null; if (os.regionMatches(true, 0, "windows", 0, 7)) in = parent.getResource("TargetPanel.dir.windows"); else if (os.regionMatches(true, 0, "mac os x", 0, 8)) in = parent.getResource("TargetPanel.dir.macosx"); else if (os.regionMatches(true, 0, "mac", 0, 3)) in = parent.getResource("TargetPanel.dir.mac"); else { // first try to look up by specific os name os = os.replace(' ', '_'); // avoid spaces in file names os = os.toLowerCase(); // for consistency among TargetPanel res files in = parent.getResource("TargetPanel.dir.".concat(os)); // if not specific os, try getting generic 'unix' resource file if (in == null) in = parent.getResource("TargetPanel.dir.unix"); // if all those failed, try to look up a generic dir file if (in == null) in = parent.getResource("TargetPanel.dir"); } // if all above tests failed, there is no resource file, // so use system default if (in == null) return; // now read the file, once we've identified which one to read InputStreamReader isr = new InputStreamReader(in); br = new BufferedReader(isr); String line = null; while ((line = br.readLine()) != null) { line = line.trim(); // use the first non-blank line if (!line.equals("")) break; } defaultDir = line; } catch (Exception e) { defaultDir = null; // leave unset to take the system default set by Installer class } finally { try { if (br != null) br.close(); } catch (IOException ignored) { } } }
public void loadDefaultDir() { BufferedReader br = null; try { String os = System.getProperty("os.name"); InputStream in = null; if (os.regionMatches(true, 0, "windows", 0, 7)) in = parent.getResource("TargetPanel.dir.windows"); else if (os.regionMatches(true, 0, "mac os x", 0, 8)) in = parentFrame.getResource("TargetPanel.dir.macosx"); else if (os.regionMatches(true, 0, "mac", 0, 3)) in = parent.getResource("TargetPanel.dir.mac"); else { // first try to look up by specific os name os = os.replace(' ', '_'); // avoid spaces in file names os = os.toLowerCase(); // for consistency among TargetPanel res files in = parent.getResource("TargetPanel.dir.".concat(os)); // if not specific os, try getting generic 'unix' resource file if (in == null) in = parent.getResource("TargetPanel.dir.unix"); // if all those failed, try to look up a generic dir file if (in == null) in = parent.getResource("TargetPanel.dir"); } // if all above tests failed, there is no resource file, // so use system default if (in == null) return; // now read the file, once we've identified which one to read InputStreamReader isr = new InputStreamReader(in); br = new BufferedReader(isr); String line = null; while ((line = br.readLine()) != null) { line = line.trim(); // use the first non-blank line if (!line.equals("")) break; } defaultDir = line; } catch (Exception e) { defaultDir = null; // leave unset to take the system default set by Installer class } finally { try { if (br != null) br.close(); } catch (IOException ignored) { } } }
3,239,939
public void loadDefaultDir() { BufferedReader br = null; try { String os = System.getProperty("os.name"); InputStream in = null; if (os.regionMatches(true, 0, "windows", 0, 7)) in = parent.getResource("TargetPanel.dir.windows"); else if (os.regionMatches(true, 0, "mac os x", 0, 8)) in = parent.getResource("TargetPanel.dir.macosx"); else if (os.regionMatches(true, 0, "mac", 0, 3)) in = parent.getResource("TargetPanel.dir.mac"); else { // first try to look up by specific os name os = os.replace(' ', '_'); // avoid spaces in file names os = os.toLowerCase(); // for consistency among TargetPanel res files in = parent.getResource("TargetPanel.dir.".concat(os)); // if not specific os, try getting generic 'unix' resource file if (in == null) in = parent.getResource("TargetPanel.dir.unix"); // if all those failed, try to look up a generic dir file if (in == null) in = parent.getResource("TargetPanel.dir"); } // if all above tests failed, there is no resource file, // so use system default if (in == null) return; // now read the file, once we've identified which one to read InputStreamReader isr = new InputStreamReader(in); br = new BufferedReader(isr); String line = null; while ((line = br.readLine()) != null) { line = line.trim(); // use the first non-blank line if (!line.equals("")) break; } defaultDir = line; } catch (Exception e) { defaultDir = null; // leave unset to take the system default set by Installer class } finally { try { if (br != null) br.close(); } catch (IOException ignored) { } } }
public void loadDefaultDir() { BufferedReader br = null; try { String os = System.getProperty("os.name"); InputStream in = null; if (os.regionMatches(true, 0, "windows", 0, 7)) in = parent.getResource("TargetPanel.dir.windows"); else if (os.regionMatches(true, 0, "mac os x", 0, 8)) in = parent.getResource("TargetPanel.dir.macosx"); else if (os.regionMatches(true, 0, "mac", 0, 3)) in = parentFrame.getResource("TargetPanel.dir.mac"); else { // first try to look up by specific os name os = os.replace(' ', '_'); // avoid spaces in file names os = os.toLowerCase(); // for consistency among TargetPanel res files in = parent.getResource("TargetPanel.dir.".concat(os)); // if not specific os, try getting generic 'unix' resource file if (in == null) in = parent.getResource("TargetPanel.dir.unix"); // if all those failed, try to look up a generic dir file if (in == null) in = parent.getResource("TargetPanel.dir"); } // if all above tests failed, there is no resource file, // so use system default if (in == null) return; // now read the file, once we've identified which one to read InputStreamReader isr = new InputStreamReader(in); br = new BufferedReader(isr); String line = null; while ((line = br.readLine()) != null) { line = line.trim(); // use the first non-blank line if (!line.equals("")) break; } defaultDir = line; } catch (Exception e) { defaultDir = null; // leave unset to take the system default set by Installer class } finally { try { if (br != null) br.close(); } catch (IOException ignored) { } } }
3,239,940
public void loadDefaultDir() { BufferedReader br = null; try { String os = System.getProperty("os.name"); InputStream in = null; if (os.regionMatches(true, 0, "windows", 0, 7)) in = parent.getResource("TargetPanel.dir.windows"); else if (os.regionMatches(true, 0, "mac os x", 0, 8)) in = parent.getResource("TargetPanel.dir.macosx"); else if (os.regionMatches(true, 0, "mac", 0, 3)) in = parent.getResource("TargetPanel.dir.mac"); else { // first try to look up by specific os name os = os.replace(' ', '_'); // avoid spaces in file names os = os.toLowerCase(); // for consistency among TargetPanel res files in = parent.getResource("TargetPanel.dir.".concat(os)); // if not specific os, try getting generic 'unix' resource file if (in == null) in = parent.getResource("TargetPanel.dir.unix"); // if all those failed, try to look up a generic dir file if (in == null) in = parent.getResource("TargetPanel.dir"); } // if all above tests failed, there is no resource file, // so use system default if (in == null) return; // now read the file, once we've identified which one to read InputStreamReader isr = new InputStreamReader(in); br = new BufferedReader(isr); String line = null; while ((line = br.readLine()) != null) { line = line.trim(); // use the first non-blank line if (!line.equals("")) break; } defaultDir = line; } catch (Exception e) { defaultDir = null; // leave unset to take the system default set by Installer class } finally { try { if (br != null) br.close(); } catch (IOException ignored) { } } }
public void loadDefaultDir() { BufferedReader br = null; try { String os = System.getProperty("os.name"); InputStream in = null; if (os.regionMatches(true, 0, "windows", 0, 7)) in = parent.getResource("TargetPanel.dir.windows"); else if (os.regionMatches(true, 0, "mac os x", 0, 8)) in = parent.getResource("TargetPanel.dir.macosx"); else if (os.regionMatches(true, 0, "mac", 0, 3)) in = parent.getResource("TargetPanel.dir.mac"); else { // first try to look up by specific os name os = os.replace(' ', '_'); // avoid spaces in file names os = os.toLowerCase(); // for consistency among TargetPanel res files in = parentFrame.getResource("TargetPanel.dir.".concat(os)); // if not specific os, try getting generic 'unix' resource file if (in == null) in = parent.getResource("TargetPanel.dir.unix"); // if all those failed, try to look up a generic dir file if (in == null) in = parent.getResource("TargetPanel.dir"); } // if all above tests failed, there is no resource file, // so use system default if (in == null) return; // now read the file, once we've identified which one to read InputStreamReader isr = new InputStreamReader(in); br = new BufferedReader(isr); String line = null; while ((line = br.readLine()) != null) { line = line.trim(); // use the first non-blank line if (!line.equals("")) break; } defaultDir = line; } catch (Exception e) { defaultDir = null; // leave unset to take the system default set by Installer class } finally { try { if (br != null) br.close(); } catch (IOException ignored) { } } }
3,239,941
public void loadDefaultDir() { BufferedReader br = null; try { String os = System.getProperty("os.name"); InputStream in = null; if (os.regionMatches(true, 0, "windows", 0, 7)) in = parent.getResource("TargetPanel.dir.windows"); else if (os.regionMatches(true, 0, "mac os x", 0, 8)) in = parent.getResource("TargetPanel.dir.macosx"); else if (os.regionMatches(true, 0, "mac", 0, 3)) in = parent.getResource("TargetPanel.dir.mac"); else { // first try to look up by specific os name os = os.replace(' ', '_'); // avoid spaces in file names os = os.toLowerCase(); // for consistency among TargetPanel res files in = parent.getResource("TargetPanel.dir.".concat(os)); // if not specific os, try getting generic 'unix' resource file if (in == null) in = parent.getResource("TargetPanel.dir.unix"); // if all those failed, try to look up a generic dir file if (in == null) in = parent.getResource("TargetPanel.dir"); } // if all above tests failed, there is no resource file, // so use system default if (in == null) return; // now read the file, once we've identified which one to read InputStreamReader isr = new InputStreamReader(in); br = new BufferedReader(isr); String line = null; while ((line = br.readLine()) != null) { line = line.trim(); // use the first non-blank line if (!line.equals("")) break; } defaultDir = line; } catch (Exception e) { defaultDir = null; // leave unset to take the system default set by Installer class } finally { try { if (br != null) br.close(); } catch (IOException ignored) { } } }
public void loadDefaultDir() { BufferedReader br = null; try { String os = System.getProperty("os.name"); InputStream in = null; if (os.regionMatches(true, 0, "windows", 0, 7)) in = parent.getResource("TargetPanel.dir.windows"); else if (os.regionMatches(true, 0, "mac os x", 0, 8)) in = parent.getResource("TargetPanel.dir.macosx"); else if (os.regionMatches(true, 0, "mac", 0, 3)) in = parent.getResource("TargetPanel.dir.mac"); else { // first try to look up by specific os name os = os.replace(' ', '_'); // avoid spaces in file names os = os.toLowerCase(); // for consistency among TargetPanel res files in = parent.getResource("TargetPanel.dir.".concat(os)); // if not specific os, try getting generic 'unix' resource file if (in == null) in = parentFrame.getResource("TargetPanel.dir.unix"); // if all those failed, try to look up a generic dir file if (in == null) in = parent.getResource("TargetPanel.dir"); } // if all above tests failed, there is no resource file, // so use system default if (in == null) return; // now read the file, once we've identified which one to read InputStreamReader isr = new InputStreamReader(in); br = new BufferedReader(isr); String line = null; while ((line = br.readLine()) != null) { line = line.trim(); // use the first non-blank line if (!line.equals("")) break; } defaultDir = line; } catch (Exception e) { defaultDir = null; // leave unset to take the system default set by Installer class } finally { try { if (br != null) br.close(); } catch (IOException ignored) { } } }
3,239,942
public void loadDefaultDir() { BufferedReader br = null; try { String os = System.getProperty("os.name"); InputStream in = null; if (os.regionMatches(true, 0, "windows", 0, 7)) in = parent.getResource("TargetPanel.dir.windows"); else if (os.regionMatches(true, 0, "mac os x", 0, 8)) in = parent.getResource("TargetPanel.dir.macosx"); else if (os.regionMatches(true, 0, "mac", 0, 3)) in = parent.getResource("TargetPanel.dir.mac"); else { // first try to look up by specific os name os = os.replace(' ', '_'); // avoid spaces in file names os = os.toLowerCase(); // for consistency among TargetPanel res files in = parent.getResource("TargetPanel.dir.".concat(os)); // if not specific os, try getting generic 'unix' resource file if (in == null) in = parent.getResource("TargetPanel.dir.unix"); // if all those failed, try to look up a generic dir file if (in == null) in = parent.getResource("TargetPanel.dir"); } // if all above tests failed, there is no resource file, // so use system default if (in == null) return; // now read the file, once we've identified which one to read InputStreamReader isr = new InputStreamReader(in); br = new BufferedReader(isr); String line = null; while ((line = br.readLine()) != null) { line = line.trim(); // use the first non-blank line if (!line.equals("")) break; } defaultDir = line; } catch (Exception e) { defaultDir = null; // leave unset to take the system default set by Installer class } finally { try { if (br != null) br.close(); } catch (IOException ignored) { } } }
public void loadDefaultDir() { BufferedReader br = null; try { String os = System.getProperty("os.name"); InputStream in = null; if (os.regionMatches(true, 0, "windows", 0, 7)) in = parent.getResource("TargetPanel.dir.windows"); else if (os.regionMatches(true, 0, "mac os x", 0, 8)) in = parent.getResource("TargetPanel.dir.macosx"); else if (os.regionMatches(true, 0, "mac", 0, 3)) in = parent.getResource("TargetPanel.dir.mac"); else { // first try to look up by specific os name os = os.replace(' ', '_'); // avoid spaces in file names os = os.toLowerCase(); // for consistency among TargetPanel res files in = parent.getResource("TargetPanel.dir.".concat(os)); // if not specific os, try getting generic 'unix' resource file if (in == null) in = parent.getResource("TargetPanel.dir.unix"); // if all those failed, try to look up a generic dir file if (in == null) in = parentFrame.getResource("TargetPanel.dir"); } // if all above tests failed, there is no resource file, // so use system default if (in == null) return; // now read the file, once we've identified which one to read InputStreamReader isr = new InputStreamReader(in); br = new BufferedReader(isr); String line = null; while ((line = br.readLine()) != null) { line = line.trim(); // use the first non-blank line if (!line.equals("")) break; } defaultDir = line; } catch (Exception e) { defaultDir = null; // leave unset to take the system default set by Installer class } finally { try { if (br != null) br.close(); } catch (IOException ignored) { } } }
3,239,943
protected TestKeyedObjectPoolFactory(final String name) { super(name); }
public TestKeyedObjectPoolFactory(final String name) { super(name); }
3,239,944
public ModelBasedTesting( String graphmlFileName_, Object object_ ) { _graphmlFileName = graphmlFileName_; _object = object_; _logger = Logger.getLogger( ModelBasedTesting.class ); PropertyConfigurator.configure("log4j.properties"); readFiles(); }
public ModelBasedTesting( String graphmlFileName_, Object object_ ) { _graphmlFileName = graphmlFileName_; _object = object_; _logger = Logger.getLogger( ModelBasedTesting.class ); PropertyConfigurator.configure("log4j.properties"); readFiles(); }
3,239,945
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
3,239,946
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
3,239,947
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
3,239,948
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
3,239,949
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
3,239,950
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
3,239,951
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
3,239,952
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
private_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); void_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); analyseSubGraphs() { boolean_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); foundStartGraph_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); false; for_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); Iterator_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); iter_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _graphList.iterator();_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); iter.hasNext();_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ) { SparseGraph_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); g_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (SparseGraph)_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); iter.next(); Object[]_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); vertices_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); g.getVertices().toArray(); for_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); int_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); i_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); 0;_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); i_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); <_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); vertices.length;_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); i++_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ) { DirectedSparseVertex_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (DirectedSparseVertex)vertices[_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); i_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ]; //_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); Find_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); all_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); vertices_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); that_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); are_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); start_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); nodes_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (START_NODE) if_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v.getUserDatum(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); LABEL_KEY_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ).equals(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); START_NODE_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ) { Object[]_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); edges_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v.getOutEdges().toArray(); if_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); edges.length_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); !=_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); 1_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ) { throw_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); new_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); RuntimeException(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "A_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); start_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); nod_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); can_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); only_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); have_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); one_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); out_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); edge,_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); look_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); in_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); file:_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); +_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); g.getUserDatum(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); FILE_KEY_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ); } DirectedSparseEdge_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); edge_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (DirectedSparseEdge)edges[_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); 0_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ]; g.addUserDatum(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); LABEL_KEY,_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); edge.getDest().getUserDatum(LABEL_KEY),_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); UserData.SHARED_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ); if_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); edge.containsUserDatumKey(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); LABEL_KEY_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ) { if_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); foundStartGraph_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ==_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); true_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ) { throw_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); new_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); RuntimeException(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "A_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); start_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); nod_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); can_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); only_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); exist_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); in_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); one_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); file,_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); see_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); files_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); +_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _graph.getUserDatum(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); FILE_KEY_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )+_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ",_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); and_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); +_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); g.getUserDatum(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); FILE_KEY_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ); } foundStartGraph_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); true; _graph_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); g; } else { //_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); Since_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); the_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); edge_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); does_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); not_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); contain_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); a_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); label,_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); this_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); is_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); a_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); subgraph //_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); Mark_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); the_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); destination_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); node_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); of_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); the_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); edge_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); to_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); a_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); subgraph_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); starting_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); node edge.getDest().addUserDatum(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); SUBGRAPH_START_VERTEX,_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); SUBGRAPH_START_VERTEX,_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); UserData.SHARED_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ); } } } } _logger.debug(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "Investigating_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); graph:_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); +_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _graph.getUserDatum(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); LABEL_KEY_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ); for_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); int_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); i_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); 0;_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); i_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); <_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _graphList.size();_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); i++_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ) { SparseGraph_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); g_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (SparseGraph)_graphList.elementAt(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); i_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ); _logger.debug(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "With_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); graph:_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); +_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); g.getUserDatum(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); LABEL_KEY_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); +_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); in_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); file:_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); +_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); g.getUserDatum(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); FILE_KEY_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ); if_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _graph.getUserDatum(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); LABEL_KEY_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ).equals(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); g.getUserDatum(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); LABEL_KEY_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ) { _logger.debug(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); Graphs_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); are_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); the_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); same,_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); next..."_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ); continue; } Object[]_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); vertices_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _graph.getVertices().toArray(); for_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); int_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); j_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); 0;_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); j_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); <_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); vertices.length;_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); j++_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ) { DirectedSparseVertex_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v1_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (DirectedSparseVertex)vertices[_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); j_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ]; _logger.debug(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "Investigating_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); vertex("_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); +_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v1.hashCode()_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); +_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "):_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); +_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v1.getUserDatum(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); LABEL_KEY_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ); if_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v1.getUserDatum(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); LABEL_KEY_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ).equals(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); g.getUserDatum(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); LABEL_KEY_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ) { if_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v1.containsUserDatumKey(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); MERGE_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ) { _logger.debug(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "The_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); vertex_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); is_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); marked_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); MERGE,_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); and_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); will_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); not_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); be_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); replaced_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); by_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); a_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); subgraph."); continue; } if_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v1.containsUserDatumKey(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); NO_MERGE_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ) { _logger.debug(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "The_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); vertex_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); is_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); marked_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); NO_MERGE,_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); and_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); will_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); not_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); be_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); replaced_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); by_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); a_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); subgraph."); continue; } _logger.debug(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "A_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); subgraph'ed_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); vertex:_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); +_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v1.getUserDatum(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); LABEL_KEY_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); +_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); in_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); graph:_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); +_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); g.getUserDatum(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); FILE_KEY_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); + _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ",_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); equals_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); a_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); node_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); in_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); the_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); graph_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); in_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); file:_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); + _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _graph.getUserDatum(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); FILE_KEY_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ); appendGraph(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _graph,_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); g_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _graph,_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v1_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ); //writeGraph("/tmp/debug_merge.graphml"); vertices_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _graph.getVertices().toArray(); i_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); -1; j_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); -1; } } } //_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); Merge_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); all_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); nodes_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); marked_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); MERGE Object[]_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); list1_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _graph.getVertices().toArray(); for_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); int_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); i_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); 0;_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); i_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); <_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); list1.length;_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); i++_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ) { DirectedSparseVertex_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v1_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (DirectedSparseVertex)list1[_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); i_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ]; if_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v1.containsUserDatumKey(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); MERGE_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ==_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); false_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ) { continue; } Object[]_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); list2_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _graph.getVertices().toArray(); for_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); int_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); j_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); 0;_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); j_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); <_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); list2.length;_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); j++_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ) { DirectedSparseVertex_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v2_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (DirectedSparseVertex)list2[_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); j_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ]; if_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v1.hashCode()_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ==_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v2.hashCode()_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ) { continue; } if_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v1.getUserDatum(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); LABEL_KEY_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ).equals(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v2.getUserDatum(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); LABEL_KEY_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ==_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); false_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ) { continue; } _logger.debug(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "Merging_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); vertex("_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); +_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v1.hashCode()_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); +_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "):_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); +_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v1.getUserDatum(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); LABEL_KEY_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); + _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); _logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "with_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); vertex("_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); +_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v2.hashCode()_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ); Object[]_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); inEdges_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v1.getInEdges().toArray(); for_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (int_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); x_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); 0;_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); x_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); <_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); inEdges.length;_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); x++) { DirectedSparseEdge_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); edge_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (DirectedSparseEdge)inEdges[_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); x_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ]; DirectedSparseEdge_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); new_edge_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (DirectedSparseEdge)_graph.addEdge(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); new_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); DirectedSparseEdge(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); edge.getSource(),_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v2_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ); new_edge.importUserData(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); edge_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ); } Object[]_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); outEdges_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v1.getOutEdges().toArray(); for_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (int_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); x_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); 0;_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); x_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); <_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); outEdges.length;_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); x++) { DirectedSparseEdge_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); edge_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (DirectedSparseEdge)outEdges[_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); x_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ]; DirectedSparseEdge_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); new_edge_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); =_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); (DirectedSparseEdge)_graph.addEdge(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); new_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); DirectedSparseEdge(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v2,_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); edge.getDest()_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); )_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ); new_edge.importUserData(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); edge_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ); } _logger.debug(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "Remvoing_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); merged_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); vertex("_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); +_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v1.hashCode()_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); +_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ")"_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ); } _graph.removeVertex(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); v1_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ); } _logger.debug(_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); "Done_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); merging"_logger.debug( "Analysing graph in file: " + g.getUserDatum( FILE_KEY ) ); ); }
3,239,953
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
3,239,954
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
3,239,955
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
3,239,956
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
3,239,957
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
3,239,958
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
private boolean v1IsMerged = false; void boolean v1IsMerged = false; analyseSubGraphs() { boolean boolean v1IsMerged = false; foundStartGraph boolean v1IsMerged = false; = boolean v1IsMerged = false; false; for boolean v1IsMerged = false; ( boolean v1IsMerged = false; Iterator boolean v1IsMerged = false; iter boolean v1IsMerged = false; = boolean v1IsMerged = false; _graphList.iterator(); boolean v1IsMerged = false; iter.hasNext(); boolean v1IsMerged = false; ) { SparseGraph boolean v1IsMerged = false; g boolean v1IsMerged = false; = boolean v1IsMerged = false; (SparseGraph) boolean v1IsMerged = false; iter.next(); Object[] boolean v1IsMerged = false; vertices boolean v1IsMerged = false; = boolean v1IsMerged = false; g.getVertices().toArray(); for boolean v1IsMerged = false; ( boolean v1IsMerged = false; int boolean v1IsMerged = false; i boolean v1IsMerged = false; = boolean v1IsMerged = false; 0; boolean v1IsMerged = false; i boolean v1IsMerged = false; < boolean v1IsMerged = false; vertices.length; boolean v1IsMerged = false; i++ boolean v1IsMerged = false; ) { DirectedSparseVertex boolean v1IsMerged = false; v boolean v1IsMerged = false; = boolean v1IsMerged = false; (DirectedSparseVertex)vertices[ boolean v1IsMerged = false; i boolean v1IsMerged = false; ]; // boolean v1IsMerged = false; Find boolean v1IsMerged = false; all boolean v1IsMerged = false; vertices boolean v1IsMerged = false; that boolean v1IsMerged = false; are boolean v1IsMerged = false; start boolean v1IsMerged = false; nodes boolean v1IsMerged = false; (START_NODE) if boolean v1IsMerged = false; ( boolean v1IsMerged = false; v.getUserDatum( boolean v1IsMerged = false; LABEL_KEY boolean v1IsMerged = false; ).equals( boolean v1IsMerged = false; START_NODE boolean v1IsMerged = false; ) boolean v1IsMerged = false; ) { Object[] boolean v1IsMerged = false; edges boolean v1IsMerged = false; = boolean v1IsMerged = false; v.getOutEdges().toArray(); if boolean v1IsMerged = false; ( boolean v1IsMerged = false; edges.length boolean v1IsMerged = false; != boolean v1IsMerged = false; 1 boolean v1IsMerged = false; ) { throw boolean v1IsMerged = false; new boolean v1IsMerged = false; RuntimeException( boolean v1IsMerged = false; "A boolean v1IsMerged = false; start boolean v1IsMerged = false; nod boolean v1IsMerged = false; can boolean v1IsMerged = false; only boolean v1IsMerged = false; have boolean v1IsMerged = false; one boolean v1IsMerged = false; out boolean v1IsMerged = false; edge, boolean v1IsMerged = false; look boolean v1IsMerged = false; in boolean v1IsMerged = false; file: boolean v1IsMerged = false; " boolean v1IsMerged = false; + boolean v1IsMerged = false; g.getUserDatum( boolean v1IsMerged = false; FILE_KEY boolean v1IsMerged = false; ) boolean v1IsMerged = false; ); } DirectedSparseEdge boolean v1IsMerged = false; edge boolean v1IsMerged = false; = boolean v1IsMerged = false; (DirectedSparseEdge)edges[ boolean v1IsMerged = false; 0 boolean v1IsMerged = false; ]; g.addUserDatum( boolean v1IsMerged = false; LABEL_KEY, boolean v1IsMerged = false; edge.getDest().getUserDatum(LABEL_KEY), boolean v1IsMerged = false; UserData.SHARED boolean v1IsMerged = false; ); if boolean v1IsMerged = false; ( boolean v1IsMerged = false; edge.containsUserDatumKey( boolean v1IsMerged = false; LABEL_KEY boolean v1IsMerged = false; ) boolean v1IsMerged = false; ) { if boolean v1IsMerged = false; ( boolean v1IsMerged = false; foundStartGraph boolean v1IsMerged = false; == boolean v1IsMerged = false; true boolean v1IsMerged = false; ) { throw boolean v1IsMerged = false; new boolean v1IsMerged = false; RuntimeException( boolean v1IsMerged = false; "A boolean v1IsMerged = false; start boolean v1IsMerged = false; nod boolean v1IsMerged = false; can boolean v1IsMerged = false; only boolean v1IsMerged = false; exist boolean v1IsMerged = false; in boolean v1IsMerged = false; one boolean v1IsMerged = false; file, boolean v1IsMerged = false; see boolean v1IsMerged = false; files boolean v1IsMerged = false; " boolean v1IsMerged = false; + boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; _graph.getUserDatum( boolean v1IsMerged = false; FILE_KEY boolean v1IsMerged = false; )+ boolean v1IsMerged = false; ", boolean v1IsMerged = false; and boolean v1IsMerged = false; " boolean v1IsMerged = false; + boolean v1IsMerged = false; g.getUserDatum( boolean v1IsMerged = false; FILE_KEY boolean v1IsMerged = false; ) boolean v1IsMerged = false; ); } foundStartGraph boolean v1IsMerged = false; = boolean v1IsMerged = false; true; _graph boolean v1IsMerged = false; = boolean v1IsMerged = false; g; } else { // boolean v1IsMerged = false; Since boolean v1IsMerged = false; the boolean v1IsMerged = false; edge boolean v1IsMerged = false; does boolean v1IsMerged = false; not boolean v1IsMerged = false; contain boolean v1IsMerged = false; a boolean v1IsMerged = false; label, boolean v1IsMerged = false; this boolean v1IsMerged = false; is boolean v1IsMerged = false; a boolean v1IsMerged = false; subgraph // boolean v1IsMerged = false; Mark boolean v1IsMerged = false; the boolean v1IsMerged = false; destination boolean v1IsMerged = false; node boolean v1IsMerged = false; of boolean v1IsMerged = false; the boolean v1IsMerged = false; edge boolean v1IsMerged = false; to boolean v1IsMerged = false; a boolean v1IsMerged = false; subgraph boolean v1IsMerged = false; starting boolean v1IsMerged = false; node edge.getDest().addUserDatum( boolean v1IsMerged = false; SUBGRAPH_START_VERTEX, boolean v1IsMerged = false; SUBGRAPH_START_VERTEX, boolean v1IsMerged = false; UserData.SHARED boolean v1IsMerged = false; ); } } } } _logger.debug( boolean v1IsMerged = false; "Investigating boolean v1IsMerged = false; graph: boolean v1IsMerged = false; " boolean v1IsMerged = false; + boolean v1IsMerged = false; _graph.getUserDatum( boolean v1IsMerged = false; LABEL_KEY boolean v1IsMerged = false; ) boolean v1IsMerged = false; ); for boolean v1IsMerged = false; ( boolean v1IsMerged = false; int boolean v1IsMerged = false; i boolean v1IsMerged = false; = boolean v1IsMerged = false; 0; boolean v1IsMerged = false; i boolean v1IsMerged = false; < boolean v1IsMerged = false; _graphList.size(); boolean v1IsMerged = false; i++ boolean v1IsMerged = false; ) { SparseGraph boolean v1IsMerged = false; g boolean v1IsMerged = false; = boolean v1IsMerged = false; (SparseGraph)_graphList.elementAt( boolean v1IsMerged = false; i boolean v1IsMerged = false; ); _logger.debug( boolean v1IsMerged = false; "With boolean v1IsMerged = false; graph: boolean v1IsMerged = false; " boolean v1IsMerged = false; + boolean v1IsMerged = false; g.getUserDatum( boolean v1IsMerged = false; LABEL_KEY boolean v1IsMerged = false; ) boolean v1IsMerged = false; + boolean v1IsMerged = false; " boolean v1IsMerged = false; in boolean v1IsMerged = false; file: boolean v1IsMerged = false; " boolean v1IsMerged = false; + boolean v1IsMerged = false; g.getUserDatum( boolean v1IsMerged = false; FILE_KEY boolean v1IsMerged = false; ) boolean v1IsMerged = false; ); if boolean v1IsMerged = false; ( boolean v1IsMerged = false; _graph.getUserDatum( boolean v1IsMerged = false; LABEL_KEY boolean v1IsMerged = false; ).equals( boolean v1IsMerged = false; g.getUserDatum( boolean v1IsMerged = false; LABEL_KEY boolean v1IsMerged = false; ) boolean v1IsMerged = false; ) boolean v1IsMerged = false; ) { _logger.debug( boolean v1IsMerged = false; " boolean v1IsMerged = false; boolean v1IsMerged = false; Graphs boolean v1IsMerged = false; are boolean v1IsMerged = false; the boolean v1IsMerged = false; same, boolean v1IsMerged = false; next..." boolean v1IsMerged = false; ); continue; } Object[] boolean v1IsMerged = false; vertices boolean v1IsMerged = false; = boolean v1IsMerged = false; _graph.getVertices().toArray(); for boolean v1IsMerged = false; ( boolean v1IsMerged = false; int boolean v1IsMerged = false; j boolean v1IsMerged = false; = boolean v1IsMerged = false; 0; boolean v1IsMerged = false; j boolean v1IsMerged = false; < boolean v1IsMerged = false; vertices.length; boolean v1IsMerged = false; j++ boolean v1IsMerged = false; ) { DirectedSparseVertex boolean v1IsMerged = false; v1 boolean v1IsMerged = false; = boolean v1IsMerged = false; (DirectedSparseVertex)vertices[ boolean v1IsMerged = false; j boolean v1IsMerged = false; ]; _logger.debug( boolean v1IsMerged = false; "Investigating boolean v1IsMerged = false; vertex(" boolean v1IsMerged = false; + boolean v1IsMerged = false; v1.hashCode() boolean v1IsMerged = false; + boolean v1IsMerged = false; "): boolean v1IsMerged = false; " boolean v1IsMerged = false; + boolean v1IsMerged = false; v1.getUserDatum( boolean v1IsMerged = false; LABEL_KEY boolean v1IsMerged = false; ) boolean v1IsMerged = false; ); if boolean v1IsMerged = false; ( boolean v1IsMerged = false; v1.getUserDatum( boolean v1IsMerged = false; LABEL_KEY boolean v1IsMerged = false; ).equals( boolean v1IsMerged = false; g.getUserDatum( boolean v1IsMerged = false; LABEL_KEY boolean v1IsMerged = false; ) boolean v1IsMerged = false; ) boolean v1IsMerged = false; ) { if boolean v1IsMerged = false; ( boolean v1IsMerged = false; v1.containsUserDatumKey( boolean v1IsMerged = false; MERGE boolean v1IsMerged = false; ) boolean v1IsMerged = false; ) { _logger.debug( boolean v1IsMerged = false; "The boolean v1IsMerged = false; vertex boolean v1IsMerged = false; is boolean v1IsMerged = false; marked boolean v1IsMerged = false; MERGE, boolean v1IsMerged = false; and boolean v1IsMerged = false; will boolean v1IsMerged = false; not boolean v1IsMerged = false; be boolean v1IsMerged = false; replaced boolean v1IsMerged = false; by boolean v1IsMerged = false; a boolean v1IsMerged = false; subgraph."); continue; } if boolean v1IsMerged = false; ( boolean v1IsMerged = false; v1.containsUserDatumKey( boolean v1IsMerged = false; NO_MERGE boolean v1IsMerged = false; ) boolean v1IsMerged = false; ) { _logger.debug( boolean v1IsMerged = false; "The boolean v1IsMerged = false; vertex boolean v1IsMerged = false; is boolean v1IsMerged = false; marked boolean v1IsMerged = false; NO_MERGE, boolean v1IsMerged = false; and boolean v1IsMerged = false; will boolean v1IsMerged = false; not boolean v1IsMerged = false; be boolean v1IsMerged = false; replaced boolean v1IsMerged = false; by boolean v1IsMerged = false; a boolean v1IsMerged = false; subgraph."); continue; } _logger.debug( boolean v1IsMerged = false; "A boolean v1IsMerged = false; subgraph'ed boolean v1IsMerged = false; vertex: boolean v1IsMerged = false; " boolean v1IsMerged = false; + boolean v1IsMerged = false; v1.getUserDatum( boolean v1IsMerged = false; LABEL_KEY boolean v1IsMerged = false; ) boolean v1IsMerged = false; + boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; " boolean v1IsMerged = false; in boolean v1IsMerged = false; graph: boolean v1IsMerged = false; " boolean v1IsMerged = false; + boolean v1IsMerged = false; g.getUserDatum( boolean v1IsMerged = false; FILE_KEY boolean v1IsMerged = false; ) boolean v1IsMerged = false; boolean v1IsMerged = false; + boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; ", boolean v1IsMerged = false; equals boolean v1IsMerged = false; a boolean v1IsMerged = false; node boolean v1IsMerged = false; in boolean v1IsMerged = false; the boolean v1IsMerged = false; graph boolean v1IsMerged = false; in boolean v1IsMerged = false; file: boolean v1IsMerged = false; " boolean v1IsMerged = false; + boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; _graph.getUserDatum( boolean v1IsMerged = false; FILE_KEY boolean v1IsMerged = false; ) boolean v1IsMerged = false; ); appendGraph( boolean v1IsMerged = false; _graph, boolean v1IsMerged = false; g boolean v1IsMerged = false; ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( boolean v1IsMerged = false; _graph, boolean v1IsMerged = false; v1 boolean v1IsMerged = false; ); //writeGraph("/tmp/debug_merge.graphml"); vertices boolean v1IsMerged = false; = boolean v1IsMerged = false; _graph.getVertices().toArray(); i boolean v1IsMerged = false; = boolean v1IsMerged = false; -1; j boolean v1IsMerged = false; = boolean v1IsMerged = false; -1; } } } // boolean v1IsMerged = false; Merge boolean v1IsMerged = false; all boolean v1IsMerged = false; nodes boolean v1IsMerged = false; marked boolean v1IsMerged = false; MERGE Object[] boolean v1IsMerged = false; list1 boolean v1IsMerged = false; = boolean v1IsMerged = false; _graph.getVertices().toArray(); for boolean v1IsMerged = false; ( boolean v1IsMerged = false; int boolean v1IsMerged = false; i boolean v1IsMerged = false; = boolean v1IsMerged = false; 0; boolean v1IsMerged = false; i boolean v1IsMerged = false; < boolean v1IsMerged = false; list1.length; boolean v1IsMerged = false; i++ boolean v1IsMerged = false; ) { DirectedSparseVertex boolean v1IsMerged = false; v1 boolean v1IsMerged = false; = boolean v1IsMerged = false; (DirectedSparseVertex)list1[ boolean v1IsMerged = false; i boolean v1IsMerged = false; ]; if boolean v1IsMerged = false; ( boolean v1IsMerged = false; v1.containsUserDatumKey( boolean v1IsMerged = false; MERGE boolean v1IsMerged = false; ) boolean v1IsMerged = false; == boolean v1IsMerged = false; false boolean v1IsMerged = false; ) { continue; } Object[] boolean v1IsMerged = false; list2 boolean v1IsMerged = false; = boolean v1IsMerged = false; _graph.getVertices().toArray(); for boolean v1IsMerged = false; ( boolean v1IsMerged = false; int boolean v1IsMerged = false; j boolean v1IsMerged = false; = boolean v1IsMerged = false; 0; boolean v1IsMerged = false; j boolean v1IsMerged = false; < boolean v1IsMerged = false; list2.length; boolean v1IsMerged = false; j++ boolean v1IsMerged = false; ) { DirectedSparseVertex boolean v1IsMerged = false; v2 boolean v1IsMerged = false; = boolean v1IsMerged = false; (DirectedSparseVertex)list2[ boolean v1IsMerged = false; j boolean v1IsMerged = false; ]; if boolean v1IsMerged = false; ( boolean v1IsMerged = false; v1.hashCode() boolean v1IsMerged = false; == boolean v1IsMerged = false; v2.hashCode() boolean v1IsMerged = false; ) { continue; } if boolean v1IsMerged = false; ( boolean v1IsMerged = false; v1.getUserDatum( boolean v1IsMerged = false; LABEL_KEY boolean v1IsMerged = false; ).equals( boolean v1IsMerged = false; v2.getUserDatum( boolean v1IsMerged = false; LABEL_KEY boolean v1IsMerged = false; ) boolean v1IsMerged = false; ) boolean v1IsMerged = false; == boolean v1IsMerged = false; false boolean v1IsMerged = false; ) { continue; } _logger.debug( boolean v1IsMerged = false; "Merging boolean v1IsMerged = false; vertex(" boolean v1IsMerged = false; + boolean v1IsMerged = false; v1.hashCode() boolean v1IsMerged = false; + boolean v1IsMerged = false; "): boolean v1IsMerged = false; " boolean v1IsMerged = false; + boolean v1IsMerged = false; v1.getUserDatum( boolean v1IsMerged = false; LABEL_KEY boolean v1IsMerged = false; ) boolean v1IsMerged = false; + boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; boolean v1IsMerged = false; "with boolean v1IsMerged = false; vertex(" boolean v1IsMerged = false; + boolean v1IsMerged = false; v2.hashCode() boolean v1IsMerged = false; ); Object[] boolean v1IsMerged = false; inEdges boolean v1IsMerged = false; = boolean v1IsMerged = false; v1.getInEdges().toArray(); for boolean v1IsMerged = false; (int boolean v1IsMerged = false; x boolean v1IsMerged = false; = boolean v1IsMerged = false; 0; boolean v1IsMerged = false; x boolean v1IsMerged = false; < boolean v1IsMerged = false; inEdges.length; boolean v1IsMerged = false; x++) { DirectedSparseEdge boolean v1IsMerged = false; edge boolean v1IsMerged = false; = boolean v1IsMerged = false; (DirectedSparseEdge)inEdges[ boolean v1IsMerged = false; x boolean v1IsMerged = false; ]; DirectedSparseEdge boolean v1IsMerged = false; new_edge boolean v1IsMerged = false; = boolean v1IsMerged = false; (DirectedSparseEdge)_graph.addEdge( boolean v1IsMerged = false; new boolean v1IsMerged = false; DirectedSparseEdge( boolean v1IsMerged = false; edge.getSource(), boolean v1IsMerged = false; v2 boolean v1IsMerged = false; ) boolean v1IsMerged = false; ); new_edge.importUserData( boolean v1IsMerged = false; edge boolean v1IsMerged = false; ); } Object[] boolean v1IsMerged = false; outEdges boolean v1IsMerged = false; = boolean v1IsMerged = false; v1.getOutEdges().toArray(); for boolean v1IsMerged = false; (int boolean v1IsMerged = false; x boolean v1IsMerged = false; = boolean v1IsMerged = false; 0; boolean v1IsMerged = false; x boolean v1IsMerged = false; < boolean v1IsMerged = false; outEdges.length; boolean v1IsMerged = false; x++) { DirectedSparseEdge boolean v1IsMerged = false; edge boolean v1IsMerged = false; = boolean v1IsMerged = false; (DirectedSparseEdge)outEdges[ boolean v1IsMerged = false; x boolean v1IsMerged = false; ]; DirectedSparseEdge boolean v1IsMerged = false; new_edge boolean v1IsMerged = false; = boolean v1IsMerged = false; (DirectedSparseEdge)_graph.addEdge( boolean v1IsMerged = false; new boolean v1IsMerged = false; DirectedSparseEdge( boolean v1IsMerged = false; v2, boolean v1IsMerged = false; edge.getDest() boolean v1IsMerged = false; ) boolean v1IsMerged = false; ); new_edge.importUserData( boolean v1IsMerged = false; edge boolean v1IsMerged = false; ); } _logger.debug( boolean v1IsMerged = false; "Remvoing boolean v1IsMerged = false; merged boolean v1IsMerged = false; vertex(" boolean v1IsMerged = false; + boolean v1IsMerged = false; v1.hashCode() boolean v1IsMerged = false; + boolean v1IsMerged = false; ")" boolean v1IsMerged = false; ); } _graph.removeVertex( boolean v1IsMerged = false; v1 boolean v1IsMerged = false; ); } _logger.debug( boolean v1IsMerged = false; "Done boolean v1IsMerged = false; merging" boolean v1IsMerged = false; ); }
3,239,959