Ejemplo n.º 1
0
        /// <summary>
        /// Get the list of observed property to judge for analysis.
        /// If there are any problems, this function return null. 
        /// </summary>
        /// <returns>the list of observed property.</returns>
        public List<SaveLoggerProperty> GetRAObservedDataList()
        {
            List<SaveLoggerProperty> resList = new List<SaveLoggerProperty>();
            List<EcellObservedData> obsList = m_env.DataManager.GetObservedData();

            foreach (EcellObservedData data in obsList)
            {
                string dir = m_env.JobManager.TmpDir;
                string path = data.Key;
                double start = 0.0;
                double end = m_robustParameter.SimulationTime;

                SaveLoggerProperty p = new SaveLoggerProperty(path, start, end, dir);
                resList.Add(p);
            }

            if (resList.Count < 1)
            {
                Util.ShowErrorDialog(String.Format(MessageResources.ErrSetNumber,
                    new object[] { MessageResources.NameObservedData, 2 }));
                return null;
            }

            return resList;
        }
Ejemplo n.º 2
0
        private void SetLoggerData()
        {
            _env.DataManager.SetObservedData(new EcellObservedData("Variable:/CELL/CYTOPLASM:P0:Value", 5.0));

            List<SaveLoggerProperty> resList = new List<SaveLoggerProperty>();
            List<EcellObservedData> obsList = _env.DataManager.GetObservedData();

            foreach (EcellObservedData data in obsList)
            {
                String dir = _env.JobManager.TmpDir;
                string path = data.Key;
                double start = 0.0;
                double end = 100;

                SaveLoggerProperty p = new SaveLoggerProperty(path, start, end, dir);
                resList.Add(p);
            }
            _unitUnderTest.SetLoggerData(resList);
        }