org.squirrelframework.foundation.fsm.StateMachineWithoutContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of squirrel-foundation Show documentation
Show all versions of squirrel-foundation Show documentation
foundation module of squirrel framework which provided event driven infrastructure and a finite state machine implementation.
package org.squirrelframework.foundation.fsm;
/**
* State machine which does not include environmental context during state transition.
* @author Henry.He
*
* @param type of State Machine
* @param type of State
* @param type of Event
*/
public interface StateMachineWithoutContext, S, E> extends StateMachine {
/**
* Fire event
* @param event
*/
void fire(E event);
/**
* Test event
* @param event
*/
S test(E event);
/**
* Start state machine
*/
void start();
/**
* Terminate state machine
*/
void terminate();
}