public void Init() { Species.DatasetParser speciesParser = new Species.DatasetParser(); reader = OpenFile("Species.txt"); try { speciesDataset = speciesParser.Parse(reader); } finally { reader.Close(); } parser = new ParametersParser(speciesDataset); }
public void Init() { parser = new ParametersParser(); Species.DatasetParser speciesParser = new Species.DatasetParser(); reader = OpenFile("Species.txt"); try { ParametersParser.SpeciesDataset = speciesParser.Parse(reader); } finally { reader.Close(); } }
public void Init() { Species.DatasetParser speciesParser = new Species.DatasetParser(); reader = OpenFile("Species.txt"); try { speciesDataset = speciesParser.Parse(reader); } finally { reader.Close(); } parser = new ParametersParser(speciesDataset, startTime, endTime); }
public void Init() { parser = new ParametersParser(); Species.DatasetParser speciesParser = new Species.DatasetParser(); LineReader speciesReader = OpenFile("SpeciesDataset.txt"); try { ParametersParser.SpeciesDataset = speciesParser.Parse(speciesReader); } finally { speciesReader.Close(); } Data.Output.WriteLine("{0} = \"{1}\"", dataDirPlaceholder, Data.Directory); Data.Output.WriteLine(); }
public void Init() { Ecoregions.DatasetParser ecoregionsParser = new Ecoregions.DatasetParser(); reader = OpenFile("Ecoregions.txt"); try { ecoregionDataset = ecoregionsParser.Parse(reader); } finally { reader.Close(); } Species.DatasetParser speciesParser = new Species.DatasetParser(); reader = OpenFile("Species.txt"); try { speciesDataset = speciesParser.Parse(reader); } finally { reader.Close(); } parser = new ParametersParser(ecoregionDataset, speciesDataset); }
//--------------------------------------------------------------------- public static Species.IDataset LoadSpecies() { Species.DatasetParser speciesParser = new Species.DatasetParser(); FileLineReader reader = OpenFile("Species.txt"); try { return speciesParser.Parse(reader); } finally { reader.Close(); } }