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.

Characteristics

Applies toObjects: configset, event, reaction, rule, variant
Data typeboolean
Data values

true or false. Default value for events, reactions, and rules is true. For default configset object default is true, for added configset object default is false. For variants, default is false.

AccessRead/Write

Example

  1. Create a model object.

    modelObj = sbiomodel ('my_model');
  2. Add reaction object and verify that the Active property setting is 'true' or 1.

    reactionObj = addreaction (modelObj, 'a + b -> c + d');
    get (reactionObj, 'Active')

    MATLAB® returns

    ans =
    
    1
  3. Set Active property to 'false' and verify.

    set (reactionObj, 'Active', false);
    get (reactionObj, 'Active')

    MATLAB returns

    ans =
    
    0

See Also

Methods — addreaction, addrule, setactiveconfigset, addconfigset

Objects — Event object, Reaction object, Rule object, Variant object

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS