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

de.uni.freiburg.iig.telematik.sepia.petrinet.pt.PTFlowRelation 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.petrinet.pt;

import de.invation.code.toval.validate.ParameterException;
import de.uni.freiburg.iig.telematik.sepia.petrinet.pt.abstr.AbstractPTFlowRelation;

public class PTFlowRelation extends AbstractPTFlowRelation {
	
	private static final long serialVersionUID = -3304816705522086793L;

	public PTFlowRelation(PTPlace p, PTTransition t, int weight) throws ParameterException {
		super(p, t);
		setWeight(weight);
	}

	public PTFlowRelation(PTPlace p, PTTransition t) {
		super(p, t);
	}

	public PTFlowRelation(PTTransition transition, PTPlace place, int weight) {
		super(transition, place);
		setWeight(weight);
	}

	public PTFlowRelation(PTTransition t, PTPlace p) {
		super(t, p);
	}

	@Override
	public PTFlowRelation clone(PTPlace place, PTTransition transition, boolean directionPT) {
		PTFlowRelation result = null;
		try {
			if (getDirectionPT())
				result = new PTFlowRelation(place, transition);
			else
				result = new PTFlowRelation(transition, place);
			result.setDirectionPT(getDirectionPT());
			result.setWeight(getWeight());
		} catch (ParameterException e) {
			e.printStackTrace();
		}
		return result;
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy