All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.uni.freiburg.iig.telematik.jagal.ts.EventFactory Maven / Gradle / Ivy

Go to download

JAGAL provides implementations for directed graphs (weighted and unweighted) and various types of transition systems as well as utils for graph traversal and modification.

The newest version!
package de.uni.freiburg.iig.telematik.jagal.ts;


public class EventFactory{

	private final Class eventClass;

	public EventFactory(Class eventClass){
		this.eventClass = eventClass;
	}

	public E createEvent(){
		try {
			return eventClass.newInstance();
		} catch (InstantiationException | IllegalAccessException ex) {
			throw new RuntimeException("Event factory failed", ex);
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy