/// <summary> /// CreateLogger /// </summary> /// <param name="fullPathID">The FullPathID to set the logger.</param> /// <param name="isInitalize">The flag whether this logger is initialized.</param> /// <param name="sim">The current simulator.</param> /// <param name="loggerPolicy">The current logger policy.</param> private void CreateLogger(string fullPathID, bool isInitalize, WrappedSimulator sim, LoggerPolicy loggerPolicy) { if (m_loggerEntry.Contains(fullPathID)) return; if (m_currentProject.SimulationStatus == SimulationStatus.Run || m_currentProject.SimulationStatus == SimulationStatus.Suspended || isInitalize) { sim.CreateLogger(fullPathID, loggerPolicy.ReloadStepCount, loggerPolicy.ReloadInterval, Convert.ToBoolean((int)loggerPolicy.DiskFullAction), loggerPolicy.MaxDiskSpace); m_currentProject.LogableEntityPathDic[fullPathID] = m_currentProject.Model.FullID; } m_loggerEntry.Add(fullPathID); }