org.processmining.framework.ui
Class ComboBoxLogEvent

java.lang.Object
  extended by org.processmining.framework.ui.ComboBoxLogEvent
All Implemented Interfaces:
java.lang.Comparable, LogEventProvider

public class ComboBoxLogEvent
extends java.lang.Object
implements java.lang.Comparable, LogEventProvider

A ComboBoxLogEvent is used when a mapping is to be established between an imported model and a loaded log. In this case every task in the model needs to be either

  1. associated to an existing log event from the log, or
  2. made invisible (i.e., no log event will be associated at all), or
  3. kept visible (i.e., a dummy log event will be associated to the task as it is visible, but the corresponding log event is not contained in the log).

Author:
bvdonge

Field Summary
static java.lang.String INVISIBLE
           
static java.lang.String NONE
           
static java.lang.String VISIBLE
           
 
Constructor Summary
ComboBoxLogEvent(LogEvent e)
          Creates a ComboboxLogEvent for the given log event.
 
Method Summary
 int compareTo(java.lang.Object object)
          Overrides the compareTo method in order to whether the given object is smaller or greater than this one.
 boolean equals(java.lang.Object o)
          Overrides the equals method in order to specify when two ComboBoxLogEvents are equal to each other.
 LogEvent getLogEvent()
          Retrieves the log event belonging to this ComboBoxLogEvent entry.
 LogEvent getModelElement()
          Deprecated. Please now use getLogEvent()
 void setLogEvent(LogEvent le)
          Sets the associated log event.
 void setModelElement(LogEvent le)
          Deprecated. Please now use setLogEvent(LogEvent le)
 java.lang.String toString()
          Creates the string to be displayed in the corresponding combo box entry.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VISIBLE

public static final java.lang.String VISIBLE
See Also:
Constant Field Values

INVISIBLE

public static final java.lang.String INVISIBLE
See Also:
Constant Field Values

NONE

public static final java.lang.String NONE
See Also:
Constant Field Values
Constructor Detail

ComboBoxLogEvent

public ComboBoxLogEvent(LogEvent e)
Creates a ComboboxLogEvent for the given log event.

Parameters:
e - the given log event
Method Detail

toString

public java.lang.String toString()
Creates the string to be displayed in the corresponding combo box entry.

Overrides:
toString in class java.lang.Object

getModelElement

public LogEvent getModelElement()
Deprecated. Please now use getLogEvent()

Returns:
LogEvent The stored LogEvent
See Also:
This method returns the current LogEvent the LogEventProvider has stored

setModelElement

public void setModelElement(LogEvent le)
Deprecated. Please now use setLogEvent(LogEvent le)

Parameters:
le - LogEvent The LogEvent to Store
See Also:
This method sets the LogEvent for the LogEventProvider to store

getLogEvent

public LogEvent getLogEvent()
Retrieves the log event belonging to this ComboBoxLogEvent entry.

Specified by:
getLogEvent in interface LogEventProvider
Returns:
the stored LogEvent

setLogEvent

public void setLogEvent(LogEvent le)
Sets the associated log event.

Specified by:
setLogEvent in interface LogEventProvider
Parameters:
le - the log event to be associated to this ComboBoxLogEvent

equals

public boolean equals(java.lang.Object o)
Overrides the equals method in order to specify when two ComboBoxLogEvents are equal to each other.

Overrides:
equals in class java.lang.Object
Parameters:
o - the ComboBoxLogEvent to be compared with
Returns:
true if the associated log events are equal, false otherwise

compareTo

public int compareTo(java.lang.Object object)
Overrides the compareTo method in order to whether the given object is smaller or greater than this one. This is used in order to sort the ComboBoxLogEvent entries in the combo box.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
object - the ComboBoxLogEvent to be compared with
Returns:
-1 if given object is considered smaller, 1 if given object is considered greater than this one