isSetPriority() public method

public isSetPriority ( ) : bool
return bool
コード例 #1
0
ファイル: EventImporter.cs プロジェクト: onwhenrdy/MoBi
        /// <summary>
        ///    Creates warnings to inform the user, that "Delay" and "Priority" of events are not supported/considered.
        /// </summary>
        private void CreateWarningsForUnsupportedFeatures(Event sbmlEvent)
        {
            if (sbmlEvent.isSetDelay())
            {
                var msg = new NotificationMessage(_sbmlProject, MessageOrigin.All, null, NotificationType.Warning)
                {
                    Message = SBMLConstants.SBML_FEATURE_NOT_SUPPORTED + ": Delay of Events is not considered."
                };
                _sbmlInformation.NotificationMessages.Add(msg);
            }

            if (!sbmlEvent.isSetPriority())
            {
                return;
            }
            var msg2 = new NotificationMessage(_sbmlProject, MessageOrigin.All, null, NotificationType.Warning)
            {
                Message = SBMLConstants.SBML_FEATURE_NOT_SUPPORTED + ": Priority of Events is not considered."
            };

            _sbmlInformation.NotificationMessages.Add(msg2);
        }