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

de.uni.freiburg.iig.telematik.sepia.serialize.PNSerializer_XML Maven / Gradle / Ivy

Go to download

SEPIA provides implementations for various types of Petri nets. Along Place/Transition-nets, it supports Petri nets with distinguishable token colors and defines coloured workflow nets, where coloured tokens are interpreted as data elements used during process execution. To support information flow analysis of processes, SEPIA defines so-called IF-Nets, tailored for security-oriented workflow modeling which enable users to assign security-levels (HIGH, LOW) to transitions, data elements and persons/agents participating in the process execution.

The newest version!
package de.uni.freiburg.iig.telematik.sepia.serialize;

import java.io.IOException;

import de.uni.freiburg.iig.telematik.sepia.graphic.AbstractGraphicalPN;
import de.uni.freiburg.iig.telematik.sepia.graphic.netgraphics.AbstractPNGraphics;
import de.uni.freiburg.iig.telematik.sepia.petrinet.abstr.AbstractFlowRelation;
import de.uni.freiburg.iig.telematik.sepia.petrinet.abstr.AbstractMarking;
import de.uni.freiburg.iig.telematik.sepia.petrinet.abstr.AbstractPetriNet;
import de.uni.freiburg.iig.telematik.sepia.petrinet.abstr.AbstractPlace;
import de.uni.freiburg.iig.telematik.sepia.petrinet.abstr.AbstractTransition;

public abstract class PNSerializer_XML

, T extends AbstractTransition, F extends AbstractFlowRelation, M extends AbstractMarking, S extends Object, N extends AbstractPetriNet, G extends AbstractPNGraphics> extends PNSerializer { public PNSerializer_XML(AbstractGraphicalPN petriNet) { super(petriNet); initialize(); } public PNSerializer_XML(N petriNet) { super(petriNet); initialize(); } protected void initialize() { support = new XMLSerializationSupport(getRootElementName()); } protected abstract String getRootElementName(); protected abstract void addContent() throws SerializationException; @Override public String serialize() throws SerializationException { addContent(); return support.serialize(); } @Override public void serialize(String path, String fileName) throws SerializationException, IOException { addContent(); support.serialize(path, fileName, getFileExtension()); } protected abstract String getFileExtension(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy