org.processmining.mining.pdmmining
Class PDMPetriNetResult

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

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

Title:

Description:

Copyright: Copyright (c) 2004

Company:

Version:
1.0
Author:
not attributable

Field Summary
protected  LogReader log
           
 
Constructor Summary
PDMPetriNetResult()
           
PDMPetriNetResult(PDMPetriNet net)
           
 
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()
          Returns the LogReader object that was used to generate this mining result.
 ProvidedObject[] getProvidedObjects()
          Provide all objects
 javax.swing.JComponent getVisualization()
          Returns a component that contains the visualization of this mining result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected LogReader log
Constructor Detail

PDMPetriNetResult

public PDMPetriNetResult()

PDMPetriNetResult

public PDMPetriNetResult(PDMPetriNet net)
Method Detail

getVisualization

public javax.swing.JComponent getVisualization()
Returns a component that contains the visualization of this mining result. This function should return null if this result cannot be visualized.

Specified by:
getVisualization in interface MiningResult
Returns:
a component that contains the visualization of this mining result or null if this result cannot be visualized

getLogReader

public LogReader getLogReader()
Returns the LogReader object that was used to generate this mining result. This function may return null.

Specified by:
getLogReader in interface MiningResult
Returns:
the LogReader object that was used to generate this mining result or null.

getProvidedObjects

public ProvidedObject[] getProvidedObjects()
Provide all objects

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

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

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