Class WalkStateGraphContext
- java.lang.Object
-
- org.jivesoftware.smack.c2s.internal.WalkStateGraphContext
-
public final class WalkStateGraphContext extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WalkStateGraphContext.Builder
-
Method Summary
-
-
-
Method Detail
-
recordWalkTo
public void recordWalkTo(State state)
-
isWalksFinalState
public boolean isWalksFinalState(StateDescriptor stateDescriptor)
-
isFinalStateAuthenticatedAndResourceBound
public boolean isFinalStateAuthenticatedAndResourceBound()
-
maybeReturnMandatoryImmediateState
public StateDescriptorGraph.GraphVertex<State> maybeReturnMandatoryImmediateState(List<StateDescriptorGraph.GraphVertex<State>> outgoingStateEdges)
-
getWalkLength
public int getWalkLength()
-
appendWalkTo
public void appendWalkTo(List<State> walk)
-
getLoginContext
public LoginContext getLoginContext()
-
stateAlreadyVisited
public boolean stateAlreadyVisited(State state)
-
recordFailedState
public void recordFailedState(State state, StateTransitionResult stateTransitionResult)
-
getFailedStates
public Map<State,StateTransitionResult> getFailedStates()
-
wouldCauseCycle
public boolean wouldCauseCycle(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.- Parameters:
successorStateVertex
- the successor state to use on the way.- Returns:
true
if it would loop,false
otherwise.
-
builder
public static WalkStateGraphContext.Builder builder(Class<? extends StateDescriptor> initialStateClass, Class<? extends StateDescriptor> finalStateClass)
-
-