package dk.dtu.compute.mbse.tutorial.yawl.simulator.application; import org.pnml.tools.epnk.applications.ApplicationFactory; import org.pnml.tools.epnk.applications.ApplicationWithUIManager; import org.pnml.tools.epnk.pnmlcoremodel.PetriNet; // TODO chage this to the Path of your YAWL type import dk.dtu.compute.mbse.yawl.YAWLNet; public class YAWLSimulatorFactory extends ApplicationFactory { @Override public String getName() { return "YAWL Simulator"; } @Override public String getDescription() { return "A simple YAWL simulator not yet taken XOR, OR and RESET arcs into account"; } @Override public boolean isApplicable(PetriNet net) { // TODO change YAWLNet to the class representing your YAWL type return net.getType() instanceof YAWLNet; } @Override public ApplicationWithUIManager startApplication(PetriNet net) { // TODO return an instance of your YAWL Simulator application return new YAWLSimulator(net); } }