define([
  "dojo/_base/declare",
  "state/NoLayerSelected",
  "state/BoundingBoxUndefined",
  "state/BoundingBoxDefining",
  "state/BoundingBoxDefined",
  "state/WaitingForPortrayal",
  "state/FreezeScene",
  "state/SceneRendered"
], function (declare, NoLayerSelected, BoundingBoxUndefined, BoundingBoxDefining, BoundingBoxDefined, WaitingForPortrayal, FreezeScene, SceneRendered) {

  return declare(null, {

    constructor: function () {

    },

    createState: function (stateName) {
      switch (stateName) {
        case "NoLayerSelected":
          return new NoLayerSelected();
        case "BoundingBoxUndefined":
          return new BoundingBoxUndefined();
        case "BoundingBoxDefining":
          return new BoundingBoxDefining();
        case "BoundingBoxDefined":
          return new BoundingBoxDefined();
        case "WaitingForPortrayal":
          return new WaitingForPortrayal();
        case "FreezeScene":
          return new FreezeScene();
        case "SceneRendered":
          return new SceneRendered();
        default:
          return new NoLayerSelected();
      }
    }

  });

});