All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cmt.statemachine.Action Maven / Gradle / Ivy

The newest version!
package com.cmt.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);

    T execute(R request);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy