While the new TargetCategory class supports subtypes, only reading them is currently available; setting subtypes will be introduced in a future release.
TargetComponentswas reworked. It now is a type alias forTargetIds | TargetCategories:TargetIdscan be used to specify one or more specific target IDs:TargetIds(1, 2, 3)orTargetIds(ComponentIds(1), ComponentIds(2), ComponentIds(3))TargetCategoriescan be used to specify one or more target categories:TargetCategories(ComponentCategory.BATTERY, ComponentCategory.INVERTER)- Dispatch ids and microgrid ids are no longer simple
inttypes but are now wrapped inDispatchIdandMicrogridIdclasses, respectively. This allows for better type safety and clarity in the codebase.
- With the new
TargetCategoryclass (providing.categoryand.type) we can now specify subtypes of the categories: ComponentCategory.BATTERYusesBatteryTypewith possible values:LI_ION,NA_IONComponentCategory.INVERTERusesInverterTypewith possible values:BATTERY,SOLAR,HYBRIDComponentCategory.EV_CHARGERusesEvChargerType: with possible valuesAC,DC,HYBRID- A few examples on how to use the new
TargetCategory:TargetCategory(BatteryType.LI_ION)categoryisComponentCategory.BATTERYtypeisBatteryType.LI_ION
TargetCategory(ComponentCategory.BATTERY)categoryisComponentCategory.BATTERYtypeisNone
TargetCategories(InverterType.SOLAR)categoryisComponentCategory.INVERTERtypeisInverterType.SOLAR