mjp-accessors: Accessor functions for Class mjpModel

Description Usage Arguments Details See Also

Description

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.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
## 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

Arguments

obj

an object of class mjpModel

value

the value that shall be set

Details

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.

See Also

Class definition mjpModel


CharlotteJana/pdmpsim documentation built on July 2, 2019, 5:37 a.m.