Skip to main content

ComponentExposureScenario

Communication scenarios · Implementation: mlsysim/engine/scenario_definitions/communication.py.

Construct this scenario with keyword inputs. The fields below show the types and defaults declared by this class.

Independent components, each affected with probability (per day, or at one instant).

counts lists the factors whose product is the component count, so the breakdown (devices, links per device, modules per link) stays visible.

Notes

Equation: Compose mlsysim.physics.reliability.calc_all_up_availability.

Assumptions: The multiplicity hierarchy determines total component count; event probability has one shared interpretation and interval. Probability-of-any calculations require independence.

Excludes: Correlated events are absent, even though expected-count arithmetic itself does not require independence.

References

Derivation: this scenario binds its input fields to the referenced implementation contracts: mlsysim.physics.reliability.calc_all_up_availability. The methods below identify any additional arithmetic.

Examples

>>> from mlsysim import Scenarios
>>> case = Scenarios.TransceiverDegradationRoce4K
>>> round(case.n_components, 4)
24576

Attributes

Name Description
counts
expected_events Expected affected-component count in the input probability’s interval. Equation:
n_components Total components in the hierarchy. Equation: product of every multiplicity in
p_any Probability that at least one component is affected. Equation: 1 - p_none. Units:
p_none Probability that none of the components is affected. Equation:
probability

counts

Type: Dict[str, int].

Declared default: required.

probability

Type: float.

Declared default: required.

n_components

engine.scenario_types.ComponentExposureScenario.n_components

Total components in the hierarchy. Equation: product of every multiplicity in counts. Units: components; nested dimensions are assumed independent counts.

expected_events

engine.scenario_types.ComponentExposureScenario.expected_events

Expected affected-component count in the input probability’s interval. Equation: n_components * probability. Units: events; expectation alone does not require independence.

p_none

engine.scenario_types.ComponentExposureScenario.p_none

Probability that none of the components is affected. Equation: calc_all_up_availability(1 - probability, n_components). Units: probability; independent equal-probability component events are assumed.

p_any

engine.scenario_types.ComponentExposureScenario.p_any

Probability that at least one component is affected. Equation: 1 - p_none. Units: probability under the same independence assumption.

Back to top