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

        #endregion Fields

        #region Constructors

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

        #endregion Fields

        #region Constructors

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

        #endregion Fields

        #region Constructors

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