Exemplo n.º 1
0
        //internal static TIMESystemRunner BuildSystem( )
        //{
        //    return BuildSystem( ModelRunDefFile );
        //}

        internal static ModelRunner BuildSystem(string modelRunDefnFile, string modelOutputName)
        {
            var modelRun = new SimulationXmlFilesRepository( ).Load(modelRunDefnFile);

            modelRun.Record(modelOutputName);
            return(modelRun);
        }
Exemplo n.º 2
0
 public static IPointTimeSeriesSimulation LoadModel(string filename)
 {
     checkIsNullOrEmpty(filename);
     var repo = new SimulationXmlFilesRepository();
     var result = repo.Load(filename);
     return result;
 }
Exemplo n.º 3
0
        public static IPointTimeSeriesSimulation LoadModel(string filename)
        {
            checkIsNullOrEmpty(filename);
            var repo   = new SimulationXmlFilesRepository();
            var result = repo.Load(filename);

            return(result);
        }
Exemplo n.º 4
0
        private void addCell(string catId, CellDefinition cellDefinition)
        {
            if (!models.ContainsKey(catId))
            {
                models[catId] = new Dictionary <string, Tuple <CellDefinition, IPointTimeSeriesSimulation> >();
            }
            IPointTimeSeriesSimulation mr =
                SimulationXmlFilesRepository.BuildModelRunner(cellDefinition.ModelRunDefinition);

            models[catId][cellDefinition.Id] = Tuple.Create(cellDefinition, mr);
        }
        public static ICatchmentCellModelRunner CreateCellEvaluator(CellDefinition cellDefinition)
        {
            ModelRunner runner = SimulationXmlFilesRepository.BuildModelRunner(cellDefinition.ModelRunDefinition);

            return(new GridCellModel(runner, cellDefinition));
        }