org.squirrelframework.foundation.fsm
Interface Actions<T extends StateMachine<T,S,E,C>,S,E,C>

Type Parameters:
T - type of State Machine
S - type of State
E - type of Event
C - type of Context
All Superinterfaces:
SquirrelComponent
All Known Implementing Classes:
ActionsImpl

public interface Actions<T extends StateMachine<T,S,E,C>,S,E,C>
extends SquirrelComponent

Action collection which insert new action in predefined order.

Author:
Henry.He

Method Summary
 void add(Action<T,S,E,C> newAction)
          Add a new action
 void addAll(List<Action<T,S,E,C>> newActions)
          Add a list of new actions
 void clear()
          Remove all actions
 List<Action<T,S,E,C>> getAll()
           
 

Method Detail

add

void add(Action<T,S,E,C> newAction)
Add a new action

Parameters:
newAction - new action

addAll

void addAll(List<Action<T,S,E,C>> newActions)
Add a list of new actions

Parameters:
newActions - new actions

getAll

List<Action<T,S,E,C>> getAll()
Returns:
all sorted actions

clear

void clear()
Remove all actions



Copyright © 2013-2014. All Rights Reserved.