A simple state machine.  
 More...
 | 
|   | __pad0__: NSObject- (void) addTransitionWithFromState:(T)fromState toState:(T)toState | 
|   | 
◆ canTransitionWithToState:
      
        
          | - (bool) canTransitionWithToState:  | 
           | 
          (T)  | 
          toState | 
           | 
        
      
 
Determines whether a transition to the specified state is allowed. 
- Parameters
 - 
  
  
 
- Returns
 true if a transition to the specified state is allowed; otherwise, false. 
 
 
◆ getPromiseWithState:returnValue:
Gets a promise, which may be resolved or rejected depending on the current state of this machine. 
- Parameters
 - 
  
    | state | State, in which promise must be resolved.  | 
    | returnValue | Return type of this promise.  | 
  
   
- Returns
 - Promise, which may be resolved or rejected depending on the current state of this machine 
 
 
 
◆ initWithInitialState:
      
        
          | - (instancetype) initWithInitialState:  | 
           | 
          (T)  | 
          initialState | 
           | 
        
      
 
Initializes a new instance of the FMLiveSwitchStateMachine`1 class. 
- Parameters
 - 
  
    | initialState | The initial state.  | 
  
   
 
 
◆ isReachableWithState:
      
        
          | - (bool) isReachableWithState:  | 
           | 
          (T)  | 
          state | 
           | 
        
      
 
Determines whether a transition to a specified state is possible (even via intermediate hops). 
- Parameters
 - 
  
  
 
- Returns
 true if a transition to the specified state is possible; otherwise, false. 
 
 
◆ lastStateMillis
      
        
          | - (long long) lastStateMillis  | 
           | 
           | 
           | 
        
      
 
Gets the length of time spent in the last state, in milliseconds. 
 
 
◆ lastStateTicks
      
        
          | - (long long) lastStateTicks  | 
           | 
           | 
           | 
        
      
 
Gets the length of time spent in the last state, in ticks. 
 
 
◆ state
◆ stateMachineWithInitialState:
Initializes a new instance of the FMLiveSwitchStateMachine`1 class. 
- Parameters
 - 
  
    | initialState | The initial state.  | 
  
   
 
 
◆ stateToValueWithState:
      
        
          | - (int) stateToValueWithState:  | 
           | 
          (T)  | 
          state | 
           | 
        
      
 
Converts a state to an integer value. 
- Parameters
 - 
  
  
 
 
 
◆ stateValue
◆ systemTimestamp
      
        
          | - (long long) systemTimestamp  | 
           | 
           | 
           | 
        
      
 
Gets the system timestamp of the last state transition. 
 
 
◆ transitionWithToState:
      
        
          | - (bool) transitionWithToState:  | 
           | 
          (T)  | 
          toState | 
           | 
        
      
 
Transitions to the specified state. 
- Parameters
 - 
  
  
 
- Returns
 true if a transition to the specified state is allowed; otherwise, false. 
 
 
◆ valueToState:
      
        
          | - T valueToState:  | 
           | 
          (int)  | 
          value | 
           | 
        
      
 
 
◆ __pad0__