public class StateVertexImpl extends Object implements StateVertex
INDEX_ID| Constructor and Description |
|---|
StateVertexImpl(int id,
String url,
String name,
String dom,
String strippedDom)
Defines a State.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
com.google.common.collect.ImmutableList<CandidateElement> |
getCandidateElements() |
double |
getDist(StateVertex vertexOfGraph) |
double |
getDistToNearestState() |
Document |
getDocument() |
String |
getDom()
Retrieve the DOM String.
|
int |
getId() |
String |
getName()
Retrieve the name of the StateVertex.
|
int |
getNearestState() |
String |
getStrippedDom() |
String |
getUrl() |
int |
hashCode() |
boolean |
hasNearDuplicate() |
boolean |
inThreshold(StateVertex vertexOfGraph) |
void |
setDistToNearestState(double distToNearestState) |
void |
setElementsFound(LinkedList<CandidateElement> elements) |
void |
setHasNearDuplicate(boolean b) |
void |
setNearestState(int vertex) |
String |
toString() |
public String getName()
StateVertexgetName in interface StateVertexpublic String getDom()
StateVertexgetDom in interface StateVertexpublic String getStrippedDom()
getStrippedDom in interface StateVertexpublic String getUrl()
getUrl in interface StateVertexpublic int getId()
getId in interface StateVertexpublic Document getDocument() throws IOException
getDocument in interface StateVertexIOException - if an exception is thrown.public void setElementsFound(LinkedList<CandidateElement> elements)
setElementsFound in interface StateVertexelements - Set the candidate elements for this state vertex that might be fired.public com.google.common.collect.ImmutableList<CandidateElement> getCandidateElements()
getCandidateElements in interface StateVertexCandidateElement 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.public boolean hasNearDuplicate()
hasNearDuplicate in interface StateVertexpublic void setNearestState(int vertex)
setNearestState in interface StateVertexpublic void setHasNearDuplicate(boolean b)
setHasNearDuplicate in interface StateVertexpublic int getNearestState()
getNearestState in interface StateVertexpublic boolean inThreshold(StateVertex vertexOfGraph)
inThreshold in interface StateVertexpublic double getDistToNearestState()
getDistToNearestState in interface StateVertexpublic void setDistToNearestState(double distToNearestState)
setDistToNearestState in interface StateVertexpublic double getDist(StateVertex vertexOfGraph)
getDist in interface StateVertexCopyright © 2007–2019. All rights reserved.