View Javadoc

1   /*
2    * Created on 17-ago-2005
3    *
4    * TODO To change the template for this generated file go to
5    * Window - Preferences - Java - Code Style - Code Templates
6    */
7   package org.state4j.sm;
8   
9   import java.util.Map;
10  
11  /***
12   * @author andrea
13   *
14   */
15  public interface SmCompositeState extends SmState {
16  
17  	SmState getState(String name);
18  
19  	Map<String, SmState> getStates();
20  
21  	boolean hasState(String name);
22  
23  	boolean hasStates();
24  
25  	void setStates(Map<String, SmState> states);
26  	
27  	SmState getActiveSubstate(SmContext cntx);
28  	boolean hasActiveSubstate(SmContext cntx);
29  	
30  	SmCompositeState getLCA(SmState state1, SmState state2);
31  	SmState getInitialState();
32  
33  	void registerLCA(SmTransition transition);
34  }