deltaq-1.0.0.0: Framework for ∆Q System Development
CopyrightPredictable Network Solutions Ltd. 2003-2024
LicenseBSD-3-Clause
Safe HaskellSafe-Inferred
LanguageHaskell2010

DeltaQ.Methods

Description

This module collects common methods for constructing DeltaQ and analyzing them.

Synopsis

Slack / Hazard

meetsRequirement :: DeltaQ o => o -> (Duration o, Probability o) -> SlackOrHazard o Source #

Compute "slack or hazard" with respect to a given reference point.

data SlackOrHazard o Source #

The "slack or hazard" represents the distance between a reference point in (time, probability) space and a given DeltaQ.

  • Slack represents the case where the DeltaQ meets the performance requirements set by the reference point.
  • Hazard represents the case where the DeltaQ fails to meet the performance requirements set by the reference point.

Both cases include information of how far the reference point is away.

Constructors

Slack (Duration o) (Probability o)

We have some slack. Specifically, we have Duration at the same probability as the reference, and Probability at the same duration as the reference.

Hazard (Eventually (Duration o)) (Probability o)

We fail to meet the reference point. Specifically, we overshoot by Duration at the same probability as the reference, and by Probability at the same duration as the reference.

Instances

Instances details
(Show (Duration o), Show (Probability o)) => Show (SlackOrHazard o) Source # 
Instance details

Defined in DeltaQ.Methods

(Eq (Duration o), Eq (Probability o)) => Eq (SlackOrHazard o) Source # 
Instance details

Defined in DeltaQ.Methods

isSlack :: SlackOrHazard o -> Bool Source #

Test whether the given SlackOrHazard is Slack.

isHazard :: SlackOrHazard o -> Bool Source #

Test whether the given SlackOrHazard is Hazard.