public interface PageState
Modifier and Type | Field and Description |
---|---|
static int |
SIMILARITY_THRESHOLD
Up to this many characters may have changed for a document to be "similar"
|
Modifier and Type | Method and Description |
---|---|
boolean |
atSameLocation(PageState other)
Returns true if the pagestate represents a page with the same location URL.
|
int |
getAtomicEditDistance(PageState other)
Returns the edit distance in terms of fine-grained, atomic units such as characters.
|
List<uk.ac.ox.cs.diadem.webapi.pagestate.PageDifference> |
getDifferences(PageState other)
Returns a list of actual differences.
|
int |
getEditDistance(PageState other)
Returns the edit distance in terms of nodes.
|
boolean |
identicalTo(PageState other)
Returns true if the other
PageState is identical to this one. |
boolean |
isDifferentPage(PageState other)
Returns true if the pagestate represents a different page (different location or content).
|
boolean |
similarTo(PageState other)
Returns true if the other
PageState is similar to this one. |
static final int SIMILARITY_THRESHOLD
List<uk.ac.ox.cs.diadem.webapi.pagestate.PageDifference> getDifferences(PageState other)
PageDifference
int getAtomicEditDistance(PageState other)
int getEditDistance(PageState other)
boolean identicalTo(PageState other)
PageState
is identical to this one.boolean similarTo(PageState other)
PageState
is similar to this one. The specific meaning of similar is determine by
the implementation, e.g., through a threshold on the edit distance.boolean isDifferentPage(PageState other)
boolean atSameLocation(PageState other)
Copyright © 2020 OXPath Team. All rights reserved.