de.uni.freiburg.iig.telematik.sepia.petrinet.ifnet.IFNetFlowRelation 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.ifnet;
import de.invation.code.toval.types.Multiset;
import de.invation.code.toval.validate.ParameterException;
import de.uni.freiburg.iig.telematik.sepia.petrinet.ifnet.abstr.AbstractIFNetFlowRelation;
import de.uni.freiburg.iig.telematik.sepia.petrinet.ifnet.abstr.AbstractIFNetTransition;
public class IFNetFlowRelation extends AbstractIFNetFlowRelation> {
private static final long serialVersionUID = 8266335039396091886L;
public IFNetFlowRelation(AbstractIFNetTransition transition, IFNetPlace place, Multiset constraint) {
super(transition, place, constraint);
}
public IFNetFlowRelation(AbstractIFNetTransition transition, IFNetPlace place) {
super(transition, place);
}
public IFNetFlowRelation(IFNetPlace place, AbstractIFNetTransition transition, Multiset constraint) {
super(place, transition, constraint);
}
public IFNetFlowRelation(IFNetPlace place, AbstractIFNetTransition transition) {
super(place, transition);
}
@Override
public IFNetFlowRelation clone(IFNetPlace place, AbstractIFNetTransition transition, boolean directionPT) {
IFNetFlowRelation result = null;
try {
// Can't set direction afterwards. The default name could be wrong then when testing for equality.
if (directionPT)
result = new IFNetFlowRelation(place, transition);
else
result = new IFNetFlowRelation(transition, place);
result.setConstraint(getConstraint().clone());
} catch (ParameterException e) {
e.printStackTrace();
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy