Пример #1
0
        /// <summary>
        ///    Creates a MoBi Event by the given SBML Event.
        /// </summary>
        internal void CreateEvent(Event sbmlEvent)
        {
            EventBuilder = new EventBuilder()
                           .WithId(sbmlEvent.getId() + SBMLConstants.SBML_EVENTBUILDER)
                           .WithName(sbmlEvent.getId())
                           .WithDescription(sbmlEvent.getNotesString());

            if (sbmlEvent.isSetTrigger())
            {
                CreateCondition(sbmlEvent.getTrigger());
            }
            CreateEventAssignments(sbmlEvent);
            CreateWarningsForUnsupportedFeatures(sbmlEvent);

            EventGroupBuilder.Add(EventBuilder);
        }