Interface StateVertex

    • Method Detail

      • getName

        String getName()
        Retrieve the name of the StateVertex.
        Returns:
        the name of the StateVertex
      • getDom

        String getDom()
        Retrieve the DOM String.
        Returns:
        the dom for this state
      • getStrippedDom

        String getStrippedDom()
        Returns:
        the stripped dom by the oracle comparators
      • getUrl

        String getUrl()
        Returns:
        the url
      • getId

        int getId()
        Returns:
        the id. This is guaranteed to be unique per state.
      • getDocument

        Document getDocument()
                      throws IOException
        Returns:
        a Document instance of the dom string.
        Throws:
        IOException - if an exception is thrown.
      • setDocument

        void setDocument​(Document dom)
      • setElementsFound

        void setElementsFound​(LinkedList<CandidateElement> elements)
        Parameters:
        elements - Set the candidate elements for this state vertex that might be fired.
      • getCandidateElements

        com.google.common.collect.ImmutableList<CandidateElement> getCandidateElements()
        Returns:
        A list of CandidateElement that might have been fired during the crawl. If an event was fired it is registered as an Eventable an can be retrieved from StateFlowGraph.getAllEdges(). If the candidates were not set because of an error it returns null.
      • hasNearDuplicate

        boolean hasNearDuplicate()
      • setHasNearDuplicate

        void setHasNearDuplicate​(boolean b)
      • getNearestState

        int getNearestState()
      • setNearestState

        void setNearestState​(int vertex)
      • inThreshold

        boolean inThreshold​(StateVertex vertexOfGraph)
      • getDistToNearestState

        double getDistToNearestState()
      • setDistToNearestState

        void setDistToNearestState​(double distToNearestState)
      • getDist

        double getDist​(StateVertex vertexOfGraph)
      • getRootFragment

        Fragment getRootFragment()
      • getClosestFragment

        Fragment getClosestFragment​(Node node)
      • hasUnexploredActions

        boolean hasUnexploredActions()
      • addFragments

        void addFragments​(List<VipsRectangle> rectangles,
                          org.openqa.selenium.WebDriver driver)
      • getCluster

        int getCluster()
      • setCluster

        void setCluster​(int cluster)
      • isOnURL

        boolean isOnURL()
      • setOnURL

        void setOnURL​(boolean onURL)