org.processmining.mining.pdmmining
Class PDMResult

java.lang.Object
  extended by org.processmining.mining.pdmmining.PDMResult
All Implemented Interfaces:
Provider, LogReaderConnection, MiningResult

public class PDMResult
extends java.lang.Object
implements MiningResult, Provider, LogReaderConnection

Title: PDM Result

Description: MiningResult for PDM

Copyright: Copyright (c) 2006

Company:

Version:
1.0
Author:
Irene Vanderfeesten

Field Summary
protected  LogReader log
           
protected  PDMModel model
           
 
Constructor Summary
PDMResult(LogReader log, PDMModel model)
          Set the loaded YAWL model
 
Method Summary
 void connectWith(LogReader newLog, java.util.HashMap eventsMapping)
          Connects a LogReader to the object.
 java.util.ArrayList getConnectableObjects()
          Returns all connectable objects of the underlying model.
 LogReader getLogReader()
          No log reader
 ProvidedObject[] getProvidedObjects()
          Provide all objects
 javax.swing.JComponent getVisualization()
          Visualize the YAWL model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

protected PDMModel model

log

protected LogReader log
Constructor Detail

PDMResult

public PDMResult(LogReader log,
                 PDMModel model)
Set the loaded YAWL model

Parameters:
log - The corresponding log
model - The loaded model
Method Detail

getProvidedObjects

public ProvidedObject[] getProvidedObjects()
Provide all objects

Specified by:
getProvidedObjects in interface Provider
Returns:
The loaded YAWL model as a ProvidedObject

getVisualization

public javax.swing.JComponent getVisualization()
Visualize the YAWL model

Specified by:
getVisualization in interface MiningResult
Returns:
The JPAnel visualizing the YAWL model

getLogReader

public LogReader getLogReader()
No log reader

Specified by:
getLogReader in interface MiningResult
Returns:
null

getConnectableObjects

public java.util.ArrayList getConnectableObjects()
Returns all connectable objects of the underlying model.

Specified by:
getConnectableObjects in interface LogReaderConnection
Returns:
all connectable objects of the underlying model

connectWith

public void connectWith(LogReader newLog,
                        java.util.HashMap eventsMapping)
Connects a LogReader to the object. The eventsMapping variable is a HashMap that has a key for every LogEvent returned by the getLogEvents method. Each key is a LogEvent and it is associated with a Object[2] object. This array contains two objects. The first object is again a LogEvent object, to which the original should be mapped. The second is a String object, representing the label that should be used for the identifier of the underlying graphical object. All LogEvents in the underlying model will be translated using this mapping. The eventsMapping parameter may be null.

Specified by:
connectWith in interface LogReaderConnection
Parameters:
newLog - the log reader to connect
eventsMapping - the events to map