getAllStateIDs() {
    let result = [];
    for (let i = 0; i < this.states.length; i++) {
      result.push(this.states[i].id);
    }
    return result;
  }
Returns all the state ids of states in the machine. Note that the
fallThroughState is typically not a state in the machine.
@return {Array.<number>}