Class DHashStateVertexFactory
- java.lang.Object
-
- com.crawljax.core.state.StateVertexFactory
-
- com.crawljax.stateabstractions.visual.imagehashes.DHashStateVertexFactory
-
public class DHashStateVertexFactory 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 org.slf4j.LoggerLOGprivate static intTHUMBNAIL_HEIGHTprivate static intTHUMBNAIL_WIDTH
-
Constructor Summary
Constructors Constructor Description DHashStateVertexFactory()
-
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.-
Methods inherited from class com.crawljax.core.state.StateVertexFactory
createIndex
-
-
-
-
Field Detail
-
LOG
private static final org.slf4j.Logger LOG
-
THUMBNAIL_WIDTH
private static final int THUMBNAIL_WIDTH
- See Also:
- Constant Field Values
-
THUMBNAIL_HEIGHT
private static final int THUMBNAIL_HEIGHT
- See Also:
- Constant Field Values
-
-
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
-
-