Class AverageImageHashStateVertexImpl
- java.lang.Object
-
- com.crawljax.core.state.StateVertexImpl
-
- com.crawljax.stateabstractions.visual.imagehashes.AverageImageHashStateVertexImpl
-
- All Implemented Interfaces:
StateVertex,Serializable
public class AverageImageHashStateVertexImpl extends StateVertexImpl
The state vertex class which represents a state in the browser. When iterating over the possible candidate elements every time a candidate is returned its removed from the list so it is a one time only access to the candidates.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description org.opencv.core.MathashMatprivate static longserialVersionUID(package private) AverageImageHashvisHash-
Fields inherited from class com.crawljax.core.state.StateVertexImpl
LOG
-
Fields inherited from interface com.crawljax.core.state.StateVertex
INDEX_ID
-
-
Constructor Summary
Constructors Constructor Description AverageImageHashStateVertexImpl(int id, String name, String dom, AverageImageHash visHash, org.opencv.core.Mat hashMat)Creates a current state without an url and the @strippedDom same as the @dom.AverageImageHashStateVertexImpl(int id, String url, String name, String dom, String strippedDom, AverageImageHash visHash, org.opencv.core.Mat hashMat)Defines a State.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)doublegetDist(StateVertex vertexOfGraph)inthashCode()booleaninThreshold(StateVertex vertexOfGraph)StringtoString()-
Methods inherited from class com.crawljax.core.state.StateVertexImpl
addFragments, getCandidateElement, getCandidateElement, getCandidateElements, getClosestDomFragment, getClosestFragment, getClosestFragment, getCluster, getDistToNearestState, getDocument, getDom, getFragments, getId, getName, getNearestState, getRootFragment, getSerialversionuid, getStrippedDom, getUrl, hasNearDuplicate, hasUnexploredActions, isNearDuplicate, isOnURL, setCluster, setDirectAccess, setDistToNearestState, setDocument, setElementsFound, setFragments, setHasNearDuplicate, setNearestState, setOnURL
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
hashMat
public final org.opencv.core.Mat hashMat
-
visHash
final AverageImageHash visHash
-
-
Constructor Detail
-
AverageImageHashStateVertexImpl
AverageImageHashStateVertexImpl(int id, String name, String dom, AverageImageHash visHash, org.opencv.core.Mat hashMat)Creates a current state without an url and the @strippedDom same as the @dom.- Parameters:
name- the name of the statedom- the current DOM tree of the browser
-
AverageImageHashStateVertexImpl
public AverageImageHashStateVertexImpl(int id, String url, String name, String dom, String strippedDom, AverageImageHash visHash, org.opencv.core.Mat hashMat)Defines a State.- Parameters:
url- the current url of the statename- the name of the statedom- the current DOM tree of the browserstrippedDom- the stripped dom by the OracleComparators
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classStateVertexImpl
-
equals
public boolean equals(Object object)
- Overrides:
equalsin classStateVertexImpl
-
toString
public String toString()
- Overrides:
toStringin classStateVertexImpl
-
inThreshold
public boolean inThreshold(StateVertex vertexOfGraph)
- Specified by:
inThresholdin interfaceStateVertex- Overrides:
inThresholdin classStateVertexImpl
-
getDist
public double getDist(StateVertex vertexOfGraph)
- Specified by:
getDistin interfaceStateVertex- Overrides:
getDistin classStateVertexImpl
-
-