de.uni.freiburg.iig.telematik.sepia.graphic.netgraphics.AbstractCPNGraphics 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.graphic.netgraphics;
import java.awt.Color;
import java.util.HashMap;
import java.util.Map;
import de.invation.code.toval.types.Multiset;
import de.uni.freiburg.iig.telematik.sepia.petrinet.cpn.abstr.AbstractCPNFlowRelation;
import de.uni.freiburg.iig.telematik.sepia.petrinet.cpn.abstr.AbstractCPNMarking;
import de.uni.freiburg.iig.telematik.sepia.petrinet.cpn.abstr.AbstractCPNPlace;
import de.uni.freiburg.iig.telematik.sepia.petrinet.cpn.abstr.AbstractCPNTransition;
/**
* {@link AbstractPNGraphics} implementation for the CPNs.
*
* @author Thomas Stocker
* @author Adrian Lange
*/
public abstract class AbstractCPNGraphics,
T extends AbstractCPNTransition,
F extends AbstractCPNFlowRelation,
M extends AbstractCPNMarking>
extends AbstractPNGraphics
> {
public AbstractCPNGraphics() {
super();
}
protected Map colors = new HashMap();
public Map getColors() {
return colors;
}
public void setColors(Map colors) {
this.colors = colors;
}
@Override
public String toString() {
StringBuilder str = new StringBuilder();
str.append(super.toString());
if (colors.size() > 0) {
str.append(" tokenColors# " + colors.size());
if (colors.size() > 0)
str.append(":\n" + map2Str(colors) + "\n");
else
str.append("\n");
}
return str.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy