DemandStateId

sealed class DemandStateId(val displayName: String)(source)

Type-safe identifier for the lifecycle states of a SupplyChainModel.Demand. Each state in the demand state machine has exactly one DemandStateId singleton; the sealed-class hierarchy lets listener bodies use exhaustive when and referential identity (===) checks instead of stringly-typed comparison on displayName.

The state-machine implementation lives on SupplyChainModel.DemandState and uses these IDs to label each concrete state class.

Inheritors

Constructors

Link copied to clipboard
protected constructor(displayName: String)

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

the human-readable name of the state. Matches the string previously returned by DemandState.stateName; kept stable so that stateName-based code paths and any external persistence keep working.

Functions

Link copied to clipboard
open override fun toString(): String