tp.controllers
Class SettingsControl

java.lang.Object
  extended by tp.controllers.ActionControl
      extended by tp.controllers.SettingsControl
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.ItemListener, java.util.EventListener, javax.swing.event.ChangeListener

public class SettingsControl
extends ActionControl

A controller to process events on a screen, where the setting of pre-processing and representation of documents.


Nested Class Summary
static class SettingsControl.TypeOfRepresentationFeatures
           
static class SettingsControl.TypeOfRepresentationModels
           
 
Field Summary
static int NGRAM_DEFAULT_OCCUR
           
static int NGRAM_MAX_DEPTH
           
static int NGRAM_MAX_OCCUR
           
static int NGRAM_MIN_DEPTH
           
static int NGRAM_MIN_OCCUR
           
static int WORD_DEPTH
           
 
Fields inherited from class tp.controllers.ActionControl
event
 
Constructor Summary
SettingsControl()
          Constructor of the class
 
Method Summary
 int getRepresentationFeature()
          The method gets information about feature, which is used to represent documents.
static java.lang.String[] getRepresentationFeatureNames()
          Metoda vrati pole retezcu s nazvy rysu, ktere lze pouzit pro reprezentaci dokumentu
 int getRepresentationModel()
          The method gets information about model, which is used to represent documents.
static java.lang.String[] getRepresentationModelNames()
          The method returs an array with names of models, which can be used for document representation.
 void changeFeature(java.lang.String type)
          The method is executed after change of a chosen feature for document representation.
 void changeModel(java.lang.String type)
          The method is executed after change of a chosen model for document representation.
 void init(DocumentsDatabase database)
          Initialization - setting of reference to database of documents
 void nextBtnClick()
          After click of "Next", a pre-processing task is executed.
 void ownStopListChange()
          The method is used to set path to user-defined stoplist.
 void setNgramDepth()
          The method is executed after change of N-gram size.
 void setNgramOccur()
          The method is executed after change of N-gram size.
 void setStemming(boolean use_stemming)
          The method sets a variable with information, if stemming will be used.
 void setStopList(boolean use_stop_list)
          The method sets a variable with information, if stoplist will be used.
 boolean useOwnStopList()
          The method gets information, if user-defined stoplist will be used.
 boolean useStemming()
          The method gets information, if stemming will be used.
 void useStemmingChange()
          The method is executed after change of a check-box for stemming.
 boolean useStopList()
          The method gets information, if stoplist will be used.
 void useStopListChange()
          The method is executed after change of a check-box for stop-list.
 
Methods inherited from class tp.controllers.ActionControl
actionPerformed, invokeMethod, itemStateChanged, stateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WORD_DEPTH

public static final int WORD_DEPTH
See Also:
Constant Field Values

NGRAM_MIN_DEPTH

public static final int NGRAM_MIN_DEPTH
See Also:
Constant Field Values

NGRAM_MAX_DEPTH

public static final int NGRAM_MAX_DEPTH
See Also:
Constant Field Values

NGRAM_MIN_OCCUR

public static final int NGRAM_MIN_OCCUR
See Also:
Constant Field Values

NGRAM_MAX_OCCUR

public static final int NGRAM_MAX_OCCUR
See Also:
Constant Field Values

NGRAM_DEFAULT_OCCUR

public static final int NGRAM_DEFAULT_OCCUR
See Also:
Constant Field Values
Constructor Detail

SettingsControl

public SettingsControl()
Constructor of the class

Method Detail

init

public void init(DocumentsDatabase database)
Initialization - setting of reference to database of documents

Parameters:
database - database of documents

nextBtnClick

public void nextBtnClick()
After click of "Next", a pre-processing task is executed.


useStopListChange

public void useStopListChange()
The method is executed after change of a check-box for stop-list. Corresponding variable is modified.


useStemmingChange

public void useStemmingChange()
The method is executed after change of a check-box for stemming. Corresponding variable is modified.


changeFeature

public void changeFeature(java.lang.String type)
The method is executed after change of a chosen feature for document representation.


changeModel

public void changeModel(java.lang.String type)
The method is executed after change of a chosen model for document representation.


setNgramDepth

public void setNgramDepth()
The method is executed after change of N-gram size. It stores actual maximum size of N-gram.


setNgramOccur

public void setNgramOccur()
The method is executed after change of N-gram size. It stores actual minimum size of N-gram.


setStemming

public void setStemming(boolean use_stemming)
The method sets a variable with information, if stemming will be used.

Parameters:
use_stemming - true, if stemming is used, false otherwise

useStemming

public boolean useStemming()
The method gets information, if stemming will be used.

Returns:
true, if stemming is used, false otherwise

useOwnStopList

public boolean useOwnStopList()
The method gets information, if user-defined stoplist will be used.

Returns:
true, if user-defined stoplist is used, false otherwise

ownStopListChange

public void ownStopListChange()
The method is used to set path to user-defined stoplist.


setStopList

public void setStopList(boolean use_stop_list)
The method sets a variable with information, if stoplist will be used.

Parameters:
use_stop_list - true, if stoplist is used, false otherwise

useStopList

public boolean useStopList()
The method gets information, if stoplist will be used.

Returns:
true, if stoplist is used, false otherwise

getRepresentationFeatureNames

public static java.lang.String[] getRepresentationFeatureNames()
Metoda vrati pole retezcu s nazvy rysu, ktere lze pouzit pro reprezentaci dokumentu

Returns:
pole retezcu s nazvy rysu

getRepresentationModelNames

public static java.lang.String[] getRepresentationModelNames()
The method returs an array with names of models, which can be used for document representation.

Returns:
array of strings with model names

getRepresentationFeature

public int getRepresentationFeature()
The method gets information about feature, which is used to represent documents.

Returns:
representation feature

getRepresentationModel

public int getRepresentationModel()
The method gets information about model, which is used to represent documents.

Returns:
representation model