Class MarrHildrethImageHashStateVertexFactory
- java.lang.Object
-
- com.crawljax.core.state.StateVertexFactory
-
- com.crawljax.stateabstractions.visual.imagehashes.MarrHildrethImageHashStateVertexFactory
-
public class MarrHildrethImageHashStateVertexFactory extends StateVertexFactory
The default factory that creates State vertexes with aObject.hashCode()andObject.equals(Object)function based on the visual hash of the web page's screenshot.
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.LoggerLOGprivate static intTHUMBNAIL_HEIGHTprivate static intTHUMBNAIL_WIDTHprivate MarrHildrethImageHashvisHash
-
Constructor Summary
Constructors Constructor Description MarrHildrethImageHashStateVertexFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MarrHildrethImageHashgetMarrHildrethImageHash()doublegetMarrHildrethImageHashMaxRaw()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
-
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
-
visHash
private final MarrHildrethImageHash visHash
-
-
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
-
getMarrHildrethImageHashMaxRaw
public double getMarrHildrethImageHashMaxRaw()
-
getMarrHildrethImageHash
public MarrHildrethImageHash getMarrHildrethImageHash()
-
-