public class LevelRule extends Object
Constructor and Description |
---|
LevelRule(TextLevelRule rule,
StatAnCache cache) |
Modifier and Type | Method and Description |
---|---|
void |
generateBasicNumbers(StatAnCache cache) |
boolean |
getDefaultDirectSpeach() |
int |
getDefaultStep() |
protected int |
getFoundWordsLevel(double percent)
get level of occurrence of filler words(0 - 6)
|
int |
getLevel(int from,
int to) |
String |
getMessageOfLevel(int level) |
double |
getUnitFactor() |
String |
getUnitString() |
static boolean |
hasStatisticalOptions(Rule rule) |
static boolean |
isLevelRule(Rule rule) |
void |
setCurrentStep(int step) |
void |
setWithDirectSpeach(boolean wDirectSpeech,
StatAnCache cache) |
public LevelRule(TextLevelRule rule, StatAnCache cache)
public void generateBasicNumbers(StatAnCache cache)
protected int getFoundWordsLevel(double percent) throws Throwable
Throwable
public double getUnitFactor()
public int getDefaultStep()
public void setWithDirectSpeach(boolean wDirectSpeech, StatAnCache cache)
public void setCurrentStep(int step)
public boolean getDefaultDirectSpeach()
public String getUnitString()
public String getMessageOfLevel(int level)
public static boolean hasStatisticalOptions(Rule rule)
public static boolean isLevelRule(Rule rule)