Class DefaultCharactersToBeReplaced

java.lang.Object
  |
  +--DefaultCharactersToBeReplaced

class DefaultCharactersToBeReplaced
extends java.lang.Object
implements UserOptions

this class implements a default set of strings to be replaced


Field Summary
(package private)  java.lang.String[][] data
          used when the file containing the data does not exist
(package private)  java.lang.String DefaultsFileName
           
(package private)  int n_members
           
 
Fields inherited from interface UserOptions
DEFAULTSFILENAME, FREQUENCY_SAVE_TURNS, MAXIMUM_WORDS_STRING, NO_TURNS, REPLACEMASKSIZE, TRANSLATION_SEGMENTS
 
Constructor Summary
DefaultCharactersToBeReplaced()
          builts the matrix by reading it from the disk it is stored in a file useroptions.txt if the file does not exist the matrix #data is used
 
Method Summary
 java.lang.String[][] getData()
           
 java.lang.String[] getMemberAt(int i)
           
 int getMembersNumber()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

n_members

int n_members

DefaultsFileName

final java.lang.String DefaultsFileName

data

java.lang.String[][] data
used when the file containing the data does not exist
Constructor Detail

DefaultCharactersToBeReplaced

public DefaultCharactersToBeReplaced()
builts the matrix by reading it from the disk it is stored in a file useroptions.txt if the file does not exist the matrix #data is used
Method Detail

getData

public java.lang.String[][] getData()
Returns:
the default mask

getMembersNumber

public int getMembersNumber()
Returns:
the number of rows containing data

getMemberAt

public java.lang.String[] getMemberAt(int i)
Parameters:
i - the number of the row
Returns:
the ith row of data