libsbmlcs.EventAssignment.setVariable C# (CSharp) Method

setVariable() public method

public setVariable ( string sid ) : int
sid string
return int
        public int setVariable(string sid)
        {
            int ret = libsbmlPINVOKE.EventAssignment_setVariable(swigCPtr, sid);
            if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
            return ret;
        }

Usage Example

コード例 #1
0
        protected override void Because()
        {
            var sbmlModel = new Model(3, 1);

            //Event
            var sbmlEvent = sbmlModel.createEvent();

            sbmlEvent.setId("e1");
            sbmlEvent.setName("e1_name");
            sbmlEvent.setNotes("eventNotes");

            //Trigger
            var trigger = sbmlModel.createTrigger();

            trigger.setMath(libsbml.parseFormula("1 > 0 "));
            sbmlEvent.setTrigger(trigger);
            //Event Assignment
            var assign = new EventAssignment(3, 1);

            assign.setId("ea1");
            assign.setName("ea1_name");
            assign.setVariable("x1");
            assign.setMath(libsbml.parseFormula("1+2"));
            sbmlEvent.addEventAssignment(assign);

            sbmlModel.addEvent(sbmlEvent);

            sut.DoImport(sbmlModel, new MoBiProject(), A.Fake <SBMLInformation>(), new MoBiMacroCommand());
        }
All Usage Examples Of libsbmlcs.EventAssignment::setVariable