Class LevenshteinStateVertexFactory
- java.lang.Object
-
- com.crawljax.core.state.StateVertexFactory
-
- com.crawljax.stateabstractions.dom.LevenshteinStateVertexFactory
-
public class LevenshteinStateVertexFactory extends StateVertexFactory
The default factory that creates State vertexes with aObject.hashCode()andObject.equals(Object)function based on the Stripped dom.
-
-
Field Summary
Fields Modifier and Type Field Description private EditDistanceComparatoreditDistanceComparatorprivate static doublethreshold
-
Constructor Summary
Constructors Constructor Description LevenshteinStateVertexFactory()LevenshteinStateVertexFactory(double threshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StateVertexnewStateVertex(int id, String url, String name, String dom, String strippedDom, EmbeddedBrowser browser)Defines a State.StringtoString()-
Methods inherited from class com.crawljax.core.state.StateVertexFactory
createIndex
-
-
-
-
Field Detail
-
threshold
private static double threshold
-
editDistanceComparator
private final EditDistanceComparator editDistanceComparator
-
-
Method Detail
-
newStateVertex
public StateVertex newStateVertex(int id, String url, String name, String dom, String strippedDom, EmbeddedBrowser browser)
Description copied from class:StateVertexFactoryDefines a State.- Specified by:
newStateVertexin classStateVertexFactoryurl- the current url of the statename- the name of the statedom- the current DOM tree of the browserstrippedDom- the stripped dom by the OracleComparators
-
-