org.processmining.framework.models.yawl.algorithms
Class YAWLReader

java.lang.Object
  extended by org.processmining.framework.models.yawl.algorithms.YAWLReader

public class YAWLReader
extends java.lang.Object

Title: YAWL parser/reader

Description: Parses and reads the incoming YAWL file, and loads the corresponding model into the ProM framework.

Copyright: Copyright (c) 2004

Company:

Version:
1.0
Author:
Eric Verbeek

Method Summary
static void parseCondition(org.w3c.dom.Node rootNode, YAWLDecomposition decomposition)
          Add a normal condition to the given decomposition, starting from the given node.
static void parseDecomposition(org.w3c.dom.Node rootNode, YAWLModel model, boolean isRootNet)
          Add a decomposition to the given model, starting from the given node.
static void parseFlowsInto(org.w3c.dom.Node rootNode, YAWLDecomposition decomposition)
          Adds a normal edge to the given decomposition, starting from the given node.
static void parseInputCondition(org.w3c.dom.Node rootNode, YAWLDecomposition decomposition)
          Add an input condition to the given decomposition, starting from the given node.
static void parseOutputCondition(org.w3c.dom.Node rootNode, YAWLDecomposition decomposition)
          Add an output condition to the given decomposition, starting from the given node.
static void parseProcessControlElements(org.w3c.dom.Node rootNode, YAWLDecomposition decomposition)
          Add all nodes and edges to given decomposition, starting from the given node
static void parseRemovesTokens(org.w3c.dom.Node rootNode, YAWLDecomposition decomposition)
          Adds a reset edge to the given decomposition, starting from the given node.
static void parseTask(org.w3c.dom.Node rootNode, YAWLDecomposition decomposition)
          Add a task to the given decomposition, starting from the given node.
static YAWLModel read(java.io.InputStream input)
          Read the YAWL file waiting in the given stream, recognize a YAWL model, and store it as a MiningResult.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

read

public static YAWLModel read(java.io.InputStream input)
                      throws java.lang.Exception
Read the YAWL file waiting in the given stream, recognize a YAWL model, and store it as a MiningResult.

Parameters:
input - The given stream
Returns:
The MiningResult
Throws:
java.lang.Exception - If anything fails

parseDecomposition

public static void parseDecomposition(org.w3c.dom.Node rootNode,
                                      YAWLModel model,
                                      boolean isRootNet)
Add a decomposition to the given model, starting from the given node.

Parameters:
rootNode - The given node
model - The given model

parseProcessControlElements

public static void parseProcessControlElements(org.w3c.dom.Node rootNode,
                                               YAWLDecomposition decomposition)
Add all nodes and edges to given decomposition, starting from the given node

Parameters:
rootNode - The given node
decomposition - The given decomposition

parseInputCondition

public static void parseInputCondition(org.w3c.dom.Node rootNode,
                                       YAWLDecomposition decomposition)
Add an input condition to the given decomposition, starting from the given node.

Parameters:
rootNode - The given node
decomposition - The given decomposition

parseOutputCondition

public static void parseOutputCondition(org.w3c.dom.Node rootNode,
                                        YAWLDecomposition decomposition)
Add an output condition to the given decomposition, starting from the given node.

Parameters:
rootNode - The given node
decomposition - The given decomposition

parseCondition

public static void parseCondition(org.w3c.dom.Node rootNode,
                                  YAWLDecomposition decomposition)
Add a normal condition to the given decomposition, starting from the given node.

Parameters:
rootNode - The given node
decomposition - The given decomposition

parseTask

public static void parseTask(org.w3c.dom.Node rootNode,
                             YAWLDecomposition decomposition)
Add a task to the given decomposition, starting from the given node.

Parameters:
rootNode - The given node
decomposition - The given decomposition

parseFlowsInto

public static void parseFlowsInto(org.w3c.dom.Node rootNode,
                                  YAWLDecomposition decomposition)
Adds a normal edge to the given decomposition, starting from the given node.

Parameters:
rootNode - The given node
decomposition - The given decomposition

parseRemovesTokens

public static void parseRemovesTokens(org.w3c.dom.Node rootNode,
                                      YAWLDecomposition decomposition)
Adds a reset edge to the given decomposition, starting from the given node.

Parameters:
rootNode - The given node
decomposition - The given decomposition