org.processmining.exporting.petrinet.cpnexport
Class ManagerConfiguration

java.lang.Object
  extended by org.processmining.exporting.petrinet.cpnexport.ManagerConfiguration

public class ManagerConfiguration
extends java.lang.Object

The Configuration Manager class has to keep track of which simulation information exactly has to be exported to the cpn file (data, resources, timing information, logging functions). Furthermore, it should ensure that there are conflicts with regard to the exported simulation model (e.g. that there resources included in the model and that at the same time waiting times are included in the model).

Author:
arozinat, rmans

Constructor Summary
ManagerConfiguration()
          Private constructor to prevent the creation of more than one configuration manager object (Singleton pattern).
 
Method Summary
static ManagerConfiguration getInstance()
          Retrieves the only instance of this configuration manager (Singleton pattern).
 javax.swing.JPanel getPanel()
          Creates GUI panel containg the configuration options, ready to display in some settings dialog.
 int getWaitingRatio()
          Retrives the value of waiting ratio
 boolean isDataPerspectiveEnabled()
          Retrieves whether the data perspective is enabled or not
 boolean isLoggingEnabled()
          Retrieves whether the logging is enabled or not
 boolean isOnlyExecutionTimeEnabled()
          Retrieves whether only the execution time is enabled.
 boolean isOnlySojournTimeEnabled()
          Retrieves whether only the sojourn time is enabled
 boolean isOnlyWaitingAndExecutionTimeEnabled()
          Retrieves whether the only the waiting time and the execution time are enabled
 boolean isResourcePerspectiveEnabled()
          Retrieves whether the resource perspective is enabled or not
 boolean isTimePerspectiveEnabled()
          Retrieves whether the time perspective is enabled or not
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagerConfiguration

public ManagerConfiguration()
Private constructor to prevent the creation of more than one configuration manager object (Singleton pattern). Use getInstance() instead to retrieve the single object available.

Method Detail

getInstance

public static ManagerConfiguration getInstance()
Retrieves the only instance of this configuration manager (Singleton pattern).

Returns:
the global configuration manager

isDataPerspectiveEnabled

public boolean isDataPerspectiveEnabled()
Retrieves whether the data perspective is enabled or not

Returns:
boolean true when the data perspective is enabled and false when the data perspective is disabled

isTimePerspectiveEnabled

public boolean isTimePerspectiveEnabled()
Retrieves whether the time perspective is enabled or not

Returns:
boolean true when the time perspective is enabled and false when the time perspective is disabled

isOnlyExecutionTimeEnabled

public boolean isOnlyExecutionTimeEnabled()
Retrieves whether only the execution time is enabled.

Returns:
boolean

isOnlyWaitingAndExecutionTimeEnabled

public boolean isOnlyWaitingAndExecutionTimeEnabled()
Retrieves whether the only the waiting time and the execution time are enabled

Returns:
boolean

isOnlySojournTimeEnabled

public boolean isOnlySojournTimeEnabled()
Retrieves whether only the sojourn time is enabled

Returns:
boolean

isResourcePerspectiveEnabled

public boolean isResourcePerspectiveEnabled()
Retrieves whether the resource perspective is enabled or not

Returns:
boolean true when the resource perspective is enabled and false when the resource perspective is disabled

getWaitingRatio

public int getWaitingRatio()
Retrives the value of waiting ratio

Returns:
the waiting ratio

isLoggingEnabled

public boolean isLoggingEnabled()
Retrieves whether the logging is enabled or not

Returns:
boolean true when the logging is enabled and false when the logging is disabled

getPanel

public javax.swing.JPanel getPanel()
Creates GUI panel containg the configuration options, ready to display in some settings dialog.

Returns:
the graphical panel representing the configuration options