public class FindTopicsWithSimilarOccurrence extends AbstractWandoraTool implements WandoraTool
| Modifier and Type | Field and Description |
|---|---|
private boolean |
allowOverride |
static java.lang.String |
OPTIONS_PREFIX |
private float |
similarityThreshold |
private uk.ac.shef.wit.simmetrics.similaritymetrics.InterfaceStringMetric |
stringMetric |
| Constructor and Description |
|---|
FindTopicsWithSimilarOccurrence() |
FindTopicsWithSimilarOccurrence(Context preferredContext) |
FindTopicsWithSimilarOccurrence(Context preferredContext,
uk.ac.shef.wit.simmetrics.similaritymetrics.InterfaceStringMetric stringMetric,
float threshold) |
FindTopicsWithSimilarOccurrence(uk.ac.shef.wit.simmetrics.similaritymetrics.InterfaceStringMetric stringMetric,
float threshold) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Wandora wandora,
Options options,
java.lang.String prefix)
If the tool is configurable, shows an user interface to configure the tool.
|
void |
execute(Wandora wandora,
Context context)
Runs the tool.
|
java.lang.String |
getDescription()
AdminToolManager views tool descriptions while user browses available
tools and build user customizable GUI elements such as Tools menu.
|
java.lang.String |
getName()
Tools name represent the tool in UI unless the tool has been given
explicitly another GUI name.
|
void |
initialize(Wandora wandora,
Options options,
java.lang.String prefix)
Initializes a tool with options saved in the options.
|
boolean |
isConfigurable()
Whether this tool is configurable.
|
boolean |
requiresRefresh()
If any visible topic has been changed during tool execution GUI is
automatically refreshed.
|
private void |
setMetricByClassName(java.lang.String metric) |
void |
writeOptions(Wandora wandora,
Options options,
java.lang.String prefix)
If the tool is configurable, saves all current tool options.
|
addUndoMarker, addUndoMarker, allowMultipleInvocations, clearAllThreads, clearThreads, clearThreads, clearToolLock, clearToolLock, clearToolLocks, execute, execute, forceStop, forceStop, getContext, getCurrentLogger, getDefaultLogger, getHistory, getIcon, getLastLogger, getState, getThreads, getThreads, getToolMenuItem, getToolMenuItem, getTopicName, getType, hlog, interruptAllThreads, interruptThreads, interruptThreads, isRunning, isRunning, lockLog, log, log, log, log, run, runInOwnThread, setContext, setDefaultLogger, setLogTitle, setProgress, setProgressMax, setState, setToolLogger, singleLog, singleLog, singleLog, solveContextTopicMap, solveNameForTopicMapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, execute, getContext, getIcon, getToolMenuItem, getType, hlog, isRunning, log, log, log, log, setContext, setToolLoggerforceStop, getHistory, getState, lockLog, setLogTitle, setProgress, setProgressMax, setStatepublic static final java.lang.String OPTIONS_PREFIX
private uk.ac.shef.wit.simmetrics.similaritymetrics.InterfaceStringMetric stringMetric
private float similarityThreshold
private boolean allowOverride
public FindTopicsWithSimilarOccurrence()
public FindTopicsWithSimilarOccurrence(Context preferredContext)
public FindTopicsWithSimilarOccurrence(Context preferredContext, uk.ac.shef.wit.simmetrics.similaritymetrics.InterfaceStringMetric stringMetric, float threshold)
public FindTopicsWithSimilarOccurrence(uk.ac.shef.wit.simmetrics.similaritymetrics.InterfaceStringMetric stringMetric,
float threshold)
public void initialize(Wandora wandora, Options options, java.lang.String prefix) throws TopicMapException
AbstractWandoraToolinitialize in interface WandoraToolinitialize in class AbstractWandoraToolTopicMapExceptionpublic boolean isConfigurable()
AbstractWandoraToolisConfigurable in interface WandoraToolisConfigurable in class AbstractWandoraToolpublic void configure(Wandora wandora, Options options, java.lang.String prefix) throws TopicMapException
AbstractWandoraToolconfigure in interface WandoraToolconfigure in class AbstractWandoraToolTopicMapExceptionpublic void writeOptions(Wandora wandora, Options options, java.lang.String prefix)
AbstractWandoraToolwriteOptions in interface WandoraToolwriteOptions in class AbstractWandoraToolprivate void setMetricByClassName(java.lang.String metric)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getName()
AbstractWandoraToolgetName in interface WandoraToolgetName in class AbstractWandoraToolpublic java.lang.String getDescription()
AbstractWandoraToolgetDescription in interface WandoraToolgetDescription in class AbstractWandoraToolpublic void execute(Wandora wandora, Context context)
WandoraToolexecute in interface WandoraToolpublic boolean requiresRefresh()
AbstractWandoraToolIf any visible topic has been changed during tool execution GUI is automatically refreshed. If tool doesn't change topics but GUI still requires refresh, tool should override this method and return true.
For example tools that alter the GUI but change no topics should return true.
requiresRefresh in interface WandoraToolrequiresRefresh in class AbstractWandoraToolCopyright 2004-2015 Wandora Team