Example #1
0
 public AlgebraicRule(Model m, String id, String name)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
     this.name = name;
 }
Example #2
0
 public AlgebraicRule(Model model, Hashtable attrs)
 {
     this.model = model;
     if (attrs.Contains("id"))
     {
         this.id = (String)attrs["id"];
         this.model.AddId(this.id, this);
         this.model.AddUnit(this.id, this);
     }
     if (attrs.Contains("name"))
         this.name = name;
 }
Example #3
0
 public Constraint(Model m, String id, String name)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
     this.name = name;
 }
Example #4
0
        public SBase variable; // can be Species, Compartment or Parameter

        #endregion Fields

        #region Constructors

        public RateRule(Model model)
        {
            this.model = model;
        }
Example #5
0
 public Parameter(Model m, String id)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
 }
Example #6
0
 public ModifierSpeciesReference(Model model, Species species)
 {
     this.model = model;
     this.species = species;
 }
Example #7
0
 public AlgebraicRule(Model m)
 {
     this.model = model;
 }
Example #8
0
 public LeafNode(Model m, MathNode parent, Enum constant)
 {
     this.model = m;
     this.parent = parent;
     this.data = constant;
 }
Example #9
0
 public FunctionDefinition(Model m, String id, String name)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
     this.name = name;
 }
Example #10
0
 public FunctionDefinition(Model m, String id)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
 }
Example #11
0
 public FunctionDefinition(Model m)
 {
     this.model = model;
 }
Example #12
0
 public EventAssignment(Model model, SBase variable)
 {
     this.model = model;
     this.variable = variable;
     // check variable exists in model.IdTable
     // and that it's not set to constant
 }
Example #13
0
        public SBase variable; // can be Compartment, Species or Parameter

        #endregion Fields

        #region Constructors

        public EventAssignment(Model model)
        {
            this.model = model;
        }
Example #14
0
 public Event(Model m, String id)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
 }
Example #15
0
 // each eventAssignment must use a unique variable (no overlap) per event
 public Event(Model model)
 {
     this.model = model;
 }
Example #16
0
 public KineticLaw(Model m, String id, String name)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
     this.name = name;
 }
Example #17
0
 public LeafNode(Model m, MathNode parent)
 {
     this.model = model;
     this.parent = parent;
 }
Example #18
0
 public FunctionDefinition(Model model, Hashtable attrs)
 {
     this.model = model;
     if (attrs.Contains("id"))
     {
         this.id = (String)attrs["id"];
         this.model.AddId(this.id, this);
     }
     if (attrs.Contains("name"))
         this.name = name;
 }
Example #19
0
        public LeafNode(Model m, MathNode parent, String type)
        {
            this.model = m;
            this.parent = parent;

            if (type == "integer" || type == "real" ||
                type == "rational" || type == "e-notation")
            {
                this.type = type;
            }
            else if (type == null)
            {
                this.type = "real";
            }
            else // not a number, it's a string id
            {
                this.type = "string";
            }
        }
Example #20
0
        public SBase variable; // can be Species, Compartment or Parameter

        #endregion Fields

        #region Constructors

        public InitialAssignment(Model m)
        {
            this.model = model;
        }
Example #21
0
 public InitialAssignment(Model m, String id, String name)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
     this.name = name;
 }
Example #22
0
 public InitialAssignment(Model model, Hashtable attrs)
 {
     this.model = model;
     if (attrs.Contains("id"))
     {
         this.id = (String)attrs["id"];
         this.model.AddId(this.id, this);
         this.model.AddUnit(this.id, this);
     }
     if (attrs.Contains("name"))
         this.name = name;
 }
Example #23
0
 public ModifierSpeciesReference(Model model)
 {
     this.model = model;
 }
Example #24
0
 public InitialAssignment(Model model, SBase variable)
 {
     this.model = model;
     this.variable = variable;
 }
Example #25
0
 public Parameter(Model m)
 {
     this.model = model;
 }
Example #26
0
 public KineticLaw(Model model)
 {
     this.model = model;
 }
Example #27
0
 public Parameter(Model m, String id, String name)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
     this.name = name;
 }
Example #28
0
 public KineticLaw(Model m, String id)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
 }
Example #29
0
 public RateRule(Model m, String id)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
 }
Example #30
0
 public Constraint(Model m, String id)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
 }