Class Pes
- java.lang.Object
-
- org.processmining.primeminer.models.Pes
-
public class Pes extends java.lang.ObjectA model PrimeEventStructure of Pes with nodes and arcs- Author:
- Robert Bergenthum, Raphael Meyer
-
-
Constructor Summary
Constructors Constructor Description Pes()Default Constructor sets nodes and arcs with empty ArrayLists
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddArc(PesNode n1, PesNode n2)Add an Arc to Pes between two nodesvoidcrop()function to initialize the crop the pre work to check if nodes are fusiblevoidcrop(PesNode initialNode)actual crop function; fusible of nodes Attention: it removes elements from this.nodes which could end in an java.util.ConcurrentModificationException.java.util.ArrayList<PesArc>getArcs()java.util.ArrayList<PesNode>getNodes()PrimeEventStructuregetPrime()voidprintPes()Output of Pes() usefull for debug and statisticsvoidsetArcs(java.util.ArrayList<PesArc> arcs)voidsetNodes(java.util.ArrayList<PesNode> nodes)
-
-
-
Method Detail
-
addArc
public void addArc(PesNode n1, PesNode n2)
Add an Arc to Pes between two nodes- Parameters:
n1- the first noden2- the second node
-
printPes
public void printPes()
Output of Pes() usefull for debug and statistics
-
crop
public void crop()
function to initialize the crop the pre work to check if nodes are fusible
-
crop
public void crop(PesNode initialNode)
actual crop function; fusible of nodes Attention: it removes elements from this.nodes which could end in an java.util.ConcurrentModificationException. So dont iterate through this.nodes and remove from it. Also we have a copy of postnodes to iterate in this method.- Parameters:
initialNode- is a node which should be cropped
-
getPrime
public PrimeEventStructure getPrime()
- Returns:
- a PrimeEventStructure
-
getNodes
public java.util.ArrayList<PesNode> getNodes()
- Returns:
- the nodes of the Pes
-
setNodes
public void setNodes(java.util.ArrayList<PesNode> nodes)
- Parameters:
nodes- set the nodes Pes
-
getArcs
public java.util.ArrayList<PesArc> getArcs()
- Returns:
- the arcs of Pes
-
setArcs
public void setArcs(java.util.ArrayList<PesArc> arcs)
- Parameters:
arcs- set the arcs of Pes
-
-