public class PerceptualImageHashStateVertexFactory extends StateVertexFactory
Object.hashCode() and
Object.equals(Object) function based on the visual hash of the web page's screenshot.| Constructor and Description |
|---|
PerceptualImageHashStateVertexFactory() |
| Modifier and Type | Method and Description |
|---|---|
PerceptualImageHash |
getPerceptualImageHash() |
double |
getPerceptualImageHashMaxRaw() |
StateVertex |
newStateVertex(int id,
String url,
String name,
String dom,
String strippedDom,
EmbeddedBrowser browser)
Defines a State.
|
void |
setPerceptualImageHash(PerceptualImageHash visHash) |
String |
toString() |
createIndexpublic PerceptualImageHashStateVertexFactory()
public StateVertex newStateVertex(int id, String url, String name, String dom, String strippedDom, EmbeddedBrowser browser)
StateVertexFactorynewStateVertex in class StateVertexFactoryurl - the current url of the statename - the name of the statedom - the current DOM tree of the browserstrippedDom - the stripped dom by the OracleComparatorspublic void setPerceptualImageHash(PerceptualImageHash visHash)
public double getPerceptualImageHashMaxRaw()
public PerceptualImageHash getPerceptualImageHash()
Copyright © 2007–2019. All rights reserved.