IncrementalPM/src/evaluation/Evaluation.java
public static  TransEvClassMapping computeTransEventMapping(String inputName, XLog log, PetrinetGraph net, XEventClassifier classifier) {
		XEventClass evClassDummy = EvClassLogPetrinetConnectionFactoryUI.DUMMY;
		TransEvClassMapping mapping = new TransEvClassMapping(classifier, evClassDummy);
		XEventClasses ecLog = XLogInfoFactory.createLogInfo(log, classifier).getEventClasses();
		
		//for RTFM_model2 mapping needs to be constructed manually
		if(inputName.equals("RTFM_model2")) {
			for (XEventClass clazz : ecLog.getClasses()) {
				System.out.println(clazz.getId());
			}
			for (Transition t : net.getTransitions()) {
				XEventClass eventClass = ecLog.getByIdentity(t.getLabel() + "+complete");
				if (eventClass == null) {
					eventClass = ecLog.getByIdentity(t.getLabel() + "+COMPLETE");
				}
				if (eventClass == null) {
					eventClass = ecLog.getByIdentity(t.getLabel());
				}
				if (eventClass == null) {
					if (t.getLabel().equals("Create fine"))
						eventClass = ecLog.getByIdentity("Create Fine+complete");
					if (t.getLabel().equals("Payment"))
						eventClass = ecLog.getByIdentity("Payment+complete");
					if (t.getLabel().equals("Send Fine"))
						eventClass = ecLog.getByIdentity("Send Fine+complete");
					if (t.getLabel().equals("Add Penalty"))
						eventClass = ecLog.getByIdentity("Add penalty+complete");					
					if (t.getLabel().equals("Send for Credit Collection"))
						eventClass = ecLog.getByIdentity("Send for Credit Collection+complete");
					if (t.getLabel().equals("Appeal to judge"))
						eventClass = ecLog.getByIdentity("Appeal to Judge+complete");
					if (t.getLabel().equals("Notification"))
						eventClass = ecLog.getByIdentity("Insert Fine Notification+complete");
					if (t.getLabel().equals("Appeal to Prefecture"))
						eventClass = ecLog.getByIdentity("Insert Date Appeal to Prefecture+complete");
					if (t.getLabel().equals("Send Appeal"))
						eventClass = ecLog.getByIdentity("Send Appeal to Prefecture+complete");
					if (t.getLabel().equals("Receive result"))
						eventClass = ecLog.getByIdentity("Receive Result Appeal from Prefecture+complete");
					if (t.getLabel().equals("Notify Offender"))
						eventClass = ecLog.getByIdentity("Notify Result Appeal to Offender+complete");
				}
				if (eventClass != null) {
					System.out.println("Transition "+t.getLabel()+" -> EventClass "+eventClass.getId());
					mapping.put(t, eventClass);
				} else {
					System.out.println("Transition "+t.getLabel()+" -> EventClass "+evClassDummy.getId());
					mapping.put(t, evClassDummy);
					t.setInvisible(true);
				}
				
			}
			return mapping;
		}
		
		for (Transition t : net.getTransitions()) {
			//for standard classifiers this maps transitions onto the activity with the same concept:name+complete as lifecycle information (all but BPI2012)
			//for name classifiers this maps transitions onto the event with the same concept:name (BPI2012)
			//TODO: this part is rather hacky, I'll admit.
			XEventClass eventClass = ecLog.getByIdentity(t.getLabel() + "+complete");
			if (eventClass == null) {
				eventClass = ecLog.getByIdentity(t.getLabel() + "+COMPLETE");
			}
			if (eventClass == null) {
				eventClass = ecLog.getByIdentity(t.getLabel());
			}
			
			if (eventClass != null) {
				System.out.println("Transition "+t.getLabel()+" -> EventClass "+eventClass.getId());
				mapping.put(t, eventClass);
			} else {
				System.out.println("Transition "+t.getLabel()+" -> EventClass "+evClassDummy.getId());
				mapping.put(t, evClassDummy);
				t.setInvisible(true);
			}
		}
		return mapping;
	}
/**
	 * construct an activity-event mapping for used logs and model
	 * @param log
	 * @param net
	 * @return transition-to-eventclass mapping
	 */
construct an activity-event mapping for used logs and model
@param log
@param net
@return transition-to-eventclass mapping
construct an activity - event mapping for used logs and model @param log @param net @return transition - to - eventclass mapping
public static  TransEvClassMapping computeTransEventMapping(String inputName, XLog log, PetrinetGraph net, XEventClassifier classifier) {
		XEventClass evClassDummy = EvClassLogPetrinetConnectionFactoryUI.DUMMY;
		TransEvClassMapping mapping = new TransEvClassMapping(classifier, evClassDummy);
		XEventClasses ecLog = XLogInfoFactory.createLogInfo(log, classifier).getEventClasses();
		if(inputName.equals("RTFM_model2")) {
			for (XEventClass clazz : ecLog.getClasses()) {
				System.out.println(clazz.getId());
			}
			for (Transition t : net.getTransitions()) {
				XEventClass eventClass = ecLog.getByIdentity(t.getLabel() + "+complete");
				if (eventClass == null) {
					eventClass = ecLog.getByIdentity(t.getLabel() + "+COMPLETE");
				}
				if (eventClass == null) {
					eventClass = ecLog.getByIdentity(t.getLabel());
				}
				if (eventClass == null) {
					if (t.getLabel().equals("Create fine"))
						eventClass = ecLog.getByIdentity("Create Fine+complete");
					if (t.getLabel().equals("Payment"))
						eventClass = ecLog.getByIdentity("Payment+complete");
					if (t.getLabel().equals("Send Fine"))
						eventClass = ecLog.getByIdentity("Send Fine+complete");
					if (t.getLabel().equals("Add Penalty"))
						eventClass = ecLog.getByIdentity("Add penalty+complete");					
					if (t.getLabel().equals("Send for Credit Collection"))
						eventClass = ecLog.getByIdentity("Send for Credit Collection+complete");
					if (t.getLabel().equals("Appeal to judge"))
						eventClass = ecLog.getByIdentity("Appeal to Judge+complete");
					if (t.getLabel().equals("Notification"))
						eventClass = ecLog.getByIdentity("Insert Fine Notification+complete");
					if (t.getLabel().equals("Appeal to Prefecture"))
						eventClass = ecLog.getByIdentity("Insert Date Appeal to Prefecture+complete");
					if (t.getLabel().equals("Send Appeal"))
						eventClass = ecLog.getByIdentity("Send Appeal to Prefecture+complete");
					if (t.getLabel().equals("Receive result"))
						eventClass = ecLog.getByIdentity("Receive Result Appeal from Prefecture+complete");
					if (t.getLabel().equals("Notify Offender"))
						eventClass = ecLog.getByIdentity("Notify Result Appeal to Offender+complete");
				}
				if (eventClass != null) {
					System.out.println("Transition "+t.getLabel()+" -> EventClass "+eventClass.getId());
					mapping.put(t, eventClass);
				} else {
					System.out.println("Transition "+t.getLabel()+" -> EventClass "+evClassDummy.getId());
					mapping.put(t, evClassDummy);
					t.setInvisible(true);
				}
			}
			return mapping;
		}
		for (Transition t : net.getTransitions()) {
			XEventClass eventClass = ecLog.getByIdentity(t.getLabel() + "+complete");
			if (eventClass == null) {
				eventClass = ecLog.getByIdentity(t.getLabel() + "+COMPLETE");
			}
			if (eventClass == null) {
				eventClass = ecLog.getByIdentity(t.getLabel());
			}
			if (eventClass != null) {
				System.out.println("Transition "+t.getLabel()+" -> EventClass "+eventClass.getId());
				mapping.put(t, eventClass);
			} else {
				System.out.println("Transition "+t.getLabel()+" -> EventClass "+evClassDummy.getId());
				mapping.put(t, evClassDummy);
				t.setInvisible(true);
			}
		}
		return mapping;
	}
public static TransEvClassMapping computeTransEventMapping ( String inputName , XLog log , PetrinetGraph net , XEventClassifier classifier ) { XEventClass evClassDummy = EvClassLogPetrinetConnectionFactoryUI . DUMMY ; TransEvClassMapping mapping = new TransEvClassMapping ( classifier , evClassDummy ) ; XEventClasses ecLog = XLogInfoFactory . createLogInfo ( log , classifier ) . getEventClasses ( ) ; if ( inputName . equals ( "RTFM_model2" ) ) { for ( XEventClass clazz : ecLog . getClasses ( ) ) { System . out . println ( clazz . getId ( ) ) ; } for ( Transition t : net . getTransitions ( ) ) { XEventClass eventClass = ecLog . getByIdentity ( t . getLabel ( ) + "+complete" ) ; if ( eventClass == null ) { eventClass = ecLog . getByIdentity ( t . getLabel ( ) + "+COMPLETE" ) ; } if ( eventClass == null ) { eventClass = ecLog . getByIdentity ( t . getLabel ( ) ) ; } if ( eventClass == null ) { if ( t . getLabel ( ) . equals ( "Create fine" ) ) eventClass = ecLog . getByIdentity ( "Create Fine+complete" ) ; if ( t . getLabel ( ) . equals ( "Payment" ) ) eventClass = ecLog . getByIdentity ( "Payment+complete" ) ; if ( t . getLabel ( ) . equals ( "Send Fine" ) ) eventClass = ecLog . getByIdentity ( "Send Fine+complete" ) ; if ( t . getLabel ( ) . equals ( "Add Penalty" ) ) eventClass = ecLog . getByIdentity ( "Add penalty+complete" ) ; if ( t . getLabel ( ) . equals ( "Send for Credit Collection" ) ) eventClass = ecLog . getByIdentity ( "Send for Credit Collection+complete" ) ; if ( t . getLabel ( ) . equals ( "Appeal to judge" ) ) eventClass = ecLog . getByIdentity ( "Appeal to Judge+complete" ) ; if ( t . getLabel ( ) . equals ( "Notification" ) ) eventClass = ecLog . getByIdentity ( "Insert Fine Notification+complete" ) ; if ( t . getLabel ( ) . equals ( "Appeal to Prefecture" ) ) eventClass = ecLog . getByIdentity ( "Insert Date Appeal to Prefecture+complete" ) ; if ( t . getLabel ( ) . equals ( "Send Appeal" ) ) eventClass = ecLog . getByIdentity ( "Send Appeal to Prefecture+complete" ) ; if ( t . getLabel ( ) . equals ( "Receive result" ) ) eventClass = ecLog . getByIdentity ( "Receive Result Appeal from Prefecture+complete" ) ; if ( t . getLabel ( ) . equals ( "Notify Offender" ) ) eventClass = ecLog . getByIdentity ( "Notify Result Appeal to Offender+complete" ) ; } if ( eventClass != null ) { System . out . println ( "Transition " + t . getLabel ( ) + " -> EventClass " + eventClass . getId ( ) ) ; mapping . put ( t , eventClass ) ; } else { System . out . println ( "Transition " + t . getLabel ( ) + " -> EventClass " + evClassDummy . getId ( ) ) ; mapping . put ( t , evClassDummy ) ; t . setInvisible ( true ) ; } } return mapping ; } for ( Transition t : net . getTransitions ( ) ) { XEventClass eventClass = ecLog . getByIdentity ( t . getLabel ( ) + "+complete" ) ; if ( eventClass == null ) { eventClass = ecLog . getByIdentity ( t . getLabel ( ) + "+COMPLETE" ) ; } if ( eventClass == null ) { eventClass = ecLog . getByIdentity ( t . getLabel ( ) ) ; } if ( eventClass != null ) { System . out . println ( "Transition " + t . getLabel ( ) + " -> EventClass " + eventClass . getId ( ) ) ; mapping . put ( t , eventClass ) ; } else { System . out . println ( "Transition " + t . getLabel ( ) + " -> EventClass " + evClassDummy . getId ( ) ) ; mapping . put ( t , evClassDummy ) ; t . setInvisible ( true ) ; } } return mapping ; }
construct an activity-event mapping for used logs and model
 @param log
 @param net
 @return transition-to-eventclass mapping
construct an activity - event mapping for used logs and model @param log @param net @return transition - to - eventclass mapping
//for RTFM_model2 mapping needs to be constructed manually //for standard classifiers this maps transitions onto the activity with the same concept:name+complete as lifecycle information (all but BPI2012) //for name classifiers this maps transitions onto the event with the same concept:name (BPI2012) //TODO: this part is rather hacky, I'll admit.