LESSONS › Python API

Component States

A component can be modeled to have one or more defined states, which you can control using Python API. States are created in a Statistics behavior and can be used to control the functionality of other behaviors. For example, when a component is in a Broken state, you can disable paths.

In this tutorial you learn how to:
  • Create default and custom states in a component.
  • Write a component script that can control and record component states during a simulation.
  • Write a component script that can simulate meantime between failures (MTBF) and meantime to repair (MTTR) states in a component.
  • Export state statistics collected during a simulation to a CSV file

Software Version: 4.0.2

TABLE OF CONTENTS

  1. Getting Started
  2. Define Idle and Busy States
  3. Define Failure and Repair States
  4. Define Custom State
  5. Export State Statistics
DOWNLOAD FILESFORUM