de.uni.freiburg.iig.telematik.sepia.serialize.LabelingSerialization Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SEPIA Show documentation
Show all versions of SEPIA Show documentation
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.File;
import java.io.IOException;
import de.invation.code.toval.file.FileUtils;
import de.invation.code.toval.validate.Validate;
import de.uni.freiburg.iig.telematik.sepia.petrinet.ifnet.concepts.Labeling;
public class LabelingSerialization {
public static String serialize(Labeling labeling) throws SerializationException {
Validate.notNull(labeling);
return new LabelingSerializer(labeling).serialize();
}
public static void serialize(Labeling labeling, String fileName) throws SerializationException, IOException {
Validate.noDirectory(fileName);
File file = new File(fileName);
serialize(labeling, FileUtils.getPath(file), FileUtils.separateFileNameFromEnding(file));
}
public static void serialize(Labeling labeling, String path, String fileName) throws SerializationException, IOException {
Validate.notNull(labeling);
new LabelingSerializer(labeling).serialize(path, fileName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy