IncrementalPM/src/evaluation/Evaluation.java
private static Object[] importPNMLObjects(String fileName, PluginContext context) throws Exception {
		File netFile = new File(fileName);
		PnmlImportUtils utils = new PnmlImportUtils();
		Pnml pnml = utils.importPnmlFromStream(context, new FileInputStream(netFile), netFile.getName(),
				netFile.length());
		//			net = (Petrinet) netImport.importFromStream(

		PetrinetGraph netGraph = PetrinetFactory.newPetrinet(pnml.getLabel() + " (imported from " + netFile.getName()
				+ ")");

		Marking marking = new Marking();
		GraphLayoutConnection layout = new GraphLayoutConnection(netGraph);
		pnml.convertToNet(netGraph, marking, layout);
		if(context!=null) {
			context.addConnection(new InitialMarkingConnection(netGraph, marking));
			context.addConnection(layout);
		}
		Petrinet net = (Petrinet) netGraph;
		
		for(org.processmining.models.graphbased.directed.petrinet.elements.Transition t : net.getTransitions())
			if(t.getLabel().equals(""))
				t.setInvisible(true);

		Object[] netObjects = new Object[]{net, marking};
		return netObjects;
	}
/**
	 * import a pnml file and convert it to a list of pnmlobjects
	 * @param fileName
	 * @param context
	 * @return
	 * @throws Exception
	 */
import a pnml file and convert it to a list of pnmlobjects
@param fileName
@param context
@return
@throws Exception
import a pnml file and convert it to a list of pnmlobjects @param fileName @param context @return @throws Exception
private static Object[] importPNMLObjects(String fileName, PluginContext context) throws Exception {
		File netFile = new File(fileName);
		PnmlImportUtils utils = new PnmlImportUtils();
		Pnml pnml = utils.importPnmlFromStream(context, new FileInputStream(netFile), netFile.getName(),
				netFile.length());
		PetrinetGraph netGraph = PetrinetFactory.newPetrinet(pnml.getLabel() + " (imported from " + netFile.getName()
				+ ")");
		Marking marking = new Marking();
		GraphLayoutConnection layout = new GraphLayoutConnection(netGraph);
		pnml.convertToNet(netGraph, marking, layout);
		if(context!=null) {
			context.addConnection(new InitialMarkingConnection(netGraph, marking));
			context.addConnection(layout);
		}
		Petrinet net = (Petrinet) netGraph;
		for(org.processmining.models.graphbased.directed.petrinet.elements.Transition t : net.getTransitions())
			if(t.getLabel().equals(""))
				t.setInvisible(true);
		Object[] netObjects = new Object[]{net, marking};
		return netObjects;
	}
private static Object [ ] importPNMLObjects ( String fileName , PluginContext context ) throws Exception { File netFile = new File ( fileName ) ; PnmlImportUtils utils = new PnmlImportUtils ( ) ; Pnml pnml = utils . importPnmlFromStream ( context , new FileInputStream ( netFile ) , netFile . getName ( ) , netFile . length ( ) ) ; PetrinetGraph netGraph = PetrinetFactory . newPetrinet ( pnml . getLabel ( ) + " (imported from " + netFile . getName ( ) + ")" ) ; Marking marking = new Marking ( ) ; GraphLayoutConnection layout = new GraphLayoutConnection ( netGraph ) ; pnml . convertToNet ( netGraph , marking , layout ) ; if ( context != null ) { context . addConnection ( new InitialMarkingConnection ( netGraph , marking ) ) ; context . addConnection ( layout ) ; } Petrinet net = ( Petrinet ) netGraph ; for ( org . processmining . models . graphbased . directed . petrinet . elements . Transition t : net . getTransitions ( ) ) if ( t . getLabel ( ) . equals ( "" ) ) t . setInvisible ( true ) ; Object [ ] netObjects = new Object [ ] { net , marking } ; return netObjects ; }
import a pnml file and convert it to a list of pnmlobjects
 @param fileName
 @param context
 @return
 @throws Exception
import a pnml file and convert it to a list of pnmlobjects @param fileName @param context @return @throws Exception
//			net = (Petrinet) netImport.importFromStream(