de.uni.freiburg.iig.telematik.sepia.petrinet.PNComplexity 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.petrinet;
import java.io.Serializable;
public class PNComplexity implements Serializable{
private static final long serialVersionUID = 5621037978404236958L;
private static final String complexityFormat = "|P| = %s, |T| = %s, |F| = %s";
public int numPlaces = -1;
public int numTransitions = -1;
public int numRelations = -1;
public PNComplexity(int numPlaces, int numTransitions, int numRelations) {
super();
this.numPlaces = numPlaces;
this.numTransitions = numTransitions;
this.numRelations = numRelations;
}
@Override
public String toString(){
return String.format(complexityFormat, numPlaces, numTransitions, numRelations);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy