Пример #1
0
 public StyleCreator(ConfigFacade config, Randomizer randomizer)
 {
     randomNumber = new Random();
     configFacade = config;
     this.randomizer = randomizer;
     defaults = new Defaults();
 }
Пример #2
0
 public FeatureCreator(ConfigFacade configuration, IDataProvider dataProvider, Randomizer randomGen)
 {
     docTree = new DocumentTree();
     randomNumberGen = new Random();
     this.configuration = configuration;
     this.DataProvider = dataProvider;
     this.randomGen = randomGen;
 }
        public DocumentCreator(IDataProvider dataProvider, String outputFilePath, String runConfigPath, String docFeaturesPath)
        {
            docTree = new DocumentTree();

            randomNumberGen = new Random();
            defualts = new Defaults();
            xmlWriter = new XmlWriter(outputFilePath);
            runConfig = new RunConfig(runConfigPath, defualts);

            docFeatures = new DocFeatures(docFeaturesPath);
            config = new ConfigFacade(runConfig, docFeatures, defualts);
            randomGen = new Randomizer(config);
            styleCreator = new StyleCreator(config, randomGen);
            featureCreator = new FeatureCreator(config, dataProvider, randomGen);
        }