
org.squirrelframework.foundation.fsm.builder.From Maven / Gradle / Ivy
package org.squirrelframework.foundation.fsm.builder;
import org.squirrelframework.foundation.fsm.StateMachine;
/**
* From clause builder which is used to build transition target state.
*
* @author Henry.He
*
* @param type of State Machine
* @param type of State
* @param type of Event
* @param type of Context
*/
public interface From, S, E, C> {
/**
* Build transition target state and return to clause builder
* @param stateId id of state
* @return To clause builder
*/
To to(S stateId);
/**
* Builder transition target state as final state and return to clause builder
* @param stateId id of state
* @return To clause builder
*/
To toFinal(S stateId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy