// Generated by CoffeeScript 1.4.0
(function() {
  var SearchProblemGenerator, root,
    __hasProp = {}.hasOwnProperty,
    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

  SearchProblemGenerator = (function(_super) {

    __extends(SearchProblemGenerator, _super);

    function SearchProblemGenerator(seed, parameters) {
      this.parameters = parameters != null ? parameters : {};
      SearchProblemGenerator.__super__.constructor.call(this, seed, this.parameters);
    }

    SearchProblemGenerator.prototype.generate = function() {
      var problemData, searchProblem;
      problemData = {
        statePositions: this.parameters.state_positions,
        states: this.parameters.states,
        edgeData: this.parameters.edges,
        bounds: this.parameters.bounds
      };
      searchProblem = new SearchProblem({
        data: problemData
      });
      this.problemState.searchProblemData = searchProblem.serialize();
      return this.problemState;
    };

    return SearchProblemGenerator;

  })(XProblemGenerator);

  root = typeof exports !== "undefined" && exports !== null ? exports : this;

  root.generatorClass = SearchProblemGenerator;

}).call(this);
