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

org.squirrelframework.foundation.fsm.Actions 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 java.util.List;

import org.squirrelframework.foundation.component.SquirrelComponent;

/**
 * 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> newActions);
    
    /**
     * @return all sorted actions
     */
    List> getAll();
    
    /**
     * Remove all actions
     */
    void clear();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy