R/CompartmentVolumeRule.R

setClass("CompartmentVolumeRule", representation(compartment = "character"), 
  contains = "AssignmentRule")

setMethod("describe", "CompartmentVolumeRule",
          function(object)
          paste("|", compartment(object), "| :=", math(object), sep = ""))

setMethod("compartment", "CompartmentVolumeRule", function(object) object@compartment)

setReplaceMethod("compartment", "CompartmentVolumeRule", function(object, value) {
  object@compartment <- 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.