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

org.squirrelframework.foundation.fsm.Action Maven / Gradle / Ivy

Go to download

foundation module of squirrel framework which provided event driven infrastructure and a finite state machine implementation.

There is a newer version: 0.3.10
Show newest version
package org.squirrelframework.foundation.fsm;

import org.squirrelframework.foundation.component.SquirrelComponent;

/**
 * An activity that is executed during transition happening.
 * 
 * @author Henry.He
 *
 * @param  type of State Machine
 * @param  type of State
 * @param  type of Event
 * @param  type of Context
 */
public interface Action, S, E, C> extends SquirrelComponent {
    /**
     * Execute the activity.
     * 
     * @param from transition source state
     * @param to transition target state
     * @param event event that trigger the transition
     * @param context context object
     * @param stateMachine the state machine
     */
    void execute(S from, S to, E event, C context, T stateMachine);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy