Class SMGraphSWAImpl
java.lang.Object
de.uni_trier.wi2.procake.similarity.impl.SimilarityMeasureImpl
de.uni_trier.wi2.procake.similarity.base.collection.impl.SMListDPImpl
de.uni_trier.wi2.procake.similarity.base.collection.impl.SMListSWAImpl
de.uni_trier.wi2.procake.similarity.nest.sequence.impl.SMGraphSWAImpl
- All Implemented Interfaces:
SMListDP
,SMListSWA
,SMGraphSWA
,SimilarityMeasure
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.uni_trier.wi2.procake.similarity.base.collection.SMListDP
SMListDP.DIFFERENT_BEGINNINGS_STRATEGIES
-
Field Summary
Fields inherited from class de.uni_trier.wi2.procake.similarity.base.collection.impl.SMListSWAImpl
currentCalcInstance, deletionScheme, insertionScheme
Fields inherited from class de.uni_trier.wi2.procake.similarity.base.collection.impl.SMListDPImpl
dataSimilarityToUse, forceAlignmentEndsWithQuery, halvingDistancePercentage, ignoreDifferentBeginnings, localSimilarityToUse, normScore, returnLocalSimilarities
Fields inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
LOG_ORDER_NAME_NOT_FOUND
Fields inherited from interface de.uni_trier.wi2.procake.similarity.nest.sequence.SMGraphSWA
NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncompute
(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator) The system name can be used to distinguish the similarity measures.Returns the task similarity measure for local node similarity calculations.boolean
isSimilarityFor
(DataClass dataclass, String orderName) void
setDataSimilarityToUse
(String name) Set the data similarity to be used during local node similarity calculation.void
setDeletionScheme
(SWA.PenaltyScheme scheme) void
setInsertionScheme
(SWA.PenaltyScheme scheme) void
Set the task similarity to be used during local node similarity calculation.void
setTaskSimilarityToUse
(String name) Set the task similarity to be used during local node similarity calculation.Methods inherited from class de.uni_trier.wi2.procake.similarity.base.collection.impl.SMListSWAImpl
computeSWASim, getCalcInstance, getDeletionScheme, getInsertionScheme
Methods inherited from class de.uni_trier.wi2.procake.similarity.base.collection.impl.SMListDPImpl
getDataSimilarityToUse, getForceAlignmentEndsWithQuery, getHalvingDistancePercentage, getIgnoreDifferentBeginnings, getLocalSimilarityToUse, getReturnLocalSimilarities, setForceAlignmentEndsWithQuery, setHalvingDistancePercentage, setIgnoreDifferentBeginnings, setNormScore, setReturnLocalSimilarities
Methods inherited from class de.uni_trier.wi2.procake.similarity.impl.SimilarityMeasureImpl
getDataClass, getName, initialize, initializeBasedOn, isAggregate, isForceOverride, isInterval, isNumeric, isObject, isReusable, isSet, isTable, isTaxonomy, isText, setDataClass, setForceOverride, setName, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
getDataClass, getName, isForceOverride, isReusable, setForceOverride
Methods inherited from interface de.uni_trier.wi2.procake.similarity.base.collection.SMListDP
getDataSimilarityToUse, getForceAlignmentEndsWithQuery, getHalvingDistancePercentage, getIgnoreDifferentBeginnings, getLocalSimilarityToUse, getReturnLocalSimilarities, setForceAlignmentEndsWithQuery, setHalvingDistancePercentage, setIgnoreDifferentBeginnings, setNormScore, setReturnLocalSimilarities
Methods inherited from interface de.uni_trier.wi2.procake.similarity.base.collection.SMListSWA
getCalcInstance, getDeletionScheme, getInsertionScheme
-
Constructor Details
-
SMGraphSWAImpl
public SMGraphSWAImpl()
-
-
Method Details
-
compute
public Similarity compute(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator) - Specified by:
compute
in interfaceSimilarityMeasure
- Overrides:
compute
in classSMListSWAImpl
- Returns:
-
isSimilarityFor
- Overrides:
isSimilarityFor
in classSMListSWAImpl
-
getSystemName
Description copied from interface:SimilarityMeasure
The system name can be used to distinguish the similarity measures. Each similarity measure that can be instantiated contains a static final field called NAME representing the system name, e.g.,SMAggregateEuclidian.NAME
The system name must also be given during initialization, see
SimilarityModel.createSimilarityMeasure(String, DataClass)
.- Specified by:
getSystemName
in interfaceSimilarityMeasure
- Overrides:
getSystemName
in classSMListSWAImpl
- Returns:
- The system name of the similarity measure. This is equal to SimilarityMeasure.NAME.
-
setDataSimilarityToUse
Description copied from interface:SMListDP
Set the data similarity to be used during local node similarity calculation.- Specified by:
setDataSimilarityToUse
in interfaceSMListDP
- Overrides:
setDataSimilarityToUse
in classSMListDPImpl
- Parameters:
name
- Name of the sim measure
-
setLocalSimilarityToUse
Description copied from interface:SMListDP
Set the task similarity to be used during local node similarity calculation.- Specified by:
setLocalSimilarityToUse
in interfaceSMListDP
- Overrides:
setLocalSimilarityToUse
in classSMListDPImpl
- Parameters:
name
- Name of the sim measure
-
getTaskSimilarityToUse
Description copied from interface:SMGraphSWA
Returns the task similarity measure for local node similarity calculations.- Specified by:
getTaskSimilarityToUse
in interfaceSMGraphSWA
- Returns:
- Name of the similarity measure
-
setTaskSimilarityToUse
Description copied from interface:SMGraphSWA
Set the task similarity to be used during local node similarity calculation.- Specified by:
setTaskSimilarityToUse
in interfaceSMGraphSWA
- Parameters:
name
- Name of the similarity measure
-
setInsertionScheme
- Specified by:
setInsertionScheme
in interfaceSMListSWA
- Overrides:
setInsertionScheme
in classSMListSWAImpl
-
setDeletionScheme
- Specified by:
setDeletionScheme
in interfaceSMListSWA
- Overrides:
setDeletionScheme
in classSMListSWAImpl
-