Class ColorHistogramStateVertexImpl
- java.lang.Object
-
- com.crawljax.core.state.StateVertexImpl
-
- com.crawljax.stateabstractions.visual.ColorHistogramStateVertexImpl
-
- All Implemented Interfaces:
StateVertex,Serializable
public class ColorHistogramStateVertexImpl 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 (package private) org.opencv.core.Mathistprivate static longserialVersionUIDprivate doublethreshold-
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 ColorHistogramStateVertexImpl(int id, String url, String name, String dom, String strippedDom, org.opencv.core.Mat hist, double threshold)Defines a State.ColorHistogramStateVertexImpl(int id, String name, String dom, org.opencv.core.Mat hist)Creates a current state without an url and the stripped dom equals the dom.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)org.opencv.core.MatgetColorHistogram()inthashCode()StringtoString()-
Methods inherited from class com.crawljax.core.state.StateVertexImpl
addFragments, getCandidateElement, getCandidateElement, getCandidateElements, getClosestDomFragment, getClosestFragment, getClosestFragment, getCluster, getDist, getDistToNearestState, getDocument, getDom, getFragments, getId, getName, getNearestState, getRootFragment, getSerialversionuid, getStrippedDom, getUrl, hasNearDuplicate, hasUnexploredActions, inThreshold, isNearDuplicate, isOnURL, setCluster, setDirectAccess, setDistToNearestState, setDocument, setElementsFound, setFragments, setHasNearDuplicate, setNearestState, setOnURL
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
hist
final org.opencv.core.Mat hist
-
threshold
private double threshold
-
-
Constructor Detail
-
ColorHistogramStateVertexImpl
ColorHistogramStateVertexImpl(int id, String name, String dom, org.opencv.core.Mat hist)Creates a current state without an url and the stripped dom equals the dom.- Parameters:
name- the name of the statedom- the current DOM tree of the browser
-
ColorHistogramStateVertexImpl
public ColorHistogramStateVertexImpl(int id, String url, String name, String dom, String strippedDom, org.opencv.core.Mat hist, double threshold)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 OracleComparatorsthreshold-
-
-
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
-
getColorHistogram
public org.opencv.core.Mat getColorHistogram()
-
-