
de.uni.freiburg.iig.telematik.jagal.ts.EventFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JAGAL Show documentation
Show all versions of JAGAL Show documentation
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 extends E> eventClass;
public EventFactory(Class extends E> 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