Hazard

class Hazard(val id: HazardId, val type: HazardType, val category: HazardCategory, val severity: HazardSeverity, val detailedInformation: DetailedHazardInformation?, val location: HazardLocation, val version: Int)

A hazard entry.

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
constructor(id: HazardId, type: HazardType, category: HazardCategory, severity: HazardSeverity, detailedInformation: DetailedHazardInformation?, location: HazardLocation, version: Int)

Properties

Link copied to clipboard

The HazardCategory aggregates the different types at a higher level.

Link copied to clipboard

The DetailedHazardInformation the basis for the individual hazard types. Each type may have additional information.

Link copied to clipboard

A unique ID of the hazard data.

Link copied to clipboard

The HazardLocation indicating where the hazard is happening.

Link copied to clipboard

The HazardSeverity of a hazard describes its criticality with respect to the danger.

Link copied to clipboard

The HazardType is the lowest level of hazard categorization, defining its nature.

Link copied to clipboard

An incrementing counter representing the version of the Hazard, where higher numbers indicate updates to the Hazard content.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Converts the Hazard object to a String representation.