R/RateRule.R

setClass("RateRule", representation(variable = "character"), 
  contains = "Rule")

setMethod("describe", "RateRule",
          function(object) paste(variable(object), ":=", math(object)))

setMethod("variable", "RateRule", function(object) object@variable)

setReplaceMethod("variable", "RateRule", function(object, value) {
  object@variable <- value
  object
})

Try the rsbml package in your browser

Any scripts or data that you put into this service are public.

rsbml documentation built on Nov. 8, 2020, 8:09 p.m.