public class NextTokenEvent<T extends Token<T>> extends BasicTokenEvent<T>
BasicTokenEvent
that also factors in automation of next token(s) based on a post current action scenario
described by nextTokensAction
.
TokenEvent.ContainerEventType, TokenEvent.TokenEventFlowStatus, TokenEvent.TokenEventType
Constructor and Description |
---|
NextTokenEvent() |
NextTokenEvent(String json) |
NextTokenEvent(TokenEvent.TokenEventFlowStatus flowStatus,
Collection<T> tokens,
org.apache.commons.collections.Transformer nextTokensAction) |
NextTokenEvent(TokenEvent.TokenEventFlowStatus flowStatus,
Supplier<Collection<T>> tokensSupplier,
org.apache.commons.collections.Transformer nextTokensAction) |
NextTokenEvent(TokenEvent.TokenEventFlowStatus flowStatus,
org.apache.commons.collections.Transformer nextTokensAction) |
NextTokenEvent(TokenEvent.TokenEventFlowStatus flowStatus,
T token,
org.apache.commons.collections.Transformer nextTokensAction) |
NextTokenEvent(org.apache.commons.collections.Transformer nextTokensAction) |
Modifier and Type | Method and Description |
---|---|
org.apache.commons.collections.Transformer |
getNextTokensAction()
An action that will act on the next token(s),
to automate any sequence of events that result as action due to current event.
|
void |
setNextTokensAction(org.apache.commons.collections.Transformer nextTokensAction)
An action that will act on the next token(s),
to automate any sequence of events that result as action due to current event.
|
addBehavior, consumed, getBehaviors, getFeedback, getFlowStatus, getPreEventProcess, getToken, getTokens, setBehaviors, setFeedback, setFlowStatus, setToken, setTokens, setTokens, toString, wasConsumed
getLevel, getMessage, setLevel, setMessage
public NextTokenEvent()
public NextTokenEvent(String json)
public NextTokenEvent(org.apache.commons.collections.Transformer nextTokensAction)
public NextTokenEvent(TokenEvent.TokenEventFlowStatus flowStatus, org.apache.commons.collections.Transformer nextTokensAction)
public NextTokenEvent(TokenEvent.TokenEventFlowStatus flowStatus, T token, org.apache.commons.collections.Transformer nextTokensAction)
public NextTokenEvent(TokenEvent.TokenEventFlowStatus flowStatus, Collection<T> tokens, org.apache.commons.collections.Transformer nextTokensAction)
public NextTokenEvent(TokenEvent.TokenEventFlowStatus flowStatus, Supplier<Collection<T>> tokensSupplier, org.apache.commons.collections.Transformer nextTokensAction)
public org.apache.commons.collections.Transformer getNextTokensAction()
public void setNextTokensAction(org.apache.commons.collections.Transformer nextTokensAction)
Copyright © 2018. All rights reserved.