/*  Copyright (C) 2010 Joshua Judson Rosen <rozzin@geekspace.com>.

    This program is free software: you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    version 3 as published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; see the file COPYING. If not, see
    <http://www.gnu.org/licenses/> or write to:

        The Free Software Foundation, inc.
        51 Franklin Street, Fifth Floor
        Boston, MA 02110-1301
        USA
*/

#ifndef VISUALID_GENERATOR_H
#define VISUALID_GENERATOR_H

typedef struct _VisualID_Generator VisualID_Generator;
typedef struct _VisualID_GeneratorClass VisualID_GeneratorClass;

struct _VisualID_Generator
{
  GObject parent_instance;

  GRand *state;

  int recursion_max;
  int complexity_max;

  VirandGenerator *roots;
  VirandGenerator *children;
  VirandGenerator *terminals;
};


#define VISUALID_TYPE_GENERATOR            (visualid_generator_get_type ())
#define VISUALID_GENERATOR(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), VISUALID_TYPE_GENERATOR, VisualID_Generator))
#define VISUALID_IS_GENERATOR(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VISUALID_TYPE_GENERATOR))

#define VISUALID_GENERATOR_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), VISUALID_TYPE_GENERATOR, VisualID_GeneratorClass))
#define VISUALID_IS_GENERATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass, VISUALID_TYPE_GENERATOR)))

#define VISUALID_GENERATOR_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), VISUALID_TYPE_GENERATOR, VisualID_GeneratorClass))


GType visualid_generator_get_type (void);


#endif
