control
Class Operation

java.lang.Object
  extended by control.Operation
Direct Known Subclasses:
ModelOperation, TextOperation

public abstract class Operation
extends java.lang.Object

Abstract class representing an operation in the temporal text mining process. All operations must extend this class.

Author:
Kjell-Inge Skogstad and Trond Řivind Eriksen

Constructor Summary
Operation()
           
 
Method Summary
 boolean getLogResult()
          Method for getting wether the result of the operation should be logged.
abstract  java.util.ArrayList getProperties()
          Method for getting the properties used in the operation.
abstract  void performOperation(DataSet dataSet)
          Method performing the operation.
 void setLogResult(boolean logResult)
          Method for setting wether the result of the operation should be logged.
abstract  void setProperties(java.util.ArrayList properties)
          Method for setting the properties used in the operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Operation

public Operation()
Method Detail

setLogResult

public void setLogResult(boolean logResult)
Method for setting wether the result of the operation should be logged.

Parameters:
logResult - True if logging

getLogResult

public boolean getLogResult()
Method for getting wether the result of the operation should be logged.

Returns:
True if logging

performOperation

public abstract void performOperation(DataSet dataSet)
Method performing the operation. The dataset is given as a parameter and all changes in this dataset should be stored within this structure.

Parameters:
dataSet - The dataset

getProperties

public abstract java.util.ArrayList getProperties()
Method for getting the properties used in the operation. Method is used to present the properties in a window to let the user change them as he or she likes. Each property should be a OperationProperty.

Returns:
List of properties

setProperties

public abstract void setProperties(java.util.ArrayList properties)
Method for setting the properties used in the operation. Method is used to set the properties of the operation after the user has changed them in a separate window.

Parameters:
properties - List of properties