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

de.uni.freiburg.iig.telematik.sepia.graphic.netgraphics.AbstractIFNetGraphics 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.graphic.netgraphics;

import java.util.HashMap;
import java.util.Map;

import de.uni.freiburg.iig.telematik.sepia.graphic.netgraphics.attributes.Position;
import de.uni.freiburg.iig.telematik.sepia.petrinet.ifnet.abstr.AbstractIFNetFlowRelation;
import de.uni.freiburg.iig.telematik.sepia.petrinet.ifnet.abstr.AbstractIFNetMarking;
import de.uni.freiburg.iig.telematik.sepia.petrinet.ifnet.abstr.AbstractIFNetPlace;
import de.uni.freiburg.iig.telematik.sepia.petrinet.ifnet.abstr.AbstractIFNetTransition;

public class AbstractIFNetGraphics

, T extends AbstractIFNetTransition, F extends AbstractIFNetFlowRelation, M extends AbstractIFNetMarking> extends AbstractCPNGraphics { private Map accessFunctionGraphics = new HashMap(); private Map subjectGraphics = new HashMap(); private Position clearancesPosition = new Position(); private Position tokenLabelsPosition = new Position(); public Map getAccessFunctionGraphics() { return accessFunctionGraphics; } public Position getClearancesPosition() { return clearancesPosition; } public Map getSubjectGraphics() { return subjectGraphics; } public Position getTokenLabelsPosition() { return tokenLabelsPosition; } public void setAccessFunctionGraphics(Map accessFunctionGraphics) { this.accessFunctionGraphics = accessFunctionGraphics; } public void setClearancesPosition(Position clearancesPosition) { this.clearancesPosition = clearancesPosition; } public void setSubjectGraphics(Map subjectGraphics) { this.subjectGraphics = subjectGraphics; } public void setTokenLabelsPosition(Position tokenLabelsPosition) { this.tokenLabelsPosition = tokenLabelsPosition; } @Override public String toString() { StringBuilder str = new StringBuilder(); str.append(super.toString()); str.append(" accessFunctionGraphics# " + accessFunctionGraphics.size()); if (accessFunctionGraphics.size() > 0) str.append(":\n" + map2Str(accessFunctionGraphics) + "\n"); else str.append("\n"); str.append(" subjectGraphics# " + subjectGraphics.size()); if (subjectGraphics.size() > 0) str.append(":\n" + map2Str(subjectGraphics) + "\n"); else str.append("\n"); if (clearancesPosition != null) str.append(" clearancesPosition#: " + clearancesPosition + "\n"); if (tokenLabelsPosition != null) str.append(" tokenLabelsPosition#: " + tokenLabelsPosition + "\n"); return str.toString(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy