Class WalkStateGraphContext
java.lang.Object
org.jivesoftware.smack.c2s.internal.WalkStateGraphContext
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidappendWalkTo(List<State> walk) builder(Class<? extends StateDescriptor> initialStateClass, Class<? extends StateDescriptor> finalStateClass) getWalk()intbooleanbooleanisWalksFinalState(StateDescriptor stateDescriptor) maybeReturnMandatoryImmediateState(List<StateDescriptorGraph.GraphVertex<State>> outgoingStateEdges) voidrecordFailedState(State state, StateTransitionResult stateTransitionResult) voidrecordWalkTo(State state) booleanstateAlreadyVisited(State state) booleanwouldCauseCycle(StateDescriptorGraph.GraphVertex<State> successorStateVertex) Check if the way to the final state via the given successor state that would loop, i.e., lead over the initial state and thus from a cycle.
-
Method Details
-
recordWalkTo
-
isWalksFinalState
-
isFinalStateAuthenticatedAndResourceBound
public boolean isFinalStateAuthenticatedAndResourceBound() -
maybeReturnMandatoryImmediateState
public StateDescriptorGraph.GraphVertex<State> maybeReturnMandatoryImmediateState(List<StateDescriptorGraph.GraphVertex<State>> outgoingStateEdges) -
getWalk
-
getWalkLength
public int getWalkLength() -
appendWalkTo
-
getLoginContext
-
stateAlreadyVisited
-
recordFailedState
-
getFailedStates
-
wouldCauseCycle
Check if the way to the final state via the given successor state that would loop, i.e., lead over the initial state and thus from a cycle.- Parameters:
successorStateVertex- the successor state to use on the way.- Returns:
trueif it would loop,falseotherwise.
-
builder
public static WalkStateGraphContext.Builder builder(Class<? extends StateDescriptor> initialStateClass, Class<? extends StateDescriptor> finalStateClass)
-