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

de.uni.freiburg.iig.telematik.sepia.petrinet.timedNet.TimedMarking 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!
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package de.uni.freiburg.iig.telematik.sepia.petrinet.timedNet;

import java.util.List;
import java.util.Map.Entry;

import de.uni.freiburg.iig.telematik.sepia.petrinet.timedNet.abstr.AbstractTimedMarking;

/**
 *
 * @author richard
 */
public class TimedMarking extends AbstractTimedMarking {

	@Override
	public TimedMarking clone() {
		// do not clone. instead give direct reference
		// return this;
		TimedMarking newMarking = new TimedMarking();
		for (String placeName : placeStates.keySet()) {
			newMarking.set(placeName, (int) placeStates.get(placeName));
		}
		for (Entry> keyValue : pendingActions.entrySet()) {
			for (String s : keyValue.getValue()) {
				newMarking.addPendingAction(s, keyValue.getKey());
			}
		}
		return newMarking;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy