isSetDelay() public method

public isSetDelay ( ) : 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);
        }
コード例 #2
0
ファイル: printMath.cs プロジェクト: TotteKarlsson/roadrunner
    private static void printEventMath(int n, Event e)
    {
        string formula;
        int i;

        if (e.isSetDelay())
        {
            formula = libsbml.formulaToString(e.getDelay().getMath());
            Console.Write("Event " + n + " delay: " + formula + Environment.NewLine);
        }

        if (e.isSetTrigger())
        {
            formula = libsbml.formulaToString(e.getTrigger().getMath());
            Console.Write("Event " + n + " trigger: " + formula + Environment.NewLine);
        }

        for (i = 0; i < e.getNumEventAssignments(); ++i)
        {
            printEventAssignmentMath(i + 1, e.getEventAssignment(i));
        }

        Console.WriteLine();
    }