Package com.crawljax.core.state
Class StateVertexFactory
- java.lang.Object
-
- com.crawljax.core.state.StateVertexFactory
-
- Direct Known Subclasses:
AverageImageHashStateVertexFactory,BlockMeanImageHashStateVertexFactory,ColorHistogramStateVertexFactory,ColorMomentImageHashStateVertexFactory,DefaultStateVertexFactory,DHashStateVertexFactory,FragGenStateVertexFactory,LevenshteinStateVertexFactory,MarrHildrethImageHashStateVertexFactory,PDiffStateVertexFactory,PerceptualImageHashStateVertexFactory,RadialVarianceImageHashStateVertexFactory,RTEDStateVertexFactory,SIFTStateVertexFactory,SSIMStateVertexFactory,StructuralVisualStateVertexFactory,TLSHStateVertexFactory
public abstract class StateVertexFactory extends Object
A factory that creates aStateVertex. This factory can be implemented if you want to use custom states that use a differentObject.hashCode()orObject.equals(Object)method.
-
-
Constructor Summary
Constructors Constructor Description StateVertexFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StateVertexcreateIndex(String url, String dom, String strippedDom, EmbeddedBrowser browser)abstract StateVertexnewStateVertex(int id, String url, String name, String dom, String strippedDom, EmbeddedBrowser browser)Defines a State.
-
-
-
Method Detail
-
newStateVertex
public abstract StateVertex newStateVertex(int id, String url, String name, String dom, String strippedDom, EmbeddedBrowser browser)
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
-
createIndex
public StateVertex createIndex(String url, String dom, String strippedDom, EmbeddedBrowser browser)
- Returns:
- The index
StateVertex.
-
-