Class TLSHStateVertexFactory
- java.lang.Object
-
- com.crawljax.core.state.StateVertexFactory
-
- com.crawljax.stateabstractions.dom.TLSHStateVertexFactory
-
public class TLSHStateVertexFactory 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 static EditDistanceComparatoreditDistanceComparatorprivate static doubleinsufficientComplexityDistanceprivate static org.slf4j.LoggerLOGprivate static DOMConfiguration.Modemodeprivate static doublethreshold
-
Constructor Summary
Constructors Constructor Description TLSHStateVertexFactory(double treshold, DOMConfiguration.Mode mode1)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static doublecomputeTLSHDistance(String dom1, String dom2)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
-
LOG
private static final org.slf4j.Logger LOG
-
threshold
private static double threshold
-
mode
private static DOMConfiguration.Mode mode
-
insufficientComplexityDistance
private static final double insufficientComplexityDistance
- See Also:
- Constant Field Values
-
editDistanceComparator
private static EditDistanceComparator editDistanceComparator
-
-
Constructor Detail
-
TLSHStateVertexFactory
public TLSHStateVertexFactory(double treshold, DOMConfiguration.Mode mode1)
-
-
Method Detail
-
computeTLSHDistance
public static double computeTLSHDistance(String dom1, String dom2) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
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
-
-