| mjp-accessors | R Documentation |
Get or set the slot values for an object of class mjpModel.
In most cases, setting a new value also affects the slot out
(where the simulation result can be stored). This applies to slots
times, parms, init, ratefunc,
jumpfunc and initfunc, which set out to NULL.
Setting a new value for descr will not affect
the slot out.
## S4 method for signature 'mjpModel'
ratefunc(obj)
## S4 method for signature 'mjpModel'
jumpfunc(obj)
## S4 method for signature 'mjpModel'
descr(obj)
## S4 replacement method for signature 'mjpModel'
ratefunc(obj) <- value
## S4 replacement method for signature 'mjpModel'
jumpfunc(obj) <- value
## S4 replacement method for signature 'mjpModel'
parms(obj) <- value
## S4 replacement method for signature 'mjpModel'
descr(obj) <- value
## S4 replacement method for signature 'mjpModel'
main(obj) <- value
## S4 replacement method for signature 'mjpModel'
equations(obj) <- value
## S4 replacement method for signature 'mjpModel'
observer(obj) <- value
obj |
an object of class |
value |
the value that shall be set |
It is also possible to modify the slots directly,
e.g. the parameters of a model mjp with mjp@parms,
but this is normally not recommended as there is no guarantee that this
will work in a compatible way in future versions.
Class definition mjpModel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.