Component States

COMPONENT MODELING | COMPONENT SCRIPTING

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 or higher

What did you think about the lesson?

3 answers.