|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object standup.profiling.Options standup.joke.OptionsJokeGeneration
public class OptionsJokeGeneration
A Options
representing the various settings relating to joke generation. Currently this includes the following:
Field Summary | |
---|---|
private AllowableAmbiguity |
allowableAmbiguity
|
private List<String> |
allowedSchemaLabels
|
private FLevel |
fLevel
|
private JokeCacheBehaviour |
jokeCacheBehaviour
|
private boolean |
noveltyCheck
|
private double |
phoneticSimilarity
|
private List<String> |
usedJokeTypes
|
static String |
XMLTAG
|
Constructor Summary | |
---|---|
OptionsJokeGeneration()
|
|
OptionsJokeGeneration(Element rootElement)
Constructor method where options are supplied from an appropriate XML element. |
|
OptionsJokeGeneration(JokeCacheBehaviour jokeCacheBehaviour,
FLevel fLevel,
List<String> usedJokeTypes,
List<String> allowedSchemaLabels,
AllowableAmbiguity allowableAmbiguity,
double phoneticSimilarity,
boolean dupeCheck)
Constructor method where options are supplied directly |
Method Summary | |
---|---|
AllowableAmbiguity |
getAllowableAmbiguity()
|
List<String> |
getAllowedSchemaLabels()
|
String |
getDiffString(Options options)
Returns a String that reports the difference between this
instance and the given Options . |
FLevel |
getFLevel()
|
OptionsGUI |
getGUI(Dimension size)
Returns an instance of an appropriate OptionsGUI. |
JokeCacheBehaviour |
getJokeCacheBehaviour()
|
double |
getPhoneticSimilarity()
|
List<String> |
getUsedJokeTypeLabels()
|
JokeTypeSet |
getUsedJokeTypes(JokeTypeSet master)
This method returns a JokeTypeSet containing all the JokeTypes that are used as indicated by this profile. |
String |
getXMLTag()
Returns the XML tag associated with this implementation of Options . |
boolean |
isNoveltyCheck()
|
private static AllowableAmbiguity |
parseAllowableAmbiguity(String aaString)
|
private static List<String> |
parseAllowedSchemas(Element aslEl)
|
private static JokeCacheBehaviour |
parseJokeCacheBehaviour(String jcbString)
|
private static List<String> |
parseUsedJokeTypes(Element ujtEl)
|
void |
setAllowableAmbiguity(AllowableAmbiguity allowableAmbiguity)
|
void |
setAllowedSchemaLabels(List<String> asl)
|
void |
setFLevel(FLevel fl)
|
void |
setJokeCacheBehaviour(JokeCacheBehaviour jokeCacheBehaviour)
|
void |
setNoveltyCheck(boolean noveltyCheck)
|
void |
setPhoneticSimilarity(double phoneticSimilarity)
|
void |
setUsedJokeTypeLabels(List<String> types)
This method sets the JokeTypes that are used in this profile. |
void |
writeXML(Writer out,
String indent)
This method writes the necessary information contained within an instance to an XML file. |
Methods inherited from class standup.profiling.Options |
---|
isModified, setModified |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String XMLTAG
private JokeCacheBehaviour jokeCacheBehaviour
private FLevel fLevel
private List<String> usedJokeTypes
private AllowableAmbiguity allowableAmbiguity
private double phoneticSimilarity
private boolean noveltyCheck
private List<String> allowedSchemaLabels
Constructor Detail |
---|
public OptionsJokeGeneration(JokeCacheBehaviour jokeCacheBehaviour, FLevel fLevel, List<String> usedJokeTypes, List<String> allowedSchemaLabels, AllowableAmbiguity allowableAmbiguity, double phoneticSimilarity, boolean dupeCheck)
public OptionsJokeGeneration() throws ProfileException
ProfileException
public OptionsJokeGeneration(Element rootElement)
Method Detail |
---|
public OptionsGUI getGUI(Dimension size)
Options
Dimension
indicates the preferred size. If given null
,
it will attempt to calculate a suitable size.
getGUI
in class Options
public JokeCacheBehaviour getJokeCacheBehaviour()
public void setJokeCacheBehaviour(JokeCacheBehaviour jokeCacheBehaviour)
public FLevel getFLevel()
public void setFLevel(FLevel fl)
public JokeTypeSet getUsedJokeTypes(JokeTypeSet master)
public void setUsedJokeTypeLabels(List<String> types)
types
- public List<String> getUsedJokeTypeLabels()
public AllowableAmbiguity getAllowableAmbiguity()
public void setAllowableAmbiguity(AllowableAmbiguity allowableAmbiguity)
public double getPhoneticSimilarity()
public void setPhoneticSimilarity(double phoneticSimilarity)
public boolean isNoveltyCheck()
public void setNoveltyCheck(boolean noveltyCheck)
public List<String> getAllowedSchemaLabels()
public void setAllowedSchemaLabels(List<String> asl)
private static List<String> parseUsedJokeTypes(Element ujtEl)
private static List<String> parseAllowedSchemas(Element aslEl)
private static AllowableAmbiguity parseAllowableAmbiguity(String aaString)
private static JokeCacheBehaviour parseJokeCacheBehaviour(String jcbString)
public String getXMLTag()
Options
Options
.
getXMLTag
in class Options
public void writeXML(Writer out, String indent) throws IOException, XMLException
XMLizable
out
- The output stream for the XML file, which is assumed to be
already opened and writable.indent
- A string to be prepended before every line written by this
method. If passed appropriate white space, e.g.
XMLUtils.xmlIndent
, it can be used to control
indentation.
IOException
XMLException
public String getDiffString(Options options)
Options
String
that reports the difference between this
instance and the given Options
. Currently used by the Playback
tool to report changes applied when the Control Panel is accessed, since
actual keystrokes and mouse movement/clicks are not saved.
getDiffString
in class Options
options
- The Options
to be compared against this instance.
String
detailing the difference between the two
instances.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |