org.processmining.framework.models.pdm.algorithms
Class PDMDesignReader

java.lang.Object
  extended by org.processmining.framework.models.pdm.algorithms.PDMDesignReader

public class PDMDesignReader
extends java.lang.Object

Title: PDM design reader

Description: Parses and reads the incoming PDM design file, loads the corresponding activities into the ProM framework and connects it to the corresponding elements of the PDM model.

Copyright: Copyright (c) 2006

Company:

Version:
1.0
Author:
Irene Vanderfeesten

Constructor Summary
PDMDesignReader()
           
PDMDesignReader(PDMModel model)
          Create the reader
 
Method Summary
 PDMDesign getDesign()
           
 void parseActivity(org.w3c.dom.Node rootNode, PDMDesign design)
          Parses an XML node of the type Activity
 void parseDesign(org.w3c.dom.Node rootNode, PDMProcessModel pm)
          Parses an XML node of the type Design
 void parseOperation(org.w3c.dom.Node rootNode, PDMActivity activity)
          Parses an XML node of the type Operation
 PDMProcessModel read(java.io.InputStream input, PDMModel model)
          Read the PDM file waiting in the given stream, recognize a PDM model and store it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDMDesignReader

public PDMDesignReader()

PDMDesignReader

public PDMDesignReader(PDMModel model)
Create the reader

Method Detail

read

public PDMProcessModel read(java.io.InputStream input,
                            PDMModel model)
                     throws java.lang.Exception
Read the PDM file waiting in the given stream, recognize a PDM model and store it.

Throws:
java.lang.Exception

parseDesign

public void parseDesign(org.w3c.dom.Node rootNode,
                        PDMProcessModel pm)
Parses an XML node of the type Design

Parameters:
rootNode - Node
model - PDMDesign

parseActivity

public void parseActivity(org.w3c.dom.Node rootNode,
                          PDMDesign design)
Parses an XML node of the type Activity

Parameters:
rootNode - Node
model - PDMModel

parseOperation

public void parseOperation(org.w3c.dom.Node rootNode,
                           PDMActivity activity)
Parses an XML node of the type Operation

Parameters:
rootNode - Node
model - PDMModel

getDesign

public PDMDesign getDesign()