DeviceEnergyManagementTrait.SlotStruct

class DeviceEnergyManagementTrait.SlotStruct


Indicates a specific stage of an ESA's operation.

Summary

Public constructors

SlotStruct(
    minDuration: UInt,
    maxDuration: UInt,
    defaultDuration: UInt,
    elapsedSlotTime: UInt,
    remainingSlotTime: UInt,
    slotIsPauseable: OptionalValue<Boolean>,
    minPauseDuration: OptionalValue<UInt>,
    maxPauseDuration: OptionalValue<UInt>,
    manufacturerEsaState: OptionalValue<UShort>,
    nominalPower: OptionalValue<Long>,
    minPower: OptionalValue<Long>,
    maxPower: OptionalValue<Long>,
    nominalEnergy: OptionalValue<Long>,
    costs: OptionalValue<List<DeviceEnergyManagementTrait.CostStruct>>,
    minPowerAdjustment: OptionalValue<Long>,
    maxPowerAdjustment: OptionalValue<Long>,
    minDurationAdjustment: OptionalValue<UInt>,
    maxDurationAdjustment: OptionalValue<UInt>
)

Creates the SlotStruct class.

Public properties

OptionalValue<List<DeviceEnergyManagementTrait.CostStruct>>

The current estimated cost of operating the appliance.

UInt

The time, in seconds, that the appliance is expected to be in its slot.

UInt

The time, in seconds, that has already elapsed with the appliance in its slot.

OptionalValue<UShort>

Provides a manufacturer-defined value that indicates the state of the ESA.

UInt

The maximum time, in seconds, that the appliance is expected to be in its slot.

OptionalValue<UInt>

The maximum duration, in seconds, to which the slot's usage can be extended.

OptionalValue<UInt>

The maximum amount of time, in seconds, that the slot can be paused.

OptionalValue<Long>

The highest power, in milliwatts, that the appliance is expected to use in its current slot.

OptionalValue<Long>

The maximum power adjustment, in milliwatts, that the ESA can be requested to use.

UInt

The minimum time, in seconds, that the appliance is expected to be in its slot.

OptionalValue<UInt>

The minimum time, in seconds, to which the slot's usage can be shortened.

OptionalValue<UInt>

The shortest amount of time, in seconds, that the slot can be paused.

OptionalValue<Long>

The lowest power, in milliwatts, that the appliance is expected to use in its current slot.

OptionalValue<Long>

The minimum power adjustment, in milliwatts, that the ESA can be requested to use.

OptionalValue<Long>

The amount of energy that the appliance is expected to use or produce in its current slot.

OptionalValue<Long>

The expected power that the appliance will use in its current slot.

UInt

The remaining time, in seconds, that the appliance is expected to be in its slot.

OptionalValue<Boolean>

Indicates whether this slot can be paused.

Public constructors

SlotStruct

SlotStruct(
    minDuration: UInt,
    maxDuration: UInt,
    defaultDuration: UInt,
    elapsedSlotTime: UInt,
    remainingSlotTime: UInt,
    slotIsPauseable: OptionalValue<Boolean> = OptionalValue.absent(),
    minPauseDuration: OptionalValue<UInt> = OptionalValue.absent(),
    maxPauseDuration: OptionalValue<UInt> = OptionalValue.absent(),
    manufacturerEsaState: OptionalValue<UShort> = OptionalValue.absent(),
    nominalPower: OptionalValue<Long> = OptionalValue.absent(),
    minPower: OptionalValue<Long> = OptionalValue.absent(),
    maxPower: OptionalValue<Long> = OptionalValue.absent(),
    nominalEnergy: OptionalValue<Long> = OptionalValue.absent(),
    costs: OptionalValue<List<DeviceEnergyManagementTrait.CostStruct>> = OptionalValue.absent(),
    minPowerAdjustment: OptionalValue<Long> = OptionalValue.absent(),
    maxPowerAdjustment: OptionalValue<Long> = OptionalValue.absent(),
    minDurationAdjustment: OptionalValue<UInt> = OptionalValue.absent(),
    maxDurationAdjustment: OptionalValue<UInt> = OptionalValue.absent()
)

Creates the SlotStruct class.

Public properties

costs

val costsOptionalValue<List<DeviceEnergyManagementTrait.CostStruct>>

The current estimated cost of operating the appliance.

defaultDuration

val defaultDurationUInt

The time, in seconds, that the appliance is expected to be in its slot.

elapsedSlotTime

val elapsedSlotTimeUInt

The time, in seconds, that has already elapsed with the appliance in its slot.

manufacturerEsaState

val manufacturerEsaStateOptionalValue<UShort>

Provides a manufacturer-defined value that indicates the state of the ESA.

maxDuration

val maxDurationUInt

The maximum time, in seconds, that the appliance is expected to be in its slot.

maxDurationAdjustment

val maxDurationAdjustmentOptionalValue<UInt>

The maximum duration, in seconds, to which the slot's usage can be extended.

maxPauseDuration

val maxPauseDurationOptionalValue<UInt>

The maximum amount of time, in seconds, that the slot can be paused.

maxPower

val maxPowerOptionalValue<Long>

The highest power, in milliwatts, that the appliance is expected to use in its current slot. Some appliances, such as battery inverters that can charge and discharge, might have a negative value for this field.

maxPowerAdjustment

val maxPowerAdjustmentOptionalValue<Long>

The maximum power adjustment, in milliwatts, that the ESA can be requested to use.

minDuration

val minDurationUInt

The minimum time, in seconds, that the appliance is expected to be in its slot.

minDurationAdjustment

val minDurationAdjustmentOptionalValue<UInt>

The minimum time, in seconds, to which the slot's usage can be shortened.

minPauseDuration

val minPauseDurationOptionalValue<UInt>

The shortest amount of time, in seconds, that the slot can be paused.

minPower

val minPowerOptionalValue<Long>

The lowest power, in milliwatts, that the appliance is expected to use in its current slot. Some appliances, such as battery inverters that can charge and discharge, might have a negative value for this field.

minPowerAdjustment

val minPowerAdjustmentOptionalValue<Long>

The minimum power adjustment, in milliwatts, that the ESA can be requested to use.

nominalEnergy

val nominalEnergyOptionalValue<Long>

The amount of energy that the appliance is expected to use or produce in its current slot.

nominalPower

val nominalPowerOptionalValue<Long>

The expected power that the appliance will use in its current slot.

remainingSlotTime

val remainingSlotTimeUInt

The remaining time, in seconds, that the appliance is expected to be in its slot.

slotIsPauseable

val slotIsPauseableOptionalValue<Boolean>

Indicates whether this slot can be paused.