org.squirrelframework.foundation.fsm.Actions 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;
import org.squirrelframework.foundation.component.SquirrelComponent;
import java.util.List;
/**
* Action collection which insert new action in predefined order.
*
* @author Henry.He
*
* @param type of State Machine
* @param type of State
* @param type of Event
* @param type of Context
*/
public interface Actions, S, E, C> extends SquirrelComponent {
/**
* Add a new action
* @param newAction new action
*/
void add(Action newAction);
/**
* Add a list of new actions
* @param newActions new actions
*/
void addAll(List extends Action> newActions);
/**
* @return all sorted actions
*/
List> getAll();
/**
* Remove all actions
*/
void clear();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy