Active
Indicate object in use during simulation
Description
The Active
property indicates whether a simulation
is using a SimBiology® object. A SimBiology model is organized
into a hierarchical group of objects. Use the Active
property
to include or exclude objects during a simulation.
Event, Reaction, or Rule — When an event, a reaction, or rule object
Active
property is set tofalse
, the simulation does not include the event, reaction, or rule. This is a convenient way to test a model with and without a reaction or rule.Configuration set — For the
configset
object, use the methodsetactiveconfigset
to set the objectActive
property totrue
.Warning
This property of the
Configset object
will be removed in a future release. Explicitly specify a configset as an input argument when you simulate a model usingsbiosimulate
.Variant — Set the
Active
property totrue
if you always want the variant to be applied before simulating the model. You can also pass the variant object as an argument tosbiosimulate
; this applies the variant only for the current simulation. For more information on using theActive
property for variants, seeVariant object
.Warning
This property of the
Variant object
will be removed in a future release. Explicitly specify a variant or an array of variants as an input argument when you simulate a model usingsbiosimulate
..
Schedule dose and Repeat dose — To use a dose object in a simulation, you must add the dose object to a model object and set the Active property of the dose object to true.
Warning
This property of the
ScheduleDose object
andRepeatDose object
will be removed in a future release. Explicitly specify a dose or an array of doses as an input argument when you simulate a model usingsbiosimulate
.
Characteristics
Applies to | Objects: configset, event, observable, reaction, RepeatDose, rule, ScheduleDose, variant |
Data type | boolean |
Data values |
|
Access | Read/write |
Examples
Create a model object.
modelObj = sbiomodel ('my_model');
Add a reaction object and verify that the
Active
property setting is'true'
or1
.reactionObj = addreaction (modelObj, 'a + b -> c + d'); get (reactionObj, 'Active')
MATLAB® returns:
ans = 1
Set the
Active
property to'false'
and verify.set (reactionObj, 'Active', false); get (reactionObj, 'Active')
MATLAB returns:
ans = 0