code: function State(name, parent) {
          var _this = _super.call(this, name, parent) || this;
          /** The user-defined behavior (built up via calls to the [[exit]] method). */
          /** @internal */ _this.exitBehavior = new Array();
          /** The user-defined behavior (built up via calls to the [[entry]] method). */
          /** @internal */ _this.entryBehavior = new Array();
          /** The [[Region]] instances that are a child of  this [[State]]. */
          _this.regions = new Array();
          return _this;
      }
docs: Creates a new instance of the [[State]] class.
  @param name The name of the [[State]].
  @param parent The parent [[State]] or [[Region]] that this [[State is a child of]].
  @note When the parent parameter is of type [[State]], a default [[Region]] is created and subsiquently accessible via the [[defaultRegion]] method.