com.alibaba.cola.statemachine.Action Maven / Gradle / Ivy
package com.alibaba.cola.statemachine;
/**
* Generic strategy interface used by a state machine to respond
* events by executing an {@code Action} with a {@link StateContext}.
*
* @author Frank Zhang
* @date 2020-02-07 2:51 PM
*/
public interface Action {
// /**
// * Execute action with a {@link StateContext}.
// *
// * @param context the state context
// */
// void execute(StateContext context);
public void execute(S from, S to, E event, C context);
}