IncrementalPM/src/evaluation/Evaluation.java
public static XLog loadLog(String path) {
		File file = new File(path);
		XFactory  factory = XFactoryRegistry.instance().currentDefault();
		XParser parser = new XesXmlParser(factory);
		//XMxmlParser parser = new XMxmlParser();
		
		try {
    		XLog log = parser.parse(file).get(0);
    		XAttribute source = new XAttributeLiteralImpl("source", file.getName());
    		log.getAttributes().put("source", source);
    		System.out.println("Loaded log with: " + log.size() + " traces.");
    		return log;
		} catch (Exception e) {
			System.err.println("FAILED TO LOAD LOG FROM: " + file);
		}
		return null;
	}
/**
	 * load a log and convert is to XLog
	 * @param path - path to log, relative to cwd
	 * @return
	 */
load a log and convert is to XLog
@param path - path to log, relative to cwd
@return
load a log and convert is to XLog @param path - path to log relative to cwd @return
public static XLog loadLog(String path) {
		File file = new File(path);
		XFactory  factory = XFactoryRegistry.instance().currentDefault();
		XParser parser = new XesXmlParser(factory);
		try {
    		XLog log = parser.parse(file).get(0);
    		XAttribute source = new XAttributeLiteralImpl("source", file.getName());
    		log.getAttributes().put("source", source);
    		System.out.println("Loaded log with: " + log.size() + " traces.");
    		return log;
		} catch (Exception e) {
			System.err.println("FAILED TO LOAD LOG FROM: " + file);
		}
		return null;
	}
public static XLog loadLog ( String path ) { File file = new File ( path ) ; XFactory factory = XFactoryRegistry . instance ( ) . currentDefault ( ) ; XParser parser = new XesXmlParser ( factory ) ; try { XLog log = parser . parse ( file ) . get ( 0 ) ; XAttribute source = new XAttributeLiteralImpl ( "source" , file . getName ( ) ) ; log . getAttributes ( ) . put ( "source" , source ) ; System . out . println ( "Loaded log with: " + log . size ( ) + " traces." ) ; return log ; } catch ( Exception e ) { System . err . println ( "FAILED TO LOAD LOG FROM: " + file ) ; } return null ; }
load a log and convert is to XLog
 @param path - path to log, relative to cwd
 @return
load a log and convert is to XLog @param path - path to log relative to cwd @return
//XMxmlParser parser = new XMxmlParser();