Exemple #1
0
 public AlgebraicRule(Model m, String id, String name)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
     this.name = name;
 }
Exemple #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;
 }
Exemple #3
0
 public Constraint(Model m, String id, String name)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
     this.name = name;
 }
Exemple #4
0
        public SBase variable; // can be Species, Compartment or Parameter

        #endregion Fields

        #region Constructors

        public RateRule(Model model)
        {
            this.model = model;
        }
Exemple #5
0
 public Parameter(Model m, String id)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
 }
Exemple #6
0
 public ModifierSpeciesReference(Model model, Species species)
 {
     this.model = model;
     this.species = species;
 }
Exemple #7
0
 public AlgebraicRule(Model m)
 {
     this.model = model;
 }
Exemple #8
0
 public LeafNode(Model m, MathNode parent, Enum constant)
 {
     this.model = m;
     this.parent = parent;
     this.data = constant;
 }
Exemple #9
0
 public FunctionDefinition(Model m, String id, String name)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
     this.name = name;
 }
Exemple #10
0
 public FunctionDefinition(Model m, String id)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
 }
Exemple #11
0
 public FunctionDefinition(Model m)
 {
     this.model = model;
 }
Exemple #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
 }
Exemple #13
0
        public SBase variable; // can be Compartment, Species or Parameter

        #endregion Fields

        #region Constructors

        public EventAssignment(Model model)
        {
            this.model = model;
        }
Exemple #14
0
 public Event(Model m, String id)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
 }
Exemple #15
0
 // each eventAssignment must use a unique variable (no overlap) per event
 public Event(Model model)
 {
     this.model = model;
 }
Exemple #16
0
 public KineticLaw(Model m, String id, String name)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
     this.name = name;
 }
Exemple #17
0
 public LeafNode(Model m, MathNode parent)
 {
     this.model = model;
     this.parent = parent;
 }
Exemple #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;
 }
Exemple #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";
            }
        }
Exemple #20
0
        public SBase variable; // can be Species, Compartment or Parameter

        #endregion Fields

        #region Constructors

        public InitialAssignment(Model m)
        {
            this.model = model;
        }
Exemple #21
0
 public InitialAssignment(Model m, String id, String name)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
     this.name = name;
 }
Exemple #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;
 }
Exemple #23
0
 public ModifierSpeciesReference(Model model)
 {
     this.model = model;
 }
Exemple #24
0
 public InitialAssignment(Model model, SBase variable)
 {
     this.model = model;
     this.variable = variable;
 }
Exemple #25
0
 public Parameter(Model m)
 {
     this.model = model;
 }
Exemple #26
0
 public KineticLaw(Model model)
 {
     this.model = model;
 }
Exemple #27
0
 public Parameter(Model m, String id, String name)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
     this.name = name;
 }
Exemple #28
0
 public KineticLaw(Model m, String id)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
 }
Exemple #29
0
 public RateRule(Model m, String id)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
 }
Exemple #30
0
 public Constraint(Model m, String id)
 {
     this.model = model;
     this.id = id;
     this.model.AddId(id, this);
 }