use super::*;
view!(DeviceCapability);
impl<'a> DeviceCapability<'a> {
pub fn as_base(&self) -> FunctionSetAssignmentsBase<'a> {
FunctionSetAssignmentsBase(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn end_device_list_link(&self) -> Option<EndDeviceListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "EndDeviceListLink")))
.map(EndDeviceListLink)
}
pub fn mirror_usage_point_list_link(&self) -> Option<MirrorUsagePointListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "MirrorUsagePointListLink")))
.map(MirrorUsagePointListLink)
}
pub fn self_device_link(&self) -> Option<SelfDeviceLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "SelfDeviceLink")))
.map(SelfDeviceLink)
}
}
view!(AbstractDevice);
impl<'a> AbstractDevice<'a> {
pub fn as_base(&self) -> SubscribableResource<'a> {
SubscribableResource(self.0)
}
pub fn configuration_link(&self) -> Option<ConfigurationLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ConfigurationLink")))
.map(ConfigurationLink)
}
pub fn der_list_link(&self) -> Option<DERListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "DERListLink")))
.map(DERListLink)
}
pub fn device_category(&self) -> Option<DeviceCategoryType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "deviceCategory")))
.map(DeviceCategoryType)
}
pub fn device_information_link(&self) -> Option<DeviceInformationLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "DeviceInformationLink")))
.map(DeviceInformationLink)
}
pub fn device_status_link(&self) -> Option<DeviceStatusLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "DeviceStatusLink")))
.map(DeviceStatusLink)
}
pub fn file_status_link(&self) -> Option<FileStatusLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "FileStatusLink")))
.map(FileStatusLink)
}
pub fn ip_interface_list_link(&self) -> Option<IPInterfaceListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "IPInterfaceListLink")))
.map(IPInterfaceListLink)
}
pub fn lfdi(&self) -> Option<HexBinary160<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "lFDI")))
.map(HexBinary160)
}
pub fn load_shed_availability_list_link(&self) -> Option<LoadShedAvailabilityListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "LoadShedAvailabilityListLink")))
.map(LoadShedAvailabilityListLink)
}
pub fn log_event_list_link(&self) -> Option<LogEventListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "LogEventListLink")))
.map(LogEventListLink)
}
pub fn power_status_link(&self) -> Option<PowerStatusLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "PowerStatusLink")))
.map(PowerStatusLink)
}
pub fn sfdi(&self) -> Option<SFDIType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "sFDI")))
.map(SFDIType)
}
}
view!(DeviceStatus);
impl<'a> DeviceStatus<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn changed_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "changedTime")))
.map(TimeType)
}
pub fn on_count(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "onCount")))
.map(UInt16)
}
pub fn op_state(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opState")))
.map(UInt8)
}
pub fn op_time(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opTime")))
.map(UInt32)
}
pub fn temperature(&self) -> impl Iterator<Item = Temperature<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "Temperature")))
.map(Temperature)
}
pub fn time_link(&self) -> Option<TimeLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "TimeLink")))
.map(TimeLink)
}
}
view!(EndDevice);
impl<'a> EndDevice<'a> {
pub fn as_base(&self) -> AbstractDevice<'a> {
AbstractDevice(self.0)
}
pub fn changed_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "changedTime")))
.map(TimeType)
}
pub fn enabled(&self) -> Option<Node<'a, 'a>> {
self.0.children().find(|n| n.has_tag_name((SEP, "enabled")))
}
pub fn flow_reservation_request_list_link(&self) -> Option<FlowReservationRequestListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "FlowReservationRequestListLink")))
.map(FlowReservationRequestListLink)
}
pub fn flow_reservation_response_list_link(
&self,
) -> Option<FlowReservationResponseListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "FlowReservationResponseListLink")))
.map(FlowReservationResponseListLink)
}
pub fn function_set_assignments_list_link(&self) -> Option<FunctionSetAssignmentsListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "FunctionSetAssignmentsListLink")))
.map(FunctionSetAssignmentsListLink)
}
pub fn post_rate(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "postRate")))
.map(UInt32)
}
pub fn registration_link(&self) -> Option<RegistrationLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "RegistrationLink")))
.map(RegistrationLink)
}
pub fn subscription_list_link(&self) -> Option<SubscriptionListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "SubscriptionListLink")))
.map(SubscriptionListLink)
}
#[cfg(feature = "csip-aus")]
pub fn connection_point_link(&self) -> Option<Link<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((AUS, "ConnectionPointLink")))
.map(Link)
}
}
view!(EndDeviceList);
impl<'a> EndDeviceList<'a> {
pub fn as_base(&self) -> SubscribableList<'a> {
SubscribableList(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn end_device(&self) -> impl Iterator<Item = EndDevice<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "EndDevice")))
.map(EndDevice)
}
}
view!(Registration);
impl<'a> Registration<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn date_time_registered(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "dateTimeRegistered")))
.map(TimeType)
}
pub fn pin(&self) -> Option<PINType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "pIN")))
.map(PINType)
}
}
view!(SelfDevice);
impl<'a> SelfDevice<'a> {
pub fn as_base(&self) -> AbstractDevice<'a> {
AbstractDevice(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
}
view!(Temperature);
impl<'a> Temperature<'a> {
pub fn multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "multiplier")))
.map(PowerOfTenMultiplierType)
}
pub fn subject(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "subject")))
.map(UInt8)
}
pub fn value(&self) -> Option<Int16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(Int16)
}
}
view!(FunctionSetAssignmentsBase);
impl<'a> FunctionSetAssignmentsBase<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn customer_account_list_link(&self) -> Option<CustomerAccountListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "CustomerAccountListLink")))
.map(CustomerAccountListLink)
}
pub fn demand_response_program_list_link(&self) -> Option<DemandResponseProgramListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "DemandResponseProgramListLink")))
.map(DemandResponseProgramListLink)
}
pub fn der_program_list_link(&self) -> Option<DERProgramListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "DERProgramListLink")))
.map(DERProgramListLink)
}
pub fn file_list_link(&self) -> Option<FileListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "FileListLink")))
.map(FileListLink)
}
pub fn messaging_program_list_link(&self) -> Option<MessagingProgramListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "MessagingProgramListLink")))
.map(MessagingProgramListLink)
}
pub fn prepayment_list_link(&self) -> Option<PrepaymentListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "PrepaymentListLink")))
.map(PrepaymentListLink)
}
pub fn response_set_list_link(&self) -> Option<ResponseSetListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ResponseSetListLink")))
.map(ResponseSetListLink)
}
pub fn tariff_profile_list_link(&self) -> Option<TariffProfileListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "TariffProfileListLink")))
.map(TariffProfileListLink)
}
pub fn time_link(&self) -> Option<TimeLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "TimeLink")))
.map(TimeLink)
}
pub fn usage_point_list_link(&self) -> Option<UsagePointListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "UsagePointListLink")))
.map(UsagePointListLink)
}
}
view!(FunctionSetAssignments);
impl<'a> FunctionSetAssignments<'a> {
pub fn as_base(&self) -> FunctionSetAssignmentsBase<'a> {
FunctionSetAssignmentsBase(self.0)
}
pub fn subscribable(&self) -> Option<&'a str> {
self.0.attribute("subscribable").or(Some("0"))
}
pub fn mrid(&self) -> Option<mRIDType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "mRID")))
.map(mRIDType)
}
pub fn description(&self) -> Option<String32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "description")))
.map(String32)
}
pub fn version(&self) -> Option<VersionType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "version")))
.map(VersionType)
}
}
view!(FunctionSetAssignmentsList);
impl<'a> FunctionSetAssignmentsList<'a> {
pub fn as_base(&self) -> SubscribableList<'a> {
SubscribableList(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn function_set_assignments(
&self,
) -> impl Iterator<Item = FunctionSetAssignments<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "FunctionSetAssignments")))
.map(FunctionSetAssignments)
}
}
view!(Condition);
impl<'a> Condition<'a> {
pub fn attribute_identifier(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "attributeIdentifier")))
.map(UInt8)
}
pub fn lower_threshold(&self) -> Option<Int48<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "lowerThreshold")))
.map(Int48)
}
pub fn upper_threshold(&self) -> Option<Int48<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "upperThreshold")))
.map(Int48)
}
}
view!(SubscriptionBase);
impl<'a> SubscriptionBase<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn subscribed_resource(&self) -> Option<Node<'a, 'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "subscribedResource")))
}
}
view!(Subscription);
impl<'a> Subscription<'a> {
pub fn as_base(&self) -> SubscriptionBase<'a> {
SubscriptionBase(self.0)
}
pub fn condition(&self) -> Option<Condition<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "Condition")))
.map(Condition)
}
pub fn encoding(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "encoding")))
.map(UInt8)
}
pub fn level(&self) -> Option<String16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "level")))
.map(String16)
}
pub fn limit(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "limit")))
.map(UInt32)
}
pub fn notification_uri(&self) -> Option<Node<'a, 'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "notificationURI")))
}
}
view!(SubscriptionList);
impl<'a> SubscriptionList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn subscription(&self) -> impl Iterator<Item = Subscription<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "Subscription")))
.map(Subscription)
}
}
view!(Notification);
impl<'a> Notification<'a> {
pub fn as_base(&self) -> SubscriptionBase<'a> {
SubscriptionBase(self.0)
}
pub fn new_resource_uri(&self) -> Option<Node<'a, 'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "newResourceURI")))
}
pub fn resource(&self) -> Option<Resource<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "Resource")))
.map(Resource)
}
pub fn status(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "status")))
.map(UInt8)
}
pub fn subscription_uri(&self) -> Option<Node<'a, 'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "subscriptionURI")))
}
}
view!(NotificationList);
impl<'a> NotificationList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn notification(&self) -> impl Iterator<Item = Notification<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "Notification")))
.map(Notification)
}
}
view!(DERControlResponse);
impl<'a> DERControlResponse<'a> {
pub fn as_base(&self) -> Response<'a> {
Response(self.0)
}
}
view!(FlowReservationResponseResponse);
impl<'a> FlowReservationResponseResponse<'a> {
pub fn as_base(&self) -> Response<'a> {
Response(self.0)
}
}
view!(AppliedTargetReduction);
impl<'a> AppliedTargetReduction<'a> {
pub fn r#type(&self) -> Option<UnitType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "type")))
.map(UnitType)
}
pub fn value(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(UInt16)
}
}
view!(DrResponse);
impl<'a> DrResponse<'a> {
pub fn as_base(&self) -> Response<'a> {
Response(self.0)
}
pub fn appliance_load_reduction(&self) -> Option<ApplianceLoadReduction<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ApplianceLoadReduction")))
.map(ApplianceLoadReduction)
}
pub fn applied_target_reduction(&self) -> Option<AppliedTargetReduction<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "AppliedTargetReduction")))
.map(AppliedTargetReduction)
}
pub fn duty_cycle(&self) -> Option<DutyCycle<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "DutyCycle")))
.map(DutyCycle)
}
pub fn offset(&self) -> Option<Offset<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "Offset")))
.map(Offset)
}
pub fn override_duration(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "overrideDuration")))
.map(UInt16)
}
pub fn set_point(&self) -> Option<SetPoint<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "SetPoint")))
.map(SetPoint)
}
}
view!(PriceResponse);
impl<'a> PriceResponse<'a> {
pub fn as_base(&self) -> Response<'a> {
Response(self.0)
}
}
view!(Response);
impl<'a> Response<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn created_date_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "createdDateTime")))
.map(TimeType)
}
pub fn end_device_lfdi(&self) -> Option<HexBinary160<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "endDeviceLFDI")))
.map(HexBinary160)
}
pub fn status(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "status")))
.map(UInt8)
}
pub fn subject(&self) -> Option<mRIDType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "subject")))
.map(mRIDType)
}
}
view!(ResponseList);
impl<'a> ResponseList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn response(&self) -> impl Iterator<Item = Response<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "Response")))
.map(Response)
}
}
view!(ResponseSet);
impl<'a> ResponseSet<'a> {
pub fn as_base(&self) -> IdentifiedObject<'a> {
IdentifiedObject(self.0)
}
pub fn response_list_link(&self) -> Option<ResponseListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ResponseListLink")))
.map(ResponseListLink)
}
}
view!(ResponseSetList);
impl<'a> ResponseSetList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn response_set(&self) -> impl Iterator<Item = ResponseSet<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "ResponseSet")))
.map(ResponseSet)
}
}
view!(TextResponse);
impl<'a> TextResponse<'a> {
pub fn as_base(&self) -> Response<'a> {
Response(self.0)
}
}
view!(Time);
impl<'a> Time<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn current_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "currentTime")))
.map(TimeType)
}
pub fn dst_end_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "dstEndTime")))
.map(TimeType)
}
pub fn dst_offset(&self) -> Option<TimeOffsetType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "dstOffset")))
.map(TimeOffsetType)
}
pub fn dst_start_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "dstStartTime")))
.map(TimeType)
}
pub fn local_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "localTime")))
.map(TimeType)
}
pub fn quality(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "quality")))
.map(UInt8)
}
pub fn tz_offset(&self) -> Option<TimeOffsetType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "tzOffset")))
.map(TimeOffsetType)
}
}
view!(DeviceInformation);
impl<'a> DeviceInformation<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn drlc_capabilities(&self) -> Option<DRLCCapabilities<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "DRLCCapabilities")))
.map(DRLCCapabilities)
}
pub fn functions_implemented(&self) -> Option<HexBinary64<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "functionsImplemented")))
.map(HexBinary64)
}
pub fn gps_location(&self) -> Option<GPSLocationType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "gpsLocation")))
.map(GPSLocationType)
}
pub fn lfdi(&self) -> Option<HexBinary160<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "lFDI")))
.map(HexBinary160)
}
pub fn mf_date(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "mfDate")))
.map(TimeType)
}
pub fn mf_hw_ver(&self) -> Option<String32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "mfHwVer")))
.map(String32)
}
pub fn mf_id(&self) -> Option<PENType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "mfID")))
.map(PENType)
}
pub fn mf_info(&self) -> Option<String32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "mfInfo")))
.map(String32)
}
pub fn mf_model(&self) -> Option<String32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "mfModel")))
.map(String32)
}
pub fn mf_ser_num(&self) -> Option<String32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "mfSerNum")))
.map(String32)
}
pub fn primary_power(&self) -> Option<PowerSourceType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "primaryPower")))
.map(PowerSourceType)
}
pub fn secondary_power(&self) -> Option<PowerSourceType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "secondaryPower")))
.map(PowerSourceType)
}
pub fn supported_locale_list_link(&self) -> Option<SupportedLocaleListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "SupportedLocaleListLink")))
.map(SupportedLocaleListLink)
}
pub fn sw_act_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "swActTime")))
.map(TimeType)
}
pub fn sw_ver(&self) -> Option<String32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "swVer")))
.map(String32)
}
}
view!(DRLCCapabilities);
impl<'a> DRLCCapabilities<'a> {
pub fn average_energy(&self) -> Option<RealEnergy<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "averageEnergy")))
.map(RealEnergy)
}
pub fn max_demand(&self) -> Option<ActivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "maxDemand")))
.map(ActivePower)
}
pub fn options_implemented(&self) -> Option<HexBinary32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "optionsImplemented")))
.map(HexBinary32)
}
}
view!(SupportedLocale);
impl<'a> SupportedLocale<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn locale(&self) -> Option<LocaleType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "locale")))
.map(LocaleType)
}
}
view!(SupportedLocaleList);
impl<'a> SupportedLocaleList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn supported_locale(&self) -> impl Iterator<Item = SupportedLocale<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "SupportedLocale")))
.map(SupportedLocale)
}
}
view!(PowerStatus);
impl<'a> PowerStatus<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn battery_status(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "batteryStatus")))
.map(UInt8)
}
pub fn changed_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "changedTime")))
.map(TimeType)
}
pub fn current_power_source(&self) -> Option<PowerSourceType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "currentPowerSource")))
.map(PowerSourceType)
}
pub fn estimated_charge_remaining(&self) -> Option<PerCent<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "estimatedChargeRemaining")))
.map(PerCent)
}
pub fn estimated_time_remaining(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "estimatedTimeRemaining")))
.map(UInt32)
}
pub fn pev_info(&self) -> Option<PEVInfo<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "PEVInfo")))
.map(PEVInfo)
}
pub fn session_time_on_battery(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "sessionTimeOnBattery")))
.map(UInt32)
}
pub fn total_time_on_battery(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "totalTimeOnBattery")))
.map(UInt32)
}
}
view!(PowerSourceType);
impl<'a> PowerSourceType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(PEVInfo);
impl<'a> PEVInfo<'a> {
pub fn charging_power_now(&self) -> Option<ActivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "chargingPowerNow")))
.map(ActivePower)
}
pub fn energy_request_now(&self) -> Option<RealEnergy<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "energyRequestNow")))
.map(RealEnergy)
}
pub fn max_forward_power(&self) -> Option<ActivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "maxForwardPower")))
.map(ActivePower)
}
pub fn minimum_charging_duration(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "minimumChargingDuration")))
.map(UInt32)
}
pub fn target_state_of_charge(&self) -> Option<PerCent<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "targetStateOfCharge")))
.map(PerCent)
}
pub fn time_charge_is_needed(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "timeChargeIsNeeded")))
.map(TimeType)
}
pub fn time_charging_status_pev(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "timeChargingStatusPEV")))
.map(TimeType)
}
}
view!(IEEE_802_15_4);
impl<'a> IEEE_802_15_4<'a> {
pub fn capability_info(&self) -> Option<HexBinary8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "capabilityInfo")))
.map(HexBinary8)
}
pub fn neighbor_list_link(&self) -> Option<NeighborListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "NeighborListLink")))
.map(NeighborListLink)
}
pub fn short_address(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "shortAddress")))
.map(UInt16)
}
}
view!(IPAddr);
impl<'a> IPAddr<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn address(&self) -> Option<HexBinary128<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "address")))
.map(HexBinary128)
}
pub fn rpl_instance_list_link(&self) -> Option<RPLInstanceListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "RPLInstanceListLink")))
.map(RPLInstanceListLink)
}
}
view!(IPAddrList);
impl<'a> IPAddrList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn ip_addr(&self) -> impl Iterator<Item = IPAddr<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "IPAddr")))
.map(IPAddr)
}
}
view!(IPInterface);
impl<'a> IPInterface<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn if_descr(&self) -> Option<String192<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifDescr")))
.map(String192)
}
pub fn if_high_speed(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifHighSpeed")))
.map(UInt32)
}
pub fn if_in_broadcast_pkts(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifInBroadcastPkts")))
.map(UInt32)
}
pub fn if_index(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifIndex")))
.map(UInt32)
}
pub fn if_in_discards(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifInDiscards")))
.map(UInt32)
}
pub fn if_in_errors(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifInErrors")))
.map(UInt32)
}
pub fn if_in_multicast_pkts(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifInMulticastPkts")))
.map(UInt32)
}
pub fn if_in_octets(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifInOctets")))
.map(UInt32)
}
pub fn if_in_ucast_pkts(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifInUcastPkts")))
.map(UInt32)
}
pub fn if_in_unknown_protos(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifInUnknownProtos")))
.map(UInt32)
}
pub fn if_mtu(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifMtu")))
.map(UInt32)
}
pub fn if_name(&self) -> Option<String16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifName")))
.map(String16)
}
pub fn if_oper_status(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifOperStatus")))
.map(UInt8)
}
pub fn if_out_broadcast_pkts(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifOutBroadcastPkts")))
.map(UInt32)
}
pub fn if_out_discards(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifOutDiscards")))
.map(UInt32)
}
pub fn if_out_errors(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifOutErrors")))
.map(UInt32)
}
pub fn if_out_multicast_pkts(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifOutMulticastPkts")))
.map(UInt32)
}
pub fn if_out_octets(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifOutOctets")))
.map(UInt32)
}
pub fn if_out_ucast_pkts(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifOutUcastPkts")))
.map(UInt32)
}
pub fn if_promiscuous_mode(&self) -> Option<Node<'a, 'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifPromiscuousMode")))
}
pub fn if_speed(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifSpeed")))
.map(UInt32)
}
pub fn if_type(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ifType")))
.map(UInt16)
}
pub fn ip_addr_list_link(&self) -> Option<IPAddrListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "IPAddrListLink")))
.map(IPAddrListLink)
}
pub fn last_reset_time(&self) -> Option<Int64<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "lastResetTime")))
.map(Int64)
}
pub fn last_updated_time(&self) -> Option<Int64<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "lastUpdatedTime")))
.map(Int64)
}
pub fn ll_interface_list_link(&self) -> Option<LLInterfaceListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "LLInterfaceListLink")))
.map(LLInterfaceListLink)
}
}
view!(IPInterfaceList);
impl<'a> IPInterfaceList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn ip_interface(&self) -> impl Iterator<Item = IPInterface<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "IPInterface")))
.map(IPInterface)
}
}
view!(LLInterface);
impl<'a> LLInterface<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn cr_cerrors(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "CRCerrors")))
.map(UInt32)
}
pub fn eui64(&self) -> Option<HexBinary64<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "EUI64")))
.map(HexBinary64)
}
pub fn ieee_802_15_4(&self) -> Option<IEEE_802_15_4<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "IEEE_802_15_4")))
.map(IEEE_802_15_4)
}
pub fn link_layer_type(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "linkLayerType")))
.map(UInt8)
}
pub fn ll_ack_not_rx(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "LLAckNotRx")))
.map(UInt32)
}
pub fn llcsma_fail(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "LLCSMAFail")))
.map(UInt32)
}
pub fn ll_frames_drop_rx(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "LLFramesDropRx")))
.map(UInt32)
}
pub fn ll_frames_drop_tx(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "LLFramesDropTx")))
.map(UInt32)
}
pub fn ll_frames_rx(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "LLFramesRx")))
.map(UInt32)
}
pub fn ll_frames_tx(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "LLFramesTx")))
.map(UInt32)
}
pub fn ll_media_access_fail(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "LLMediaAccessFail")))
.map(UInt32)
}
pub fn ll_octets_rx(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "LLOctetsRx")))
.map(UInt32)
}
pub fn ll_octets_tx(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "LLOctetsTx")))
.map(UInt32)
}
pub fn ll_retry_count(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "LLRetryCount")))
.map(UInt32)
}
pub fn ll_security_error_rx(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "LLSecurityErrorRx")))
.map(UInt32)
}
pub fn lo_wpan(&self) -> Option<loWPAN<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "loWPAN")))
.map(loWPAN)
}
}
view!(LLInterfaceList);
impl<'a> LLInterfaceList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn ll_interface(&self) -> impl Iterator<Item = LLInterface<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "LLInterface")))
.map(LLInterface)
}
}
view!(loWPAN);
impl<'a> loWPAN<'a> {
pub fn octets_rx(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "octetsRx")))
.map(UInt32)
}
pub fn octets_tx(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "octetsTx")))
.map(UInt32)
}
pub fn packets_rx(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "packetsRx")))
.map(UInt32)
}
pub fn packets_tx(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "packetsTx")))
.map(UInt32)
}
pub fn rx_frag_error(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rxFragError")))
.map(UInt32)
}
}
view!(Neighbor);
impl<'a> Neighbor<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn is_child(&self) -> Option<Node<'a, 'a>> {
self.0.children().find(|n| n.has_tag_name((SEP, "isChild")))
}
pub fn link_quality(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "linkQuality")))
.map(UInt8)
}
pub fn short_address(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "shortAddress")))
.map(UInt16)
}
}
view!(NeighborList);
impl<'a> NeighborList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn neighbor(&self) -> impl Iterator<Item = Neighbor<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "Neighbor")))
.map(Neighbor)
}
}
view!(RPLInstance);
impl<'a> RPLInstance<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn doda_gid(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "DODAGid")))
.map(UInt8)
}
pub fn doda_groot(&self) -> Option<Node<'a, 'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "DODAGroot")))
}
pub fn flags(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "flags")))
.map(UInt8)
}
pub fn grounded_flag(&self) -> Option<Node<'a, 'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "groundedFlag")))
}
pub fn mop(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "MOP")))
.map(UInt8)
}
pub fn prf(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "PRF")))
.map(UInt8)
}
pub fn rank(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rank")))
.map(UInt16)
}
pub fn rpl_instance_id(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "RPLInstanceID")))
.map(UInt8)
}
pub fn rpl_source_routes_list_link(&self) -> Option<RPLSourceRoutesListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "RPLSourceRoutesListLink")))
.map(RPLSourceRoutesListLink)
}
pub fn version_number(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "versionNumber")))
.map(UInt8)
}
}
view!(RPLInstanceList);
impl<'a> RPLInstanceList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn rpl_instance(&self) -> impl Iterator<Item = RPLInstance<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "RPLInstance")))
.map(RPLInstance)
}
}
view!(RPLSourceRoutes);
impl<'a> RPLSourceRoutes<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn dest_address(&self) -> Option<HexBinary128<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "DestAddress")))
.map(HexBinary128)
}
pub fn source_route(&self) -> Option<HexBinary128<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "SourceRoute")))
.map(HexBinary128)
}
}
view!(RPLSourceRoutesList);
impl<'a> RPLSourceRoutesList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn rpl_source_routes(&self) -> impl Iterator<Item = RPLSourceRoutes<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "RPLSourceRoutes")))
.map(RPLSourceRoutes)
}
}
view!(LogEvent);
impl<'a> LogEvent<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn created_date_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "createdDateTime")))
.map(TimeType)
}
pub fn details(&self) -> Option<String32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "details")))
.map(String32)
}
pub fn extended_data(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "extendedData")))
.map(UInt32)
}
pub fn function_set(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "functionSet")))
.map(UInt8)
}
pub fn log_event_code(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "logEventCode")))
.map(UInt8)
}
pub fn log_event_id(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "logEventID")))
.map(UInt16)
}
pub fn log_event_pen(&self) -> Option<PENType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "logEventPEN")))
.map(PENType)
}
pub fn profile_id(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "profileID")))
.map(UInt8)
}
}
view!(LogEventList);
impl<'a> LogEventList<'a> {
pub fn as_base(&self) -> SubscribableList<'a> {
SubscribableList(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn log_event(&self) -> impl Iterator<Item = LogEvent<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "LogEvent")))
.map(LogEvent)
}
}
view!(Configuration);
impl<'a> Configuration<'a> {
pub fn as_base(&self) -> SubscribableResource<'a> {
SubscribableResource(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn current_locale(&self) -> Option<LocaleType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "currentLocale")))
.map(LocaleType)
}
pub fn power_configuration(&self) -> Option<PowerConfiguration<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "PowerConfiguration")))
.map(PowerConfiguration)
}
pub fn price_response_cfg_list_link(&self) -> Option<PriceResponseCfgListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "PriceResponseCfgListLink")))
.map(PriceResponseCfgListLink)
}
pub fn time_configuration(&self) -> Option<TimeConfiguration<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "TimeConfiguration")))
.map(TimeConfiguration)
}
pub fn user_device_name(&self) -> Option<String32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "userDeviceName")))
.map(String32)
}
}
view!(PowerConfiguration);
impl<'a> PowerConfiguration<'a> {
pub fn battery_install_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "batteryInstallTime")))
.map(TimeType)
}
pub fn low_charge_threshold(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "lowChargeThreshold")))
.map(UInt32)
}
}
view!(PriceResponseCfg);
impl<'a> PriceResponseCfg<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn consume_threshold(&self) -> Option<Int32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "consumeThreshold")))
.map(Int32)
}
pub fn max_reduction_threshold(&self) -> Option<Int32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "maxReductionThreshold")))
.map(Int32)
}
pub fn rate_component_link(&self) -> Option<RateComponentLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "RateComponentLink")))
.map(RateComponentLink)
}
}
view!(PriceResponseCfgList);
impl<'a> PriceResponseCfgList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn price_response_cfg(&self) -> impl Iterator<Item = PriceResponseCfg<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "PriceResponseCfg")))
.map(PriceResponseCfg)
}
}
view!(TimeConfiguration);
impl<'a> TimeConfiguration<'a> {
pub fn dst_end_rule(&self) -> Option<DstRuleType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "dstEndRule")))
.map(DstRuleType)
}
pub fn dst_offset(&self) -> Option<TimeOffsetType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "dstOffset")))
.map(TimeOffsetType)
}
pub fn dst_start_rule(&self) -> Option<DstRuleType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "dstStartRule")))
.map(DstRuleType)
}
pub fn tz_offset(&self) -> Option<TimeOffsetType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "tzOffset")))
.map(TimeOffsetType)
}
}
view!(File);
impl<'a> File<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn activate_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "activateTime")))
.map(TimeType)
}
pub fn file_uri(&self) -> Option<Node<'a, 'a>> {
self.0.children().find(|n| n.has_tag_name((SEP, "fileURI")))
}
pub fn lfdi(&self) -> Option<HexBinary160<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "lFDI")))
.map(HexBinary160)
}
pub fn mf_hw_ver(&self) -> Option<String32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "mfHwVer")))
.map(String32)
}
pub fn mf_id(&self) -> Option<PENType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "mfID")))
.map(PENType)
}
pub fn mf_model(&self) -> Option<String32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "mfModel")))
.map(String32)
}
pub fn mf_ser_num(&self) -> Option<String32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "mfSerNum")))
.map(String32)
}
pub fn mf_ver(&self) -> Option<String16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "mfVer")))
.map(String16)
}
pub fn size(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "size")))
.map(UInt32)
}
pub fn r#type(&self) -> Option<HexBinary16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "type")))
.map(HexBinary16)
}
}
view!(FileList);
impl<'a> FileList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn file(&self) -> impl Iterator<Item = File<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "File")))
.map(File)
}
}
view!(FileStatus);
impl<'a> FileStatus<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn activate_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "activateTime")))
.map(TimeType)
}
pub fn file_link(&self) -> Option<FileLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "FileLink")))
.map(FileLink)
}
pub fn load_percent(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "loadPercent")))
.map(UInt8)
}
pub fn next_request_attempt(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "nextRequestAttempt")))
.map(TimeType)
}
pub fn request503_count(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "request503Count")))
.map(UInt16)
}
pub fn request_fail_count(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "requestFailCount")))
.map(UInt16)
}
pub fn status(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "status")))
.map(UInt8)
}
pub fn status_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "statusTime")))
.map(TimeType)
}
}
view!(LoadShedAvailabilityList);
impl<'a> LoadShedAvailabilityList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn load_shed_availability(&self) -> impl Iterator<Item = LoadShedAvailability<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "LoadShedAvailability")))
.map(LoadShedAvailability)
}
}
view!(ApplianceLoadReduction);
impl<'a> ApplianceLoadReduction<'a> {
pub fn r#type(&self) -> Option<ApplianceLoadReductionType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "type")))
.map(ApplianceLoadReductionType)
}
}
view!(DemandResponseProgram);
impl<'a> DemandResponseProgram<'a> {
pub fn as_base(&self) -> IdentifiedObject<'a> {
IdentifiedObject(self.0)
}
pub fn active_end_device_control_list_link(
&self,
) -> Option<ActiveEndDeviceControlListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ActiveEndDeviceControlListLink")))
.map(ActiveEndDeviceControlListLink)
}
pub fn availability_update_percent_change_threshold(&self) -> Option<PerCent<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "availabilityUpdatePercentChangeThreshold")))
.map(PerCent)
}
pub fn availability_update_power_change_threshold(&self) -> Option<ActivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "availabilityUpdatePowerChangeThreshold")))
.map(ActivePower)
}
pub fn end_device_control_list_link(&self) -> Option<EndDeviceControlListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "EndDeviceControlListLink")))
.map(EndDeviceControlListLink)
}
pub fn primacy(&self) -> Option<PrimacyType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "primacy")))
.map(PrimacyType)
}
}
view!(DemandResponseProgramList);
impl<'a> DemandResponseProgramList<'a> {
pub fn as_base(&self) -> SubscribableList<'a> {
SubscribableList(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn demand_response_program(&self) -> impl Iterator<Item = DemandResponseProgram<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "DemandResponseProgram")))
.map(DemandResponseProgram)
}
}
view!(DutyCycle);
impl<'a> DutyCycle<'a> {
pub fn normal_value(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "normalValue")))
.map(UInt8)
}
}
view!(EndDeviceControl);
impl<'a> EndDeviceControl<'a> {
pub fn as_base(&self) -> RandomizableEvent<'a> {
RandomizableEvent(self.0)
}
pub fn appliance_load_reduction(&self) -> Option<ApplianceLoadReduction<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ApplianceLoadReduction")))
.map(ApplianceLoadReduction)
}
pub fn device_category(&self) -> Option<DeviceCategoryType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "deviceCategory")))
.map(DeviceCategoryType)
}
pub fn dr_program_mandatory(&self) -> Option<Node<'a, 'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "drProgramMandatory")))
}
pub fn duty_cycle(&self) -> Option<DutyCycle<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "DutyCycle")))
.map(DutyCycle)
}
pub fn load_shift_forward(&self) -> Option<Node<'a, 'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "loadShiftForward")))
}
pub fn offset(&self) -> Option<Offset<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "Offset")))
.map(Offset)
}
pub fn override_duration(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "overrideDuration")))
.map(UInt16)
}
pub fn set_point(&self) -> Option<SetPoint<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "SetPoint")))
.map(SetPoint)
}
pub fn target_reduction(&self) -> Option<TargetReduction<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "TargetReduction")))
.map(TargetReduction)
}
}
view!(EndDeviceControlList);
impl<'a> EndDeviceControlList<'a> {
pub fn as_base(&self) -> SubscribableList<'a> {
SubscribableList(self.0)
}
pub fn end_device_control(&self) -> impl Iterator<Item = EndDeviceControl<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "EndDeviceControl")))
.map(EndDeviceControl)
}
}
view!(LoadShedAvailability);
impl<'a> LoadShedAvailability<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn availability_duration(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "availabilityDuration")))
.map(UInt32)
}
pub fn demand_response_program_link(&self) -> Option<DemandResponseProgramLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "DemandResponseProgramLink")))
.map(DemandResponseProgramLink)
}
pub fn sheddable_percent(&self) -> Option<PerCent<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "sheddablePercent")))
.map(PerCent)
}
pub fn sheddable_power(&self) -> Option<ActivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "sheddablePower")))
.map(ActivePower)
}
}
view!(Offset);
impl<'a> Offset<'a> {
pub fn cooling_offset(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "coolingOffset")))
.map(UInt8)
}
pub fn heating_offset(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "heatingOffset")))
.map(UInt8)
}
pub fn load_adjustment_percentage_offset(&self) -> Option<PerCent<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "loadAdjustmentPercentageOffset")))
.map(PerCent)
}
}
view!(SetPoint);
impl<'a> SetPoint<'a> {
pub fn cooling_setpoint(&self) -> Option<Int16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "coolingSetpoint")))
.map(Int16)
}
pub fn heating_setpoint(&self) -> Option<Int16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "heatingSetpoint")))
.map(Int16)
}
}
view!(TargetReduction);
impl<'a> TargetReduction<'a> {
pub fn r#type(&self) -> Option<UnitType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "type")))
.map(UnitType)
}
pub fn value(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(UInt16)
}
}
view!(MeterReading);
impl<'a> MeterReading<'a> {
pub fn as_base(&self) -> MeterReadingBase<'a> {
MeterReadingBase(self.0)
}
pub fn rate_component_list_link(&self) -> Option<RateComponentListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "RateComponentListLink")))
.map(RateComponentListLink)
}
pub fn reading_link(&self) -> Option<ReadingLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ReadingLink")))
.map(ReadingLink)
}
pub fn reading_set_list_link(&self) -> Option<ReadingSetListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ReadingSetListLink")))
.map(ReadingSetListLink)
}
pub fn reading_type_link(&self) -> Option<ReadingTypeLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ReadingTypeLink")))
.map(ReadingTypeLink)
}
}
view!(MeterReadingList);
impl<'a> MeterReadingList<'a> {
pub fn as_base(&self) -> SubscribableList<'a> {
SubscribableList(self.0)
}
pub fn meter_reading(&self) -> impl Iterator<Item = MeterReading<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "MeterReading")))
.map(MeterReading)
}
}
view!(Reading);
impl<'a> Reading<'a> {
pub fn as_base(&self) -> ReadingBase<'a> {
ReadingBase(self.0)
}
pub fn subscribable(&self) -> Option<&'a str> {
self.0.attribute("subscribable").or(Some("0"))
}
pub fn local_id(&self) -> Option<HexBinary16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "localID")))
.map(HexBinary16)
}
}
view!(ReadingList);
impl<'a> ReadingList<'a> {
pub fn as_base(&self) -> SubscribableList<'a> {
SubscribableList(self.0)
}
pub fn reading(&self) -> impl Iterator<Item = Reading<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "Reading")))
.map(Reading)
}
}
view!(ReadingSet);
impl<'a> ReadingSet<'a> {
pub fn as_base(&self) -> ReadingSetBase<'a> {
ReadingSetBase(self.0)
}
pub fn reading_list_link(&self) -> Option<ReadingListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ReadingListLink")))
.map(ReadingListLink)
}
}
view!(ReadingSetList);
impl<'a> ReadingSetList<'a> {
pub fn as_base(&self) -> SubscribableList<'a> {
SubscribableList(self.0)
}
pub fn reading_set(&self) -> impl Iterator<Item = ReadingSet<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "ReadingSet")))
.map(ReadingSet)
}
}
view!(ReadingType);
impl<'a> ReadingType<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn accumulation_behaviour(&self) -> Option<AccumulationBehaviourType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "accumulationBehaviour")))
.map(AccumulationBehaviourType)
}
pub fn calorific_value(&self) -> Option<UnitValueType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "calorificValue")))
.map(UnitValueType)
}
pub fn commodity(&self) -> Option<CommodityType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "commodity")))
.map(CommodityType)
}
pub fn conversion_factor(&self) -> Option<UnitValueType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "conversionFactor")))
.map(UnitValueType)
}
pub fn data_qualifier(&self) -> Option<DataQualifierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "dataQualifier")))
.map(DataQualifierType)
}
pub fn flow_direction(&self) -> Option<FlowDirectionType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "flowDirection")))
.map(FlowDirectionType)
}
pub fn interval_length(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "intervalLength")))
.map(UInt32)
}
pub fn kind(&self) -> Option<KindType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "kind")))
.map(KindType)
}
pub fn max_number_of_intervals(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "maxNumberOfIntervals")))
.map(UInt8)
}
pub fn number_of_consumption_blocks(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "numberOfConsumptionBlocks")))
.map(UInt8)
}
pub fn number_of_tou_tiers(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "numberOfTouTiers")))
.map(UInt8)
}
pub fn phase(&self) -> Option<PhaseCode<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "phase")))
.map(PhaseCode)
}
pub fn power_of_ten_multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "powerOfTenMultiplier")))
.map(PowerOfTenMultiplierType)
}
pub fn sub_interval_length(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "subIntervalLength")))
.map(UInt32)
}
pub fn supply_limit(&self) -> Option<UInt48<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "supplyLimit")))
.map(UInt48)
}
pub fn tiered_consumption_blocks(&self) -> Option<Node<'a, 'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "tieredConsumptionBlocks")))
}
pub fn uom(&self) -> Option<UomType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "uom")))
.map(UomType)
}
}
view!(UsagePoint);
impl<'a> UsagePoint<'a> {
pub fn as_base(&self) -> UsagePointBase<'a> {
UsagePointBase(self.0)
}
pub fn device_lfdi(&self) -> Option<HexBinary160<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "deviceLFDI")))
.map(HexBinary160)
}
pub fn meter_reading_list_link(&self) -> Option<MeterReadingListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "MeterReadingListLink")))
.map(MeterReadingListLink)
}
}
view!(UsagePointList);
impl<'a> UsagePointList<'a> {
pub fn as_base(&self) -> SubscribableList<'a> {
SubscribableList(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn usage_point(&self) -> impl Iterator<Item = UsagePoint<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "UsagePoint")))
.map(UsagePoint)
}
}
view!(ConsumptionTariffInterval);
impl<'a> ConsumptionTariffInterval<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn consumption_block(&self) -> Option<ConsumptionBlockType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "consumptionBlock")))
.map(ConsumptionBlockType)
}
pub fn environmental_cost(&self) -> impl Iterator<Item = EnvironmentalCost<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "EnvironmentalCost")))
.map(EnvironmentalCost)
}
pub fn price(&self) -> Option<Int32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "price")))
.map(Int32)
}
pub fn start_value(&self) -> Option<UInt48<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "startValue")))
.map(UInt48)
}
}
view!(ConsumptionTariffIntervalList);
impl<'a> ConsumptionTariffIntervalList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn consumption_tariff_interval(
&self,
) -> impl Iterator<Item = ConsumptionTariffInterval<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "ConsumptionTariffInterval")))
.map(ConsumptionTariffInterval)
}
}
view!(CostKindType);
impl<'a> CostKindType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(EnvironmentalCost);
impl<'a> EnvironmentalCost<'a> {
pub fn amount(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "amount")))
.map(UInt32)
}
pub fn cost_kind(&self) -> Option<CostKindType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "costKind")))
.map(CostKindType)
}
pub fn cost_level(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "costLevel")))
.map(UInt8)
}
pub fn num_cost_levels(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "numCostLevels")))
.map(UInt8)
}
}
view!(RateComponent);
impl<'a> RateComponent<'a> {
pub fn as_base(&self) -> IdentifiedObject<'a> {
IdentifiedObject(self.0)
}
pub fn active_time_tariff_interval_list_link(
&self,
) -> Option<ActiveTimeTariffIntervalListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ActiveTimeTariffIntervalListLink")))
.map(ActiveTimeTariffIntervalListLink)
}
pub fn flow_rate_end_limit(&self) -> Option<UnitValueType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "flowRateEndLimit")))
.map(UnitValueType)
}
pub fn flow_rate_start_limit(&self) -> Option<UnitValueType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "flowRateStartLimit")))
.map(UnitValueType)
}
pub fn reading_type_link(&self) -> Option<ReadingTypeLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ReadingTypeLink")))
.map(ReadingTypeLink)
}
pub fn role_flags(&self) -> Option<RoleFlagsType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "roleFlags")))
.map(RoleFlagsType)
}
pub fn time_tariff_interval_list_link(&self) -> Option<TimeTariffIntervalListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "TimeTariffIntervalListLink")))
.map(TimeTariffIntervalListLink)
}
}
view!(RateComponentList);
impl<'a> RateComponentList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn rate_component(&self) -> impl Iterator<Item = RateComponent<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "RateComponent")))
.map(RateComponent)
}
}
view!(TariffProfile);
impl<'a> TariffProfile<'a> {
pub fn as_base(&self) -> IdentifiedObject<'a> {
IdentifiedObject(self.0)
}
pub fn currency(&self) -> Option<CurrencyCode<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "currency")))
.map(CurrencyCode)
}
pub fn price_power_of_ten_multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "pricePowerOfTenMultiplier")))
.map(PowerOfTenMultiplierType)
}
pub fn primacy(&self) -> Option<PrimacyType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "primacy")))
.map(PrimacyType)
}
pub fn rate_code(&self) -> Option<String20<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rateCode")))
.map(String20)
}
pub fn rate_component_list_link(&self) -> Option<RateComponentListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "RateComponentListLink")))
.map(RateComponentListLink)
}
pub fn service_category_kind(&self) -> Option<ServiceKind<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "serviceCategoryKind")))
.map(ServiceKind)
}
}
view!(TariffProfileList);
impl<'a> TariffProfileList<'a> {
pub fn as_base(&self) -> SubscribableList<'a> {
SubscribableList(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn tariff_profile(&self) -> impl Iterator<Item = TariffProfile<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "TariffProfile")))
.map(TariffProfile)
}
}
view!(TimeTariffInterval);
impl<'a> TimeTariffInterval<'a> {
pub fn as_base(&self) -> RandomizableEvent<'a> {
RandomizableEvent(self.0)
}
pub fn consumption_tariff_interval_list_link(
&self,
) -> Option<ConsumptionTariffIntervalListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ConsumptionTariffIntervalListLink")))
.map(ConsumptionTariffIntervalListLink)
}
pub fn tou_tier(&self) -> Option<TOUType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "touTier")))
.map(TOUType)
}
}
view!(TimeTariffIntervalList);
impl<'a> TimeTariffIntervalList<'a> {
pub fn as_base(&self) -> SubscribableList<'a> {
SubscribableList(self.0)
}
pub fn time_tariff_interval(&self) -> impl Iterator<Item = TimeTariffInterval<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "TimeTariffInterval")))
.map(TimeTariffInterval)
}
}
view!(MessagingProgram);
impl<'a> MessagingProgram<'a> {
pub fn as_base(&self) -> SubscribableIdentifiedObject<'a> {
SubscribableIdentifiedObject(self.0)
}
pub fn active_text_message_list_link(&self) -> Option<ActiveTextMessageListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ActiveTextMessageListLink")))
.map(ActiveTextMessageListLink)
}
pub fn locale(&self) -> Option<LocaleType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "locale")))
.map(LocaleType)
}
pub fn primacy(&self) -> Option<PrimacyType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "primacy")))
.map(PrimacyType)
}
pub fn text_message_list_link(&self) -> Option<TextMessageListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "TextMessageListLink")))
.map(TextMessageListLink)
}
}
view!(MessagingProgramList);
impl<'a> MessagingProgramList<'a> {
pub fn as_base(&self) -> SubscribableList<'a> {
SubscribableList(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn messaging_program(&self) -> impl Iterator<Item = MessagingProgram<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "MessagingProgram")))
.map(MessagingProgram)
}
}
view!(PriorityType);
impl<'a> PriorityType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(TextMessage);
impl<'a> TextMessage<'a> {
pub fn as_base(&self) -> Event<'a> {
Event(self.0)
}
pub fn originator(&self) -> Option<String20<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "originator")))
.map(String20)
}
pub fn priority(&self) -> Option<PriorityType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "priority")))
.map(PriorityType)
}
pub fn text_message(&self) -> Option<Node<'a, 'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "textMessage")))
}
}
view!(TextMessageList);
impl<'a> TextMessageList<'a> {
pub fn as_base(&self) -> SubscribableList<'a> {
SubscribableList(self.0)
}
pub fn text_message(&self) -> impl Iterator<Item = TextMessage<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "TextMessage")))
.map(TextMessage)
}
}
view!(BillingPeriod);
impl<'a> BillingPeriod<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn bill_last_period(&self) -> Option<Int48<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "billLastPeriod")))
.map(Int48)
}
pub fn bill_to_date(&self) -> Option<Int48<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "billToDate")))
.map(Int48)
}
pub fn interval(&self) -> Option<DateTimeInterval<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "interval")))
.map(DateTimeInterval)
}
pub fn status_time_stamp(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "statusTimeStamp")))
.map(TimeType)
}
}
view!(BillingPeriodList);
impl<'a> BillingPeriodList<'a> {
pub fn as_base(&self) -> SubscribableList<'a> {
SubscribableList(self.0)
}
pub fn billing_period(&self) -> impl Iterator<Item = BillingPeriod<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "BillingPeriod")))
.map(BillingPeriod)
}
}
view!(BillingMeterReadingBase);
impl<'a> BillingMeterReadingBase<'a> {
pub fn as_base(&self) -> MeterReadingBase<'a> {
MeterReadingBase(self.0)
}
pub fn billing_reading_set_list_link(&self) -> Option<BillingReadingSetListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "BillingReadingSetListLink")))
.map(BillingReadingSetListLink)
}
pub fn reading_type_link(&self) -> Option<ReadingTypeLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ReadingTypeLink")))
.map(ReadingTypeLink)
}
}
view!(BillingReading);
impl<'a> BillingReading<'a> {
pub fn as_base(&self) -> ReadingBase<'a> {
ReadingBase(self.0)
}
pub fn charge(&self) -> impl Iterator<Item = Charge<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "Charge")))
.map(Charge)
}
}
view!(BillingReadingList);
impl<'a> BillingReadingList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn billing_reading(&self) -> impl Iterator<Item = BillingReading<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "BillingReading")))
.map(BillingReading)
}
}
view!(BillingReadingSet);
impl<'a> BillingReadingSet<'a> {
pub fn as_base(&self) -> ReadingSetBase<'a> {
ReadingSetBase(self.0)
}
pub fn billing_reading_list_link(&self) -> Option<BillingReadingListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "BillingReadingListLink")))
.map(BillingReadingListLink)
}
}
view!(BillingReadingSetList);
impl<'a> BillingReadingSetList<'a> {
pub fn as_base(&self) -> SubscribableList<'a> {
SubscribableList(self.0)
}
pub fn billing_reading_set(&self) -> impl Iterator<Item = BillingReadingSet<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "BillingReadingSet")))
.map(BillingReadingSet)
}
}
view!(Charge);
impl<'a> Charge<'a> {
pub fn description(&self) -> Option<String20<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "description")))
.map(String20)
}
pub fn kind(&self) -> Option<ChargeKind<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "kind")))
.map(ChargeKind)
}
pub fn value(&self) -> Option<Int32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(Int32)
}
}
view!(ChargeKind);
impl<'a> ChargeKind<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(CustomerAccount);
impl<'a> CustomerAccount<'a> {
pub fn as_base(&self) -> IdentifiedObject<'a> {
IdentifiedObject(self.0)
}
pub fn currency(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "currency")))
.map(UInt16)
}
pub fn customer_account(&self) -> Option<String42<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "customerAccount")))
.map(String42)
}
pub fn customer_agreement_list_link(&self) -> Option<CustomerAgreementListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "CustomerAgreementListLink")))
.map(CustomerAgreementListLink)
}
pub fn customer_name(&self) -> Option<String42<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "customerName")))
.map(String42)
}
pub fn price_power_of_ten_multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "pricePowerOfTenMultiplier")))
.map(PowerOfTenMultiplierType)
}
pub fn service_supplier_link(&self) -> Option<ServiceSupplierLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ServiceSupplierLink")))
.map(ServiceSupplierLink)
}
}
view!(CustomerAccountList);
impl<'a> CustomerAccountList<'a> {
pub fn as_base(&self) -> SubscribableList<'a> {
SubscribableList(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn customer_account(&self) -> impl Iterator<Item = CustomerAccount<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "CustomerAccount")))
.map(CustomerAccount)
}
}
view!(CustomerAgreement);
impl<'a> CustomerAgreement<'a> {
pub fn as_base(&self) -> IdentifiedObject<'a> {
IdentifiedObject(self.0)
}
pub fn active_billing_period_list_link(&self) -> Option<ActiveBillingPeriodListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ActiveBillingPeriodListLink")))
.map(ActiveBillingPeriodListLink)
}
pub fn active_projection_reading_list_link(
&self,
) -> Option<ActiveProjectionReadingListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ActiveProjectionReadingListLink")))
.map(ActiveProjectionReadingListLink)
}
pub fn active_target_reading_list_link(&self) -> Option<ActiveTargetReadingListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ActiveTargetReadingListLink")))
.map(ActiveTargetReadingListLink)
}
pub fn billing_period_list_link(&self) -> Option<BillingPeriodListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "BillingPeriodListLink")))
.map(BillingPeriodListLink)
}
pub fn historical_reading_list_link(&self) -> Option<HistoricalReadingListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "HistoricalReadingListLink")))
.map(HistoricalReadingListLink)
}
pub fn prepayment_link(&self) -> Option<PrepaymentLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "PrepaymentLink")))
.map(PrepaymentLink)
}
pub fn projection_reading_list_link(&self) -> Option<ProjectionReadingListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ProjectionReadingListLink")))
.map(ProjectionReadingListLink)
}
pub fn service_account(&self) -> Option<String42<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "serviceAccount")))
.map(String42)
}
pub fn service_location(&self) -> Option<String42<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "serviceLocation")))
.map(String42)
}
pub fn target_reading_list_link(&self) -> Option<TargetReadingListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "TargetReadingListLink")))
.map(TargetReadingListLink)
}
pub fn tariff_profile_link(&self) -> Option<TariffProfileLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "TariffProfileLink")))
.map(TariffProfileLink)
}
pub fn usage_point_link(&self) -> Option<UsagePointLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "UsagePointLink")))
.map(UsagePointLink)
}
}
view!(CustomerAgreementList);
impl<'a> CustomerAgreementList<'a> {
pub fn as_base(&self) -> SubscribableList<'a> {
SubscribableList(self.0)
}
pub fn customer_agreement(&self) -> impl Iterator<Item = CustomerAgreement<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "CustomerAgreement")))
.map(CustomerAgreement)
}
}
view!(HistoricalReading);
impl<'a> HistoricalReading<'a> {
pub fn as_base(&self) -> BillingMeterReadingBase<'a> {
BillingMeterReadingBase(self.0)
}
}
view!(HistoricalReadingList);
impl<'a> HistoricalReadingList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn historical_reading(&self) -> impl Iterator<Item = HistoricalReading<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "HistoricalReading")))
.map(HistoricalReading)
}
}
view!(ProjectionReading);
impl<'a> ProjectionReading<'a> {
pub fn as_base(&self) -> BillingMeterReadingBase<'a> {
BillingMeterReadingBase(self.0)
}
}
view!(ProjectionReadingList);
impl<'a> ProjectionReadingList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn projection_reading(&self) -> impl Iterator<Item = ProjectionReading<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "ProjectionReading")))
.map(ProjectionReading)
}
}
view!(TargetReading);
impl<'a> TargetReading<'a> {
pub fn as_base(&self) -> BillingMeterReadingBase<'a> {
BillingMeterReadingBase(self.0)
}
}
view!(TargetReadingList);
impl<'a> TargetReadingList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn target_reading(&self) -> impl Iterator<Item = TargetReading<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "TargetReading")))
.map(TargetReading)
}
}
view!(ServiceSupplier);
impl<'a> ServiceSupplier<'a> {
pub fn as_base(&self) -> IdentifiedObject<'a> {
IdentifiedObject(self.0)
}
pub fn email(&self) -> Option<String32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "email")))
.map(String32)
}
pub fn phone(&self) -> Option<String20<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "phone")))
.map(String20)
}
pub fn provider_id(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "providerID")))
.map(UInt32)
}
pub fn web(&self) -> Option<String42<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "web")))
.map(String42)
}
}
view!(ServiceSupplierList);
impl<'a> ServiceSupplierList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn service_supplier(&self) -> impl Iterator<Item = ServiceSupplier<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "ServiceSupplier")))
.map(ServiceSupplier)
}
}
view!(AccountBalance);
impl<'a> AccountBalance<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn available_credit(&self) -> Option<AccountingUnit<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "availableCredit")))
.map(AccountingUnit)
}
pub fn credit_status(&self) -> Option<CreditStatusType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "creditStatus")))
.map(CreditStatusType)
}
pub fn emergency_credit(&self) -> Option<AccountingUnit<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "emergencyCredit")))
.map(AccountingUnit)
}
pub fn emergency_credit_status(&self) -> Option<CreditStatusType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "emergencyCreditStatus")))
.map(CreditStatusType)
}
}
view!(AccountingUnit);
impl<'a> AccountingUnit<'a> {
pub fn energy_unit(&self) -> Option<RealEnergy<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "energyUnit")))
.map(RealEnergy)
}
pub fn monetary_unit(&self) -> Option<CurrencyCode<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "monetaryUnit")))
.map(CurrencyCode)
}
pub fn multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "multiplier")))
.map(PowerOfTenMultiplierType)
}
pub fn value(&self) -> Option<Int32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(Int32)
}
}
view!(CreditRegister);
impl<'a> CreditRegister<'a> {
pub fn as_base(&self) -> IdentifiedObject<'a> {
IdentifiedObject(self.0)
}
pub fn credit_amount(&self) -> Option<AccountingUnit<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "creditAmount")))
.map(AccountingUnit)
}
pub fn credit_type(&self) -> Option<CreditTypeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "creditType")))
.map(CreditTypeType)
}
pub fn effective_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "effectiveTime")))
.map(TimeType)
}
pub fn token(&self) -> Option<String32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "token")))
.map(String32)
}
}
view!(CreditRegisterList);
impl<'a> CreditRegisterList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn credit_register(&self) -> impl Iterator<Item = CreditRegister<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "CreditRegister")))
.map(CreditRegister)
}
}
view!(Prepayment);
impl<'a> Prepayment<'a> {
pub fn as_base(&self) -> IdentifiedObject<'a> {
IdentifiedObject(self.0)
}
pub fn account_balance_link(&self) -> Option<AccountBalanceLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "AccountBalanceLink")))
.map(AccountBalanceLink)
}
pub fn active_credit_register_list_link(&self) -> Option<ActiveCreditRegisterListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ActiveCreditRegisterListLink")))
.map(ActiveCreditRegisterListLink)
}
pub fn active_supply_interruption_override_list_link(
&self,
) -> Option<ActiveSupplyInterruptionOverrideListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ActiveSupplyInterruptionOverrideListLink")))
.map(ActiveSupplyInterruptionOverrideListLink)
}
pub fn credit_expiry_level(&self) -> Option<AccountingUnit<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "creditExpiryLevel")))
.map(AccountingUnit)
}
pub fn credit_register_list_link(&self) -> Option<CreditRegisterListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "CreditRegisterListLink")))
.map(CreditRegisterListLink)
}
pub fn low_credit_warning_level(&self) -> Option<AccountingUnit<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "lowCreditWarningLevel")))
.map(AccountingUnit)
}
pub fn low_emergency_credit_warning_level(&self) -> Option<AccountingUnit<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "lowEmergencyCreditWarningLevel")))
.map(AccountingUnit)
}
pub fn prepay_mode(&self) -> Option<PrepayModeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "prepayMode")))
.map(PrepayModeType)
}
pub fn prepay_operation_status_link(&self) -> Option<PrepayOperationStatusLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "PrepayOperationStatusLink")))
.map(PrepayOperationStatusLink)
}
pub fn supply_interruption_override_list_link(
&self,
) -> Option<SupplyInterruptionOverrideListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "SupplyInterruptionOverrideListLink")))
.map(SupplyInterruptionOverrideListLink)
}
pub fn usage_point(&self) -> impl Iterator<Item = UsagePoint<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "UsagePoint")))
.map(UsagePoint)
}
pub fn usage_point_link(&self) -> Option<UsagePointLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "UsagePointLink")))
.map(UsagePointLink)
}
}
view!(PrepaymentList);
impl<'a> PrepaymentList<'a> {
pub fn as_base(&self) -> SubscribableList<'a> {
SubscribableList(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn prepayment(&self) -> impl Iterator<Item = Prepayment<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "Prepayment")))
.map(Prepayment)
}
}
view!(PrepayModeType);
impl<'a> PrepayModeType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(PrepayOperationStatus);
impl<'a> PrepayOperationStatus<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn credit_type_change(&self) -> Option<CreditTypeChange<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "creditTypeChange")))
.map(CreditTypeChange)
}
pub fn credit_type_in_use(&self) -> Option<CreditTypeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "creditTypeInUse")))
.map(CreditTypeType)
}
pub fn service_change(&self) -> Option<ServiceChange<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "serviceChange")))
.map(ServiceChange)
}
pub fn service_status(&self) -> Option<ServiceStatusType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "serviceStatus")))
.map(ServiceStatusType)
}
}
view!(ServiceChange);
impl<'a> ServiceChange<'a> {
pub fn new_status(&self) -> Option<ServiceStatusType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "newStatus")))
.map(ServiceStatusType)
}
pub fn start_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "startTime")))
.map(TimeType)
}
}
view!(SupplyInterruptionOverride);
impl<'a> SupplyInterruptionOverride<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn description(&self) -> Option<String32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "description")))
.map(String32)
}
pub fn interval(&self) -> Option<DateTimeInterval<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "interval")))
.map(DateTimeInterval)
}
}
view!(SupplyInterruptionOverrideList);
impl<'a> SupplyInterruptionOverrideList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn supply_interruption_override(
&self,
) -> impl Iterator<Item = SupplyInterruptionOverride<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "SupplyInterruptionOverride")))
.map(SupplyInterruptionOverride)
}
}
view!(CreditStatusType);
impl<'a> CreditStatusType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(CreditTypeType);
impl<'a> CreditTypeType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(CreditTypeChange);
impl<'a> CreditTypeChange<'a> {
pub fn new_type(&self) -> Option<CreditTypeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "newType")))
.map(CreditTypeType)
}
pub fn start_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "startTime")))
.map(TimeType)
}
}
view!(ServiceStatusType);
impl<'a> ServiceStatusType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(RequestStatus);
impl<'a> RequestStatus<'a> {
pub fn date_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "dateTime")))
.map(TimeType)
}
pub fn request_status(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "requestStatus")))
.map(UInt8)
}
}
view!(FlowReservationRequest);
impl<'a> FlowReservationRequest<'a> {
pub fn as_base(&self) -> IdentifiedObject<'a> {
IdentifiedObject(self.0)
}
pub fn creation_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "creationTime")))
.map(TimeType)
}
pub fn duration_requested(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "durationRequested")))
.map(UInt16)
}
pub fn energy_requested(&self) -> Option<SignedRealEnergy<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "energyRequested")))
.map(SignedRealEnergy)
}
pub fn interval_requested(&self) -> Option<DateTimeInterval<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "intervalRequested")))
.map(DateTimeInterval)
}
pub fn power_requested(&self) -> Option<ActivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "powerRequested")))
.map(ActivePower)
}
pub fn request_status(&self) -> Option<RequestStatus<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "RequestStatus")))
.map(RequestStatus)
}
}
view!(FlowReservationRequestList);
impl<'a> FlowReservationRequestList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn flow_reservation_request(
&self,
) -> impl Iterator<Item = FlowReservationRequest<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "FlowReservationRequest")))
.map(FlowReservationRequest)
}
}
view!(FlowReservationResponse);
impl<'a> FlowReservationResponse<'a> {
pub fn as_base(&self) -> Event<'a> {
Event(self.0)
}
pub fn energy_available(&self) -> Option<SignedRealEnergy<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "energyAvailable")))
.map(SignedRealEnergy)
}
pub fn power_available(&self) -> Option<ActivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "powerAvailable")))
.map(ActivePower)
}
pub fn subject(&self) -> Option<mRIDType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "subject")))
.map(mRIDType)
}
}
view!(FlowReservationResponseList);
impl<'a> FlowReservationResponseList<'a> {
pub fn as_base(&self) -> SubscribableList<'a> {
SubscribableList(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn flow_reservation_response(
&self,
) -> impl Iterator<Item = FlowReservationResponse<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "FlowReservationResponse")))
.map(FlowReservationResponse)
}
}
view!(DefaultDERControl);
impl<'a> DefaultDERControl<'a> {
pub fn as_base(&self) -> SubscribableIdentifiedObject<'a> {
SubscribableIdentifiedObject(self.0)
}
pub fn der_control_base(&self) -> Option<DERControlBase<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "DERControlBase")))
.map(DERControlBase)
}
pub fn set_es_delay(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setESDelay")))
.map(UInt32)
}
pub fn set_es_high_freq(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setESHighFreq")))
.map(UInt16)
}
pub fn set_es_high_volt(&self) -> Option<Int16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setESHighVolt")))
.map(Int16)
}
pub fn set_es_low_freq(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setESLowFreq")))
.map(UInt16)
}
pub fn set_es_low_volt(&self) -> Option<Int16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setESLowVolt")))
.map(Int16)
}
pub fn set_es_ramp_tms(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setESRampTms")))
.map(UInt32)
}
pub fn set_es_random_delay(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setESRandomDelay")))
.map(UInt32)
}
pub fn set_grad_w(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setGradW")))
.map(UInt16)
}
pub fn set_soft_grad_w(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setSoftGradW")))
.map(UInt16)
}
}
view!(FreqDroopType);
impl<'a> FreqDroopType<'a> {
pub fn d_bof(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "dBOF")))
.map(UInt32)
}
pub fn d_buf(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "dBUF")))
.map(UInt32)
}
pub fn k_of(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "kOF")))
.map(UInt16)
}
pub fn k_uf(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "kUF")))
.map(UInt16)
}
pub fn open_loop_tms(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "openLoopTms")))
.map(UInt16)
}
}
view!(DER);
impl<'a> DER<'a> {
pub fn as_base(&self) -> SubscribableResource<'a> {
SubscribableResource(self.0)
}
pub fn associated_der_program_list_link(&self) -> Option<AssociatedDERProgramListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "AssociatedDERProgramListLink")))
.map(AssociatedDERProgramListLink)
}
pub fn associated_usage_point_link(&self) -> Option<AssociatedUsagePointLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "AssociatedUsagePointLink")))
.map(AssociatedUsagePointLink)
}
pub fn current_der_program_link(&self) -> Option<CurrentDERProgramLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "CurrentDERProgramLink")))
.map(CurrentDERProgramLink)
}
pub fn der_availability_link(&self) -> Option<DERAvailabilityLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "DERAvailabilityLink")))
.map(DERAvailabilityLink)
}
pub fn der_capability_link(&self) -> Option<DERCapabilityLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "DERCapabilityLink")))
.map(DERCapabilityLink)
}
pub fn der_settings_link(&self) -> Option<DERSettingsLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "DERSettingsLink")))
.map(DERSettingsLink)
}
pub fn der_status_link(&self) -> Option<DERStatusLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "DERStatusLink")))
.map(DERStatusLink)
}
}
view!(DERList);
impl<'a> DERList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn der(&self) -> impl Iterator<Item = DER<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "DER")))
.map(DER)
}
}
view!(DERSettings);
impl<'a> DERSettings<'a> {
pub fn as_base(&self) -> SubscribableResource<'a> {
SubscribableResource(self.0)
}
pub fn modes_enabled(&self) -> Option<DERControlType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "modesEnabled")))
.map(DERControlType)
}
pub fn set_es_delay(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setESDelay")))
.map(UInt32)
}
pub fn set_es_high_freq(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setESHighFreq")))
.map(UInt16)
}
pub fn set_es_high_volt(&self) -> Option<Int16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setESHighVolt")))
.map(Int16)
}
pub fn set_es_low_freq(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setESLowFreq")))
.map(UInt16)
}
pub fn set_es_low_volt(&self) -> Option<Int16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setESLowVolt")))
.map(Int16)
}
pub fn set_es_ramp_tms(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setESRampTms")))
.map(UInt32)
}
pub fn set_es_random_delay(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setESRandomDelay")))
.map(UInt32)
}
pub fn set_grad_w(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setGradW")))
.map(UInt16)
}
pub fn set_max_a(&self) -> Option<CurrentRMS<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setMaxA")))
.map(CurrentRMS)
}
pub fn set_max_ah(&self) -> Option<AmpereHour<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setMaxAh")))
.map(AmpereHour)
}
pub fn set_max_charge_rate_va(&self) -> Option<ApparentPower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setMaxChargeRateVA")))
.map(ApparentPower)
}
pub fn set_max_charge_rate_w(&self) -> Option<ActivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setMaxChargeRateW")))
.map(ActivePower)
}
pub fn set_max_discharge_rate_va(&self) -> Option<ApparentPower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setMaxDischargeRateVA")))
.map(ApparentPower)
}
pub fn set_max_discharge_rate_w(&self) -> Option<ActivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setMaxDischargeRateW")))
.map(ActivePower)
}
pub fn set_max_v(&self) -> Option<VoltageRMS<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setMaxV")))
.map(VoltageRMS)
}
pub fn set_max_va(&self) -> Option<ApparentPower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setMaxVA")))
.map(ApparentPower)
}
pub fn set_max_var(&self) -> Option<ReactivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setMaxVar")))
.map(ReactivePower)
}
pub fn set_max_var_neg(&self) -> Option<ReactivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setMaxVarNeg")))
.map(ReactivePower)
}
pub fn set_max_w(&self) -> Option<ActivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setMaxW")))
.map(ActivePower)
}
pub fn set_max_wh(&self) -> Option<WattHour<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setMaxWh")))
.map(WattHour)
}
pub fn set_min_pf_over_excited(&self) -> Option<PowerFactor<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setMinPFOverExcited")))
.map(PowerFactor)
}
pub fn set_min_pf_under_excited(&self) -> Option<PowerFactor<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setMinPFUnderExcited")))
.map(PowerFactor)
}
pub fn set_min_v(&self) -> Option<VoltageRMS<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setMinV")))
.map(VoltageRMS)
}
pub fn set_soft_grad_w(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setSoftGradW")))
.map(UInt16)
}
pub fn set_v_nom(&self) -> Option<VoltageRMS<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setVNom")))
.map(VoltageRMS)
}
pub fn set_v_ref(&self) -> Option<VoltageRMS<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setVRef")))
.map(VoltageRMS)
}
pub fn set_v_ref_ofs(&self) -> Option<VoltageRMS<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "setVRefOfs")))
.map(VoltageRMS)
}
pub fn updated_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "updatedTime")))
.map(TimeType)
}
#[cfg(feature = "csip-aus")]
pub fn doe_modes_enabled(&self) -> Option<DOEControlType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((AUS, "doeModesEnabled")))
.map(DOEControlType)
}
}
view!(DERType);
impl<'a> DERType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(DERAvailability);
impl<'a> DERAvailability<'a> {
pub fn as_base(&self) -> SubscribableResource<'a> {
SubscribableResource(self.0)
}
pub fn availability_duration(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "availabilityDuration")))
.map(UInt32)
}
pub fn max_charge_duration(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "maxChargeDuration")))
.map(UInt32)
}
pub fn reading_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "readingTime")))
.map(TimeType)
}
pub fn reserve_charge_percent(&self) -> Option<PerCent<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "reserveChargePercent")))
.map(PerCent)
}
pub fn reserve_percent(&self) -> Option<PerCent<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "reservePercent")))
.map(PerCent)
}
pub fn stat_var_avail(&self) -> Option<ReactivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "statVarAvail")))
.map(ReactivePower)
}
pub fn stat_w_avail(&self) -> Option<ActivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "statWAvail")))
.map(ActivePower)
}
}
view!(DERCapability);
impl<'a> DERCapability<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn modes_supported(&self) -> Option<DERControlType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "modesSupported")))
.map(DERControlType)
}
pub fn rtg_abnormal_category(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgAbnormalCategory")))
.map(UInt8)
}
pub fn rtg_max_a(&self) -> Option<CurrentRMS<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgMaxA")))
.map(CurrentRMS)
}
pub fn rtg_max_ah(&self) -> Option<AmpereHour<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgMaxAh")))
.map(AmpereHour)
}
pub fn rtg_max_charge_rate_va(&self) -> Option<ApparentPower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgMaxChargeRateVA")))
.map(ApparentPower)
}
pub fn rtg_max_charge_rate_w(&self) -> Option<ActivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgMaxChargeRateW")))
.map(ActivePower)
}
pub fn rtg_max_discharge_rate_va(&self) -> Option<ApparentPower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgMaxDischargeRateVA")))
.map(ApparentPower)
}
pub fn rtg_max_discharge_rate_w(&self) -> Option<ActivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgMaxDischargeRateW")))
.map(ActivePower)
}
pub fn rtg_max_v(&self) -> Option<VoltageRMS<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgMaxV")))
.map(VoltageRMS)
}
pub fn rtg_max_va(&self) -> Option<ApparentPower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgMaxVA")))
.map(ApparentPower)
}
pub fn rtg_max_var(&self) -> Option<ReactivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgMaxVar")))
.map(ReactivePower)
}
pub fn rtg_max_var_neg(&self) -> Option<ReactivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgMaxVarNeg")))
.map(ReactivePower)
}
pub fn rtg_max_w(&self) -> Option<ActivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgMaxW")))
.map(ActivePower)
}
pub fn rtg_max_wh(&self) -> Option<WattHour<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgMaxWh")))
.map(WattHour)
}
pub fn rtg_min_pf_over_excited(&self) -> Option<PowerFactor<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgMinPFOverExcited")))
.map(PowerFactor)
}
pub fn rtg_min_pf_under_excited(&self) -> Option<PowerFactor<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgMinPFUnderExcited")))
.map(PowerFactor)
}
pub fn rtg_min_v(&self) -> Option<VoltageRMS<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgMinV")))
.map(VoltageRMS)
}
pub fn rtg_normal_category(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgNormalCategory")))
.map(UInt8)
}
pub fn rtg_over_excited_pf(&self) -> Option<PowerFactor<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgOverExcitedPF")))
.map(PowerFactor)
}
pub fn rtg_over_excited_w(&self) -> Option<ActivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgOverExcitedW")))
.map(ActivePower)
}
pub fn rtg_reactive_susceptance(&self) -> Option<ReactiveSusceptance<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgReactiveSusceptance")))
.map(ReactiveSusceptance)
}
pub fn rtg_under_excited_pf(&self) -> Option<PowerFactor<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgUnderExcitedPF")))
.map(PowerFactor)
}
pub fn rtg_under_excited_w(&self) -> Option<ActivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgUnderExcitedW")))
.map(ActivePower)
}
pub fn rtg_v_nom(&self) -> Option<VoltageRMS<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rtgVNom")))
.map(VoltageRMS)
}
pub fn r#type(&self) -> Option<DERType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "type")))
.map(DERType)
}
#[cfg(feature = "csip-aus")]
pub fn doe_modes_supported(&self) -> Option<DOEControlType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((AUS, "doeModesSupported")))
.map(DOEControlType)
}
}
view!(DERControlBase);
impl<'a> DERControlBase<'a> {
pub fn op_mod_connect(&self) -> Option<Node<'a, 'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModConnect")))
}
pub fn op_mod_energize(&self) -> Option<Node<'a, 'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModEnergize")))
}
pub fn op_mod_fixed_pf_absorb_w(&self) -> Option<PowerFactorWithExcitation<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModFixedPFAbsorbW")))
.map(PowerFactorWithExcitation)
}
pub fn op_mod_fixed_pf_inject_w(&self) -> Option<PowerFactorWithExcitation<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModFixedPFInjectW")))
.map(PowerFactorWithExcitation)
}
pub fn op_mod_fixed_var(&self) -> Option<FixedVar<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModFixedVar")))
.map(FixedVar)
}
pub fn op_mod_fixed_w(&self) -> Option<SignedPerCent<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModFixedW")))
.map(SignedPerCent)
}
pub fn op_mod_freq_droop(&self) -> Option<FreqDroopType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModFreqDroop")))
.map(FreqDroopType)
}
pub fn op_mod_freq_watt(&self) -> Option<DERCurveLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModFreqWatt")))
.map(DERCurveLink)
}
pub fn op_mod_hfrt_may_trip(&self) -> Option<DERCurveLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModHFRTMayTrip")))
.map(DERCurveLink)
}
pub fn op_mod_hfrt_must_trip(&self) -> Option<DERCurveLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModHFRTMustTrip")))
.map(DERCurveLink)
}
pub fn op_mod_hvrt_may_trip(&self) -> Option<DERCurveLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModHVRTMayTrip")))
.map(DERCurveLink)
}
pub fn op_mod_hvrt_momentary_cessation(&self) -> Option<DERCurveLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModHVRTMomentaryCessation")))
.map(DERCurveLink)
}
pub fn op_mod_hvrt_must_trip(&self) -> Option<DERCurveLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModHVRTMustTrip")))
.map(DERCurveLink)
}
pub fn op_mod_lfrt_may_trip(&self) -> Option<DERCurveLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModLFRTMayTrip")))
.map(DERCurveLink)
}
pub fn op_mod_lfrt_must_trip(&self) -> Option<DERCurveLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModLFRTMustTrip")))
.map(DERCurveLink)
}
pub fn op_mod_lvrt_may_trip(&self) -> Option<DERCurveLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModLVRTMayTrip")))
.map(DERCurveLink)
}
pub fn op_mod_lvrt_momentary_cessation(&self) -> Option<DERCurveLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModLVRTMomentaryCessation")))
.map(DERCurveLink)
}
pub fn op_mod_lvrt_must_trip(&self) -> Option<DERCurveLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModLVRTMustTrip")))
.map(DERCurveLink)
}
pub fn op_mod_max_lim_w(&self) -> Option<PerCent<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModMaxLimW")))
.map(PerCent)
}
pub fn op_mod_target_var(&self) -> Option<ReactivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModTargetVar")))
.map(ReactivePower)
}
pub fn op_mod_target_w(&self) -> Option<ActivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModTargetW")))
.map(ActivePower)
}
pub fn op_mod_volt_var(&self) -> Option<DERCurveLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModVoltVar")))
.map(DERCurveLink)
}
pub fn op_mod_volt_watt(&self) -> Option<DERCurveLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModVoltWatt")))
.map(DERCurveLink)
}
pub fn op_mod_watt_pf(&self) -> Option<DERCurveLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModWattPF")))
.map(DERCurveLink)
}
pub fn op_mod_watt_var(&self) -> Option<DERCurveLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "opModWattVar")))
.map(DERCurveLink)
}
pub fn ramp_tms(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rampTms")))
.map(UInt16)
}
#[cfg(feature = "csip-aus")]
pub fn op_mod_imp_lim_w(&self) -> Option<ActivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((AUS, "opModImpLimW")))
.map(ActivePower)
}
#[cfg(feature = "csip-aus")]
pub fn op_mod_exp_lim_w(&self) -> Option<ActivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((AUS, "opModExpLimW")))
.map(ActivePower)
}
#[cfg(feature = "csip-aus")]
pub fn op_mod_gen_lim_w(&self) -> Option<ActivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((AUS, "opModGenLimW")))
.map(ActivePower)
}
#[cfg(feature = "csip-aus")]
pub fn op_mod_load_lim_w(&self) -> Option<ActivePower<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((AUS, "opModLoadLimW")))
.map(ActivePower)
}
}
view!(DERControl);
impl<'a> DERControl<'a> {
pub fn as_base(&self) -> RandomizableEvent<'a> {
RandomizableEvent(self.0)
}
pub fn der_control_base(&self) -> Option<DERControlBase<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "DERControlBase")))
.map(DERControlBase)
}
pub fn device_category(&self) -> Option<DeviceCategoryType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "deviceCategory")))
.map(DeviceCategoryType)
}
}
view!(DERControlList);
impl<'a> DERControlList<'a> {
pub fn as_base(&self) -> SubscribableList<'a> {
SubscribableList(self.0)
}
pub fn der_control(&self) -> impl Iterator<Item = DERControl<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "DERControl")))
.map(DERControl)
}
}
view!(DERControlType);
impl<'a> DERControlType<'a> {
pub fn as_base(&self) -> HexBinary32<'a> {
HexBinary32(self.0)
}
pub fn bytes(&self) -> alloc::vec::Vec<u8> {
super::hex(self.0)
}
}
view!(DERCurve);
impl<'a> DERCurve<'a> {
pub fn as_base(&self) -> IdentifiedObject<'a> {
IdentifiedObject(self.0)
}
pub fn autonomous_v_ref_enable(&self) -> Option<Node<'a, 'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "autonomousVRefEnable")))
}
pub fn autonomous_v_ref_time_constant(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "autonomousVRefTimeConstant")))
.map(UInt32)
}
pub fn creation_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "creationTime")))
.map(TimeType)
}
pub fn curve_data(&self) -> impl Iterator<Item = CurveData<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "CurveData")))
.map(CurveData)
}
pub fn curve_type(&self) -> Option<DERCurveType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "curveType")))
.map(DERCurveType)
}
pub fn open_loop_tms(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "openLoopTms")))
.map(UInt16)
}
pub fn ramp_dec_tms(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rampDecTms")))
.map(UInt16)
}
pub fn ramp_inc_tms(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rampIncTms")))
.map(UInt16)
}
pub fn ramp_pt1_tms(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "rampPT1Tms")))
.map(UInt16)
}
pub fn v_ref(&self) -> Option<PerCent<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "vRef")))
.map(PerCent)
}
pub fn x_multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "xMultiplier")))
.map(PowerOfTenMultiplierType)
}
pub fn y_multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "yMultiplier")))
.map(PowerOfTenMultiplierType)
}
pub fn y_ref_type(&self) -> Option<DERUnitRefType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "yRefType")))
.map(DERUnitRefType)
}
}
view!(CurrentDERProgramLink);
impl<'a> CurrentDERProgramLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(DERCurveList);
impl<'a> DERCurveList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn der_curve(&self) -> impl Iterator<Item = DERCurve<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "DERCurve")))
.map(DERCurve)
}
}
view!(CurveData);
impl<'a> CurveData<'a> {
pub fn excitation(&self) -> Option<Node<'a, 'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "excitation")))
}
pub fn xvalue(&self) -> Option<Int32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "xvalue")))
.map(Int32)
}
pub fn yvalue(&self) -> Option<Int32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "yvalue")))
.map(Int32)
}
}
view!(DERCurveType);
impl<'a> DERCurveType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(DERProgram);
impl<'a> DERProgram<'a> {
pub fn as_base(&self) -> SubscribableIdentifiedObject<'a> {
SubscribableIdentifiedObject(self.0)
}
pub fn active_der_control_list_link(&self) -> Option<ActiveDERControlListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ActiveDERControlListLink")))
.map(ActiveDERControlListLink)
}
pub fn default_der_control_link(&self) -> Option<DefaultDERControlLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "DefaultDERControlLink")))
.map(DefaultDERControlLink)
}
pub fn der_control_list_link(&self) -> Option<DERControlListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "DERControlListLink")))
.map(DERControlListLink)
}
pub fn der_curve_list_link(&self) -> Option<DERCurveListLink<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "DERCurveListLink")))
.map(DERCurveListLink)
}
pub fn primacy(&self) -> Option<PrimacyType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "primacy")))
.map(PrimacyType)
}
}
view!(DERProgramList);
impl<'a> DERProgramList<'a> {
pub fn as_base(&self) -> SubscribableList<'a> {
SubscribableList(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn der_program(&self) -> impl Iterator<Item = DERProgram<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "DERProgram")))
.map(DERProgram)
}
}
view!(DERStatus);
impl<'a> DERStatus<'a> {
pub fn as_base(&self) -> SubscribableResource<'a> {
SubscribableResource(self.0)
}
pub fn alarm_status(&self) -> Option<HexBinary32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "alarmStatus")))
.map(HexBinary32)
}
pub fn gen_connect_status(&self) -> Option<ConnectStatusType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "genConnectStatus")))
.map(ConnectStatusType)
}
pub fn inverter_status(&self) -> Option<InverterStatusType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "inverterStatus")))
.map(InverterStatusType)
}
pub fn local_control_mode_status(&self) -> Option<LocalControlModeStatusType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "localControlModeStatus")))
.map(LocalControlModeStatusType)
}
pub fn manufacturer_status(&self) -> Option<ManufacturerStatusType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "manufacturerStatus")))
.map(ManufacturerStatusType)
}
pub fn operational_mode_status(&self) -> Option<OperationalModeStatusType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "operationalModeStatus")))
.map(OperationalModeStatusType)
}
pub fn reading_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "readingTime")))
.map(TimeType)
}
pub fn state_of_charge_status(&self) -> Option<StateOfChargeStatusType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "stateOfChargeStatus")))
.map(StateOfChargeStatusType)
}
pub fn storage_mode_status(&self) -> Option<StorageModeStatusType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "storageModeStatus")))
.map(StorageModeStatusType)
}
pub fn stor_connect_status(&self) -> Option<ConnectStatusType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "storConnectStatus")))
.map(ConnectStatusType)
}
}
view!(DERUnitRefType);
impl<'a> DERUnitRefType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(CurrentRMS);
impl<'a> CurrentRMS<'a> {
pub fn multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "multiplier")))
.map(PowerOfTenMultiplierType)
}
pub fn value(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(UInt16)
}
}
view!(FixedPointType);
impl<'a> FixedPointType<'a> {
pub fn multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "multiplier")))
.map(PowerOfTenMultiplierType)
}
pub fn value(&self) -> Option<Int16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(Int16)
}
}
view!(UnsignedFixedPointType);
impl<'a> UnsignedFixedPointType<'a> {
pub fn multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "multiplier")))
.map(PowerOfTenMultiplierType)
}
pub fn value(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(UInt16)
}
}
view!(ActivePower);
impl<'a> ActivePower<'a> {
pub fn multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "multiplier")))
.map(PowerOfTenMultiplierType)
}
pub fn value(&self) -> Option<Int16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(Int16)
}
}
view!(AmpereHour);
impl<'a> AmpereHour<'a> {
pub fn multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "multiplier")))
.map(PowerOfTenMultiplierType)
}
pub fn value(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(UInt16)
}
}
view!(ApparentPower);
impl<'a> ApparentPower<'a> {
pub fn multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "multiplier")))
.map(PowerOfTenMultiplierType)
}
pub fn value(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(UInt16)
}
}
view!(ReactivePower);
impl<'a> ReactivePower<'a> {
pub fn multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "multiplier")))
.map(PowerOfTenMultiplierType)
}
pub fn value(&self) -> Option<Int16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(Int16)
}
}
view!(ReactiveSusceptance);
impl<'a> ReactiveSusceptance<'a> {
pub fn multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "multiplier")))
.map(PowerOfTenMultiplierType)
}
pub fn value(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(UInt16)
}
}
view!(PowerFactor);
impl<'a> PowerFactor<'a> {
pub fn displacement(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "displacement")))
.map(UInt16)
}
pub fn multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "multiplier")))
.map(PowerOfTenMultiplierType)
}
}
view!(PowerFactorWithExcitation);
impl<'a> PowerFactorWithExcitation<'a> {
pub fn displacement(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "displacement")))
.map(UInt16)
}
pub fn excitation(&self) -> Option<Node<'a, 'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "excitation")))
}
pub fn multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "multiplier")))
.map(PowerOfTenMultiplierType)
}
}
view!(FixedVar);
impl<'a> FixedVar<'a> {
pub fn ref_type(&self) -> Option<DERUnitRefType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "refType")))
.map(DERUnitRefType)
}
pub fn value(&self) -> Option<SignedPerCent<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(SignedPerCent)
}
}
view!(WattHour);
impl<'a> WattHour<'a> {
pub fn multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "multiplier")))
.map(PowerOfTenMultiplierType)
}
pub fn value(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(UInt16)
}
}
view!(VoltageRMS);
impl<'a> VoltageRMS<'a> {
pub fn multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "multiplier")))
.map(PowerOfTenMultiplierType)
}
pub fn value(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(UInt16)
}
}
view!(ConnectStatusType);
impl<'a> ConnectStatusType<'a> {
pub fn date_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "dateTime")))
.map(TimeType)
}
pub fn value(&self) -> Option<HexBinary8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(HexBinary8)
}
}
view!(InverterStatusType);
impl<'a> InverterStatusType<'a> {
pub fn date_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "dateTime")))
.map(TimeType)
}
pub fn value(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(UInt8)
}
}
view!(LocalControlModeStatusType);
impl<'a> LocalControlModeStatusType<'a> {
pub fn date_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "dateTime")))
.map(TimeType)
}
pub fn value(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(UInt8)
}
}
view!(ManufacturerStatusType);
impl<'a> ManufacturerStatusType<'a> {
pub fn date_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "dateTime")))
.map(TimeType)
}
pub fn value(&self) -> Option<String6<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(String6)
}
}
view!(OperationalModeStatusType);
impl<'a> OperationalModeStatusType<'a> {
pub fn date_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "dateTime")))
.map(TimeType)
}
pub fn value(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(UInt8)
}
}
view!(StateOfChargeStatusType);
impl<'a> StateOfChargeStatusType<'a> {
pub fn date_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "dateTime")))
.map(TimeType)
}
pub fn value(&self) -> Option<PerCent<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(PerCent)
}
}
view!(StorageModeStatusType);
impl<'a> StorageModeStatusType<'a> {
pub fn date_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "dateTime")))
.map(TimeType)
}
pub fn value(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(UInt8)
}
}
view!(AccountBalanceLink);
impl<'a> AccountBalanceLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(ActiveBillingPeriodListLink);
impl<'a> ActiveBillingPeriodListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(ActiveCreditRegisterListLink);
impl<'a> ActiveCreditRegisterListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(ActiveDERControlListLink);
impl<'a> ActiveDERControlListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(ActiveEndDeviceControlListLink);
impl<'a> ActiveEndDeviceControlListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(ActiveFlowReservationListLink);
impl<'a> ActiveFlowReservationListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(ActiveProjectionReadingListLink);
impl<'a> ActiveProjectionReadingListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(ActiveSupplyInterruptionOverrideListLink);
impl<'a> ActiveSupplyInterruptionOverrideListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(ActiveTargetReadingListLink);
impl<'a> ActiveTargetReadingListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(ActiveTextMessageListLink);
impl<'a> ActiveTextMessageListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(ActiveTimeTariffIntervalListLink);
impl<'a> ActiveTimeTariffIntervalListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(AssociatedDERProgramListLink);
impl<'a> AssociatedDERProgramListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(AssociatedUsagePointLink);
impl<'a> AssociatedUsagePointLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(BillingPeriodListLink);
impl<'a> BillingPeriodListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(BillingReadingListLink);
impl<'a> BillingReadingListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(BillingReadingSetListLink);
impl<'a> BillingReadingSetListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(ConfigurationLink);
impl<'a> ConfigurationLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(ConsumptionTariffIntervalListLink);
impl<'a> ConsumptionTariffIntervalListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(CreditRegisterListLink);
impl<'a> CreditRegisterListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(CustomerAccountLink);
impl<'a> CustomerAccountLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(CustomerAccountListLink);
impl<'a> CustomerAccountListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(CustomerAgreementListLink);
impl<'a> CustomerAgreementListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(DemandResponseProgramLink);
impl<'a> DemandResponseProgramLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(DemandResponseProgramListLink);
impl<'a> DemandResponseProgramListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(DERAvailabilityLink);
impl<'a> DERAvailabilityLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(DefaultDERControlLink);
impl<'a> DefaultDERControlLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(DERCapabilityLink);
impl<'a> DERCapabilityLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(DERControlListLink);
impl<'a> DERControlListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(DERCurveLink);
impl<'a> DERCurveLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(DERCurveListLink);
impl<'a> DERCurveListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(DERLink);
impl<'a> DERLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(DERListLink);
impl<'a> DERListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(DERProgramLink);
impl<'a> DERProgramLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(DERProgramListLink);
impl<'a> DERProgramListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(DERSettingsLink);
impl<'a> DERSettingsLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(DERStatusLink);
impl<'a> DERStatusLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(DeviceCapabilityLink);
impl<'a> DeviceCapabilityLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(DeviceInformationLink);
impl<'a> DeviceInformationLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(DeviceStatusLink);
impl<'a> DeviceStatusLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(EndDeviceControlListLink);
impl<'a> EndDeviceControlListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(EndDeviceLink);
impl<'a> EndDeviceLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(EndDeviceListLink);
impl<'a> EndDeviceListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(FileLink);
impl<'a> FileLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(FileListLink);
impl<'a> FileListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(FileStatusLink);
impl<'a> FileStatusLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(FlowReservationRequestListLink);
impl<'a> FlowReservationRequestListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(FlowReservationResponseListLink);
impl<'a> FlowReservationResponseListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(FunctionSetAssignmentsListLink);
impl<'a> FunctionSetAssignmentsListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(HistoricalReadingListLink);
impl<'a> HistoricalReadingListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(IPAddrListLink);
impl<'a> IPAddrListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(IPInterfaceListLink);
impl<'a> IPInterfaceListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(LLInterfaceListLink);
impl<'a> LLInterfaceListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(LoadShedAvailabilityListLink);
impl<'a> LoadShedAvailabilityListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(LogEventListLink);
impl<'a> LogEventListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(MessagingProgramListLink);
impl<'a> MessagingProgramListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(MeterReadingLink);
impl<'a> MeterReadingLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(MeterReadingListLink);
impl<'a> MeterReadingListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(MirrorUsagePointListLink);
impl<'a> MirrorUsagePointListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(NeighborListLink);
impl<'a> NeighborListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(NotificationListLink);
impl<'a> NotificationListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(PowerStatusLink);
impl<'a> PowerStatusLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(PrepaymentLink);
impl<'a> PrepaymentLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(PrepaymentListLink);
impl<'a> PrepaymentListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(PrepayOperationStatusLink);
impl<'a> PrepayOperationStatusLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(PriceResponseCfgListLink);
impl<'a> PriceResponseCfgListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(ProjectionReadingListLink);
impl<'a> ProjectionReadingListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(RateComponentLink);
impl<'a> RateComponentLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(RateComponentListLink);
impl<'a> RateComponentListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(ReadingLink);
impl<'a> ReadingLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(ReadingListLink);
impl<'a> ReadingListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(ReadingSetListLink);
impl<'a> ReadingSetListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(ReadingTypeLink);
impl<'a> ReadingTypeLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(RegistrationLink);
impl<'a> RegistrationLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(ResponseListLink);
impl<'a> ResponseListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(ResponseSetListLink);
impl<'a> ResponseSetListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(RPLInstanceListLink);
impl<'a> RPLInstanceListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(RPLSourceRoutesListLink);
impl<'a> RPLSourceRoutesListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(SelfDeviceLink);
impl<'a> SelfDeviceLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(ServiceSupplierLink);
impl<'a> ServiceSupplierLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(SubscriptionListLink);
impl<'a> SubscriptionListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(SupplyInterruptionOverrideListLink);
impl<'a> SupplyInterruptionOverrideListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(SupportedLocaleListLink);
impl<'a> SupportedLocaleListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(TargetReadingListLink);
impl<'a> TargetReadingListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(TariffProfileLink);
impl<'a> TariffProfileLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(TariffProfileListLink);
impl<'a> TariffProfileListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(TextMessageListLink);
impl<'a> TextMessageListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(TimeLink);
impl<'a> TimeLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(TimeTariffIntervalListLink);
impl<'a> TimeTariffIntervalListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(UsagePointLink);
impl<'a> UsagePointLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
}
view!(UsagePointListLink);
impl<'a> UsagePointListLink<'a> {
pub fn as_base(&self) -> ListLink<'a> {
ListLink(self.0)
}
}
view!(IdentifiedObject);
impl<'a> IdentifiedObject<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn mrid(&self) -> Option<mRIDType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "mRID")))
.map(mRIDType)
}
pub fn description(&self) -> Option<String32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "description")))
.map(String32)
}
pub fn version(&self) -> Option<VersionType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "version")))
.map(VersionType)
}
}
view!(Link);
impl<'a> Link<'a> {
pub fn href(&self) -> Option<&'a str> {
self.0.attribute("href")
}
}
view!(List);
impl<'a> List<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn all(&self) -> Option<&'a str> {
self.0.attribute("all")
}
pub fn results(&self) -> Option<&'a str> {
self.0.attribute("results")
}
}
view!(ListLink);
impl<'a> ListLink<'a> {
pub fn as_base(&self) -> Link<'a> {
Link(self.0)
}
pub fn all(&self) -> Option<&'a str> {
self.0.attribute("all")
}
}
view!(Resource);
impl<'a> Resource<'a> {
pub fn href(&self) -> Option<&'a str> {
self.0.attribute("href")
}
}
view!(RespondableIdentifiedObject);
impl<'a> RespondableIdentifiedObject<'a> {
pub fn as_base(&self) -> RespondableResource<'a> {
RespondableResource(self.0)
}
pub fn mrid(&self) -> Option<mRIDType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "mRID")))
.map(mRIDType)
}
pub fn description(&self) -> Option<String32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "description")))
.map(String32)
}
pub fn version(&self) -> Option<VersionType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "version")))
.map(VersionType)
}
}
view!(RespondableResource);
impl<'a> RespondableResource<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn reply_to(&self) -> Option<&'a str> {
self.0.attribute("replyTo")
}
pub fn response_required(&self) -> Option<&'a str> {
self.0.attribute("responseRequired").or(Some("00"))
}
}
view!(RespondableSubscribableIdentifiedObject);
impl<'a> RespondableSubscribableIdentifiedObject<'a> {
pub fn as_base(&self) -> RespondableResource<'a> {
RespondableResource(self.0)
}
pub fn subscribable(&self) -> Option<&'a str> {
self.0.attribute("subscribable").or(Some("0"))
}
pub fn mrid(&self) -> Option<mRIDType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "mRID")))
.map(mRIDType)
}
pub fn description(&self) -> Option<String32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "description")))
.map(String32)
}
pub fn version(&self) -> Option<VersionType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "version")))
.map(VersionType)
}
}
view!(SubscribableIdentifiedObject);
impl<'a> SubscribableIdentifiedObject<'a> {
pub fn as_base(&self) -> SubscribableResource<'a> {
SubscribableResource(self.0)
}
pub fn mrid(&self) -> Option<mRIDType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "mRID")))
.map(mRIDType)
}
pub fn description(&self) -> Option<String32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "description")))
.map(String32)
}
pub fn version(&self) -> Option<VersionType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "version")))
.map(VersionType)
}
}
view!(SubscribableList);
impl<'a> SubscribableList<'a> {
pub fn as_base(&self) -> SubscribableResource<'a> {
SubscribableResource(self.0)
}
pub fn all(&self) -> Option<&'a str> {
self.0.attribute("all")
}
pub fn results(&self) -> Option<&'a str> {
self.0.attribute("results")
}
}
view!(SubscribableResource);
impl<'a> SubscribableResource<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn subscribable(&self) -> Option<&'a str> {
self.0.attribute("subscribable").or(Some("0"))
}
}
view!(Error);
impl<'a> Error<'a> {
pub fn max_retry_duration(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "maxRetryDuration")))
.map(UInt16)
}
pub fn reason_code(&self) -> Option<UInt16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "reasonCode")))
.map(UInt16)
}
}
view!(Event);
impl<'a> Event<'a> {
pub fn as_base(&self) -> RespondableSubscribableIdentifiedObject<'a> {
RespondableSubscribableIdentifiedObject(self.0)
}
pub fn creation_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "creationTime")))
.map(TimeType)
}
pub fn event_status(&self) -> Option<EventStatus<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "EventStatus")))
.map(EventStatus)
}
pub fn interval(&self) -> Option<DateTimeInterval<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "interval")))
.map(DateTimeInterval)
}
}
view!(EventStatus);
impl<'a> EventStatus<'a> {
pub fn current_status(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "currentStatus")))
.map(UInt8)
}
pub fn date_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "dateTime")))
.map(TimeType)
}
pub fn potentially_superseded(&self) -> Option<Node<'a, 'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "potentiallySuperseded")))
}
pub fn potentially_superseded_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "potentiallySupersededTime")))
.map(TimeType)
}
pub fn reason(&self) -> Option<String192<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "reason")))
.map(String192)
}
}
view!(RandomizableEvent);
impl<'a> RandomizableEvent<'a> {
pub fn as_base(&self) -> Event<'a> {
Event(self.0)
}
pub fn randomize_duration(&self) -> Option<OneHourRangeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "randomizeDuration")))
.map(OneHourRangeType)
}
pub fn randomize_start(&self) -> Option<OneHourRangeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "randomizeStart")))
.map(OneHourRangeType)
}
}
view!(AccumulationBehaviourType);
impl<'a> AccumulationBehaviourType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(ApplianceLoadReductionType);
impl<'a> ApplianceLoadReductionType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(CommodityType);
impl<'a> CommodityType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(ConsumptionBlockType);
impl<'a> ConsumptionBlockType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(CurrencyCode);
impl<'a> CurrencyCode<'a> {
pub fn as_base(&self) -> UInt16<'a> {
UInt16(self.0)
}
pub fn value(&self) -> u16 {
super::integer(self.0)
}
}
view!(DataQualifierType);
impl<'a> DataQualifierType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(DateTimeInterval);
impl<'a> DateTimeInterval<'a> {
pub fn duration(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "duration")))
.map(UInt32)
}
pub fn start(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "start")))
.map(TimeType)
}
}
view!(DeviceCategoryType);
impl<'a> DeviceCategoryType<'a> {
pub fn as_base(&self) -> HexBinary32<'a> {
HexBinary32(self.0)
}
pub fn bytes(&self) -> alloc::vec::Vec<u8> {
super::hex(self.0)
}
}
view!(DstRuleType);
impl<'a> DstRuleType<'a> {
pub fn as_base(&self) -> HexBinary32<'a> {
HexBinary32(self.0)
}
pub fn bytes(&self) -> alloc::vec::Vec<u8> {
super::hex(self.0)
}
}
view!(FlowDirectionType);
impl<'a> FlowDirectionType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(GPSLocationType);
impl<'a> GPSLocationType<'a> {
pub fn lat(&self) -> Option<String32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "lat")))
.map(String32)
}
pub fn lon(&self) -> Option<String32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "lon")))
.map(String32)
}
}
view!(KindType);
impl<'a> KindType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(LocaleType);
impl<'a> LocaleType<'a> {
pub fn as_base(&self) -> String42<'a> {
String42(self.0)
}
pub fn value(&self) -> alloc::borrow::Cow<'a, str> {
crate::codec::element_text(self.0)
}
}
view!(mRIDType);
impl<'a> mRIDType<'a> {
pub fn as_base(&self) -> HexBinary128<'a> {
HexBinary128(self.0)
}
pub fn bytes(&self) -> alloc::vec::Vec<u8> {
super::hex(self.0)
}
}
view!(OneHourRangeType);
impl<'a> OneHourRangeType<'a> {
pub fn as_base(&self) -> Int16<'a> {
Int16(self.0)
}
pub fn value(&self) -> i16 {
super::integer(self.0)
}
}
view!(PENType);
impl<'a> PENType<'a> {
pub fn as_base(&self) -> UInt32<'a> {
UInt32(self.0)
}
pub fn value(&self) -> u32 {
super::integer(self.0)
}
}
view!(PerCent);
impl<'a> PerCent<'a> {
pub fn as_base(&self) -> UInt16<'a> {
UInt16(self.0)
}
pub fn value(&self) -> u16 {
super::integer(self.0)
}
}
view!(PhaseCode);
impl<'a> PhaseCode<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(PINType);
impl<'a> PINType<'a> {
pub fn as_base(&self) -> UInt32<'a> {
UInt32(self.0)
}
pub fn value(&self) -> u32 {
super::integer(self.0)
}
}
view!(PowerOfTenMultiplierType);
impl<'a> PowerOfTenMultiplierType<'a> {
pub fn as_base(&self) -> Int8<'a> {
Int8(self.0)
}
pub fn value(&self) -> i8 {
super::integer(self.0)
}
}
view!(PrimacyType);
impl<'a> PrimacyType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(RealEnergy);
impl<'a> RealEnergy<'a> {
pub fn multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "multiplier")))
.map(PowerOfTenMultiplierType)
}
pub fn value(&self) -> Option<UInt48<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(UInt48)
}
}
view!(RoleFlagsType);
impl<'a> RoleFlagsType<'a> {
pub fn as_base(&self) -> HexBinary16<'a> {
HexBinary16(self.0)
}
pub fn bytes(&self) -> alloc::vec::Vec<u8> {
super::hex(self.0)
}
}
view!(ServiceKind);
impl<'a> ServiceKind<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(SFDIType);
impl<'a> SFDIType<'a> {
pub fn as_base(&self) -> UInt40<'a> {
UInt40(self.0)
}
pub fn value(&self) -> u64 {
super::integer(self.0)
}
}
view!(SignedPerCent);
impl<'a> SignedPerCent<'a> {
pub fn as_base(&self) -> Int16<'a> {
Int16(self.0)
}
pub fn value(&self) -> i16 {
super::integer(self.0)
}
}
view!(SignedRealEnergy);
impl<'a> SignedRealEnergy<'a> {
pub fn multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "multiplier")))
.map(PowerOfTenMultiplierType)
}
pub fn value(&self) -> Option<Int48<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(Int48)
}
}
view!(SubscribableType);
impl<'a> SubscribableType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(TimeOffsetType);
impl<'a> TimeOffsetType<'a> {
pub fn as_base(&self) -> Int32<'a> {
Int32(self.0)
}
pub fn value(&self) -> i32 {
super::integer(self.0)
}
}
view!(TimeType);
impl<'a> TimeType<'a> {
pub fn as_base(&self) -> Int64<'a> {
Int64(self.0)
}
pub fn value(&self) -> i64 {
super::integer(self.0)
}
}
view!(TOUType);
impl<'a> TOUType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(UnitType);
impl<'a> UnitType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(UnitValueType);
impl<'a> UnitValueType<'a> {
pub fn multiplier(&self) -> Option<PowerOfTenMultiplierType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "multiplier")))
.map(PowerOfTenMultiplierType)
}
pub fn unit(&self) -> Option<UomType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "unit")))
.map(UomType)
}
pub fn value(&self) -> Option<Int32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(Int32)
}
}
view!(UomType);
impl<'a> UomType<'a> {
pub fn as_base(&self) -> UInt8<'a> {
UInt8(self.0)
}
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(VersionType);
impl<'a> VersionType<'a> {
pub fn as_base(&self) -> UInt16<'a> {
UInt16(self.0)
}
pub fn value(&self) -> u16 {
super::integer(self.0)
}
}
view!(HexBinary8);
impl<'a> HexBinary8<'a> {
pub fn bytes(&self) -> alloc::vec::Vec<u8> {
super::hex(self.0)
}
}
view!(HexBinary16);
impl<'a> HexBinary16<'a> {
pub fn bytes(&self) -> alloc::vec::Vec<u8> {
super::hex(self.0)
}
}
view!(HexBinary32);
impl<'a> HexBinary32<'a> {
pub fn bytes(&self) -> alloc::vec::Vec<u8> {
super::hex(self.0)
}
}
view!(HexBinary48);
impl<'a> HexBinary48<'a> {
pub fn bytes(&self) -> alloc::vec::Vec<u8> {
super::hex(self.0)
}
}
view!(HexBinary64);
impl<'a> HexBinary64<'a> {
pub fn bytes(&self) -> alloc::vec::Vec<u8> {
super::hex(self.0)
}
}
view!(HexBinary128);
impl<'a> HexBinary128<'a> {
pub fn bytes(&self) -> alloc::vec::Vec<u8> {
super::hex(self.0)
}
}
view!(HexBinary160);
impl<'a> HexBinary160<'a> {
pub fn bytes(&self) -> alloc::vec::Vec<u8> {
super::hex(self.0)
}
}
view!(String6);
impl<'a> String6<'a> {
pub fn value(&self) -> alloc::borrow::Cow<'a, str> {
crate::codec::element_text(self.0)
}
}
view!(String16);
impl<'a> String16<'a> {
pub fn value(&self) -> alloc::borrow::Cow<'a, str> {
crate::codec::element_text(self.0)
}
}
view!(String20);
impl<'a> String20<'a> {
pub fn value(&self) -> alloc::borrow::Cow<'a, str> {
crate::codec::element_text(self.0)
}
}
view!(String32);
impl<'a> String32<'a> {
pub fn value(&self) -> alloc::borrow::Cow<'a, str> {
crate::codec::element_text(self.0)
}
}
view!(String42);
impl<'a> String42<'a> {
pub fn value(&self) -> alloc::borrow::Cow<'a, str> {
crate::codec::element_text(self.0)
}
}
view!(String192);
impl<'a> String192<'a> {
pub fn value(&self) -> alloc::borrow::Cow<'a, str> {
crate::codec::element_text(self.0)
}
}
view!(UInt8);
impl<'a> UInt8<'a> {
pub fn value(&self) -> u8 {
super::integer(self.0)
}
}
view!(UInt16);
impl<'a> UInt16<'a> {
pub fn value(&self) -> u16 {
super::integer(self.0)
}
}
view!(UInt32);
impl<'a> UInt32<'a> {
pub fn value(&self) -> u32 {
super::integer(self.0)
}
}
view!(UInt40);
impl<'a> UInt40<'a> {
pub fn value(&self) -> u64 {
super::integer(self.0)
}
}
view!(UInt48);
impl<'a> UInt48<'a> {
pub fn value(&self) -> u64 {
super::integer(self.0)
}
}
view!(UInt64);
impl<'a> UInt64<'a> {
pub fn value(&self) -> u64 {
super::integer(self.0)
}
}
view!(Int8);
impl<'a> Int8<'a> {
pub fn value(&self) -> i8 {
super::integer(self.0)
}
}
view!(Int16);
impl<'a> Int16<'a> {
pub fn value(&self) -> i16 {
super::integer(self.0)
}
}
view!(Int32);
impl<'a> Int32<'a> {
pub fn value(&self) -> i32 {
super::integer(self.0)
}
}
view!(Int48);
impl<'a> Int48<'a> {
pub fn value(&self) -> i64 {
super::integer(self.0)
}
}
view!(Int64);
impl<'a> Int64<'a> {
pub fn value(&self) -> i64 {
super::integer(self.0)
}
}
view!(MirrorMeterReading);
impl<'a> MirrorMeterReading<'a> {
pub fn as_base(&self) -> MeterReadingBase<'a> {
MeterReadingBase(self.0)
}
pub fn last_update_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "lastUpdateTime")))
.map(TimeType)
}
pub fn mirror_reading_set(&self) -> impl Iterator<Item = MirrorReadingSet<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "MirrorReadingSet")))
.map(MirrorReadingSet)
}
pub fn next_update_time(&self) -> Option<TimeType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "nextUpdateTime")))
.map(TimeType)
}
pub fn reading(&self) -> Option<Reading<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "Reading")))
.map(Reading)
}
pub fn reading_type(&self) -> Option<ReadingType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "ReadingType")))
.map(ReadingType)
}
}
view!(MirrorMeterReadingList);
impl<'a> MirrorMeterReadingList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn mirror_meter_reading(&self) -> impl Iterator<Item = MirrorMeterReading<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "MirrorMeterReading")))
.map(MirrorMeterReading)
}
}
view!(MeterReadingBase);
impl<'a> MeterReadingBase<'a> {
pub fn as_base(&self) -> IdentifiedObject<'a> {
IdentifiedObject(self.0)
}
}
view!(MirrorReadingSet);
impl<'a> MirrorReadingSet<'a> {
pub fn as_base(&self) -> ReadingSetBase<'a> {
ReadingSetBase(self.0)
}
pub fn reading(&self) -> impl Iterator<Item = Reading<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "Reading")))
.map(Reading)
}
}
view!(MirrorUsagePoint);
impl<'a> MirrorUsagePoint<'a> {
pub fn as_base(&self) -> UsagePointBase<'a> {
UsagePointBase(self.0)
}
pub fn device_lfdi(&self) -> Option<HexBinary160<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "deviceLFDI")))
.map(HexBinary160)
}
pub fn mirror_meter_reading(&self) -> impl Iterator<Item = MirrorMeterReading<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "MirrorMeterReading")))
.map(MirrorMeterReading)
}
pub fn post_rate(&self) -> Option<UInt32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "postRate")))
.map(UInt32)
}
}
view!(MirrorUsagePointList);
impl<'a> MirrorUsagePointList<'a> {
pub fn as_base(&self) -> List<'a> {
List(self.0)
}
pub fn poll_rate(&self) -> Option<&'a str> {
self.0.attribute("pollRate").or(Some("900"))
}
pub fn mirror_usage_point(&self) -> impl Iterator<Item = MirrorUsagePoint<'a>> + 'a {
self.0
.children()
.filter(|n| n.has_tag_name((SEP, "MirrorUsagePoint")))
.map(MirrorUsagePoint)
}
}
view!(ReadingBase);
impl<'a> ReadingBase<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn consumption_block(&self) -> Option<ConsumptionBlockType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "consumptionBlock")))
.map(ConsumptionBlockType)
}
pub fn quality_flags(&self) -> Option<HexBinary16<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "qualityFlags")))
.map(HexBinary16)
}
pub fn time_period(&self) -> Option<DateTimeInterval<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "timePeriod")))
.map(DateTimeInterval)
}
pub fn tou_tier(&self) -> Option<TOUType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "touTier")))
.map(TOUType)
}
pub fn value(&self) -> Option<Int48<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "value")))
.map(Int48)
}
}
view!(ReadingSetBase);
impl<'a> ReadingSetBase<'a> {
pub fn as_base(&self) -> IdentifiedObject<'a> {
IdentifiedObject(self.0)
}
pub fn time_period(&self) -> Option<DateTimeInterval<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "timePeriod")))
.map(DateTimeInterval)
}
}
view!(UsagePointBase);
impl<'a> UsagePointBase<'a> {
pub fn as_base(&self) -> IdentifiedObject<'a> {
IdentifiedObject(self.0)
}
pub fn role_flags(&self) -> Option<RoleFlagsType<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "roleFlags")))
.map(RoleFlagsType)
}
pub fn service_category_kind(&self) -> Option<ServiceKind<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "serviceCategoryKind")))
.map(ServiceKind)
}
pub fn status(&self) -> Option<UInt8<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((SEP, "status")))
.map(UInt8)
}
}
#[cfg(feature = "csip-aus")]
view!(DOEControlType);
#[cfg(feature = "csip-aus")]
impl<'a> DOEControlType<'a> {
pub fn as_base(&self) -> HexBinary8<'a> {
HexBinary8(self.0)
}
pub fn bytes(&self) -> alloc::vec::Vec<u8> {
super::hex(self.0)
}
}
#[cfg(feature = "csip-aus")]
view!(ConnectionPointType);
#[cfg(feature = "csip-aus")]
impl<'a> ConnectionPointType<'a> {
pub fn as_base(&self) -> Resource<'a> {
Resource(self.0)
}
pub fn connection_point_id(&self) -> Option<String32<'a>> {
self.0
.children()
.find(|n| n.has_tag_name((AUS, "connectionPointId")))
.map(String32)
}
}
pub(crate) fn shape(name: &str) -> Option<&'static Shape> {
named_shape(name).map(|(_, s)| s)
}
pub(crate) fn named_shape(name: &str) -> Option<(&'static str, &'static Shape)> {
match name {
"DeviceCapability" => Some((
"DeviceCapability",
&Shape {
ns: SEP,
base: "FunctionSetAssignmentsBase",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[
Member {
ns: SEP,
name: "EndDeviceListLink",
ty: "EndDeviceListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "MirrorUsagePointListLink",
ty: "MirrorUsagePointListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "SelfDeviceLink",
ty: "SelfDeviceLink",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"AbstractDevice" => Some((
"AbstractDevice",
&Shape {
ns: SEP,
base: "SubscribableResource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "ConfigurationLink",
ty: "ConfigurationLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "DERListLink",
ty: "DERListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "deviceCategory",
ty: "DeviceCategoryType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "DeviceInformationLink",
ty: "DeviceInformationLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "DeviceStatusLink",
ty: "DeviceStatusLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "FileStatusLink",
ty: "FileStatusLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "IPInterfaceListLink",
ty: "IPInterfaceListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "lFDI",
ty: "HexBinary160",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "LoadShedAvailabilityListLink",
ty: "LoadShedAvailabilityListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "LogEventListLink",
ty: "LogEventListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "PowerStatusLink",
ty: "PowerStatusLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "sFDI",
ty: "SFDIType",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"DeviceStatus" => Some((
"DeviceStatus",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[
Member {
ns: SEP,
name: "changedTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "onCount",
ty: "UInt16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opState",
ty: "UInt8",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opTime",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "Temperature",
ty: "Temperature",
min: 0,
max: usize::MAX,
},
Member {
ns: SEP,
name: "TimeLink",
ty: "TimeLink",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"EndDevice" => Some((
"EndDevice",
&Shape {
ns: SEP,
base: "AbstractDevice",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "changedTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "enabled",
ty: "xs:boolean",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "FlowReservationRequestListLink",
ty: "FlowReservationRequestListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "FlowReservationResponseListLink",
ty: "FlowReservationResponseListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "FunctionSetAssignmentsListLink",
ty: "FunctionSetAssignmentsListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "postRate",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "RegistrationLink",
ty: "RegistrationLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "SubscriptionListLink",
ty: "SubscriptionListLink",
min: 0,
max: 1,
},
#[cfg(feature = "csip-aus")]
Member {
ns: AUS,
name: "ConnectionPointLink",
ty: "Link",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"EndDeviceList" => Some((
"EndDeviceList",
&Shape {
ns: SEP,
base: "SubscribableList",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[Member {
ns: SEP,
name: "EndDevice",
ty: "EndDevice",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"Registration" => Some((
"Registration",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[
Member {
ns: SEP,
name: "dateTimeRegistered",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "pIN",
ty: "PINType",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"SelfDevice" => Some((
"SelfDevice",
&Shape {
ns: SEP,
base: "AbstractDevice",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"Temperature" => Some((
"Temperature",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "multiplier",
ty: "PowerOfTenMultiplierType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "subject",
ty: "UInt8",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "Int16",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"FunctionSetAssignmentsBase" => Some((
"FunctionSetAssignmentsBase",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "CustomerAccountListLink",
ty: "CustomerAccountListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "DemandResponseProgramListLink",
ty: "DemandResponseProgramListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "DERProgramListLink",
ty: "DERProgramListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "FileListLink",
ty: "FileListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "MessagingProgramListLink",
ty: "MessagingProgramListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "PrepaymentListLink",
ty: "PrepaymentListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ResponseSetListLink",
ty: "ResponseSetListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "TariffProfileListLink",
ty: "TariffProfileListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "TimeLink",
ty: "TimeLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "UsagePointListLink",
ty: "UsagePointListLink",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"FunctionSetAssignments" => Some((
"FunctionSetAssignments",
&Shape {
ns: SEP,
base: "FunctionSetAssignmentsBase",
attrs: &[Attribute {
name: "subscribable",
ty: "SubscribableType",
required: false,
}],
members: &[
Member {
ns: SEP,
name: "mRID",
ty: "mRIDType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "description",
ty: "String32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "version",
ty: "VersionType",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"FunctionSetAssignmentsList" => Some((
"FunctionSetAssignmentsList",
&Shape {
ns: SEP,
base: "SubscribableList",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[Member {
ns: SEP,
name: "FunctionSetAssignments",
ty: "FunctionSetAssignments",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"Condition" => Some((
"Condition",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "attributeIdentifier",
ty: "UInt8",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "lowerThreshold",
ty: "Int48",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "upperThreshold",
ty: "Int48",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"SubscriptionBase" => Some((
"SubscriptionBase",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[Member {
ns: SEP,
name: "subscribedResource",
ty: "xs:anyURI",
min: 1,
max: 1,
}],
max_len: None,
min: None,
max: None,
},
)),
"Subscription" => Some((
"Subscription",
&Shape {
ns: SEP,
base: "SubscriptionBase",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "Condition",
ty: "Condition",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "encoding",
ty: "UInt8",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "level",
ty: "String16",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "limit",
ty: "UInt32",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "notificationURI",
ty: "xs:anyURI",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"SubscriptionList" => Some((
"SubscriptionList",
&Shape {
ns: SEP,
base: "List",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[Member {
ns: SEP,
name: "Subscription",
ty: "Subscription",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"Notification" => Some((
"Notification",
&Shape {
ns: SEP,
base: "SubscriptionBase",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "newResourceURI",
ty: "xs:anyURI",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "Resource",
ty: "Resource",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "status",
ty: "UInt8",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "subscriptionURI",
ty: "xs:anyURI",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"NotificationList" => Some((
"NotificationList",
&Shape {
ns: SEP,
base: "List",
attrs: &[],
members: &[Member {
ns: SEP,
name: "Notification",
ty: "Notification",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"DERControlResponse" => Some((
"DERControlResponse",
&Shape {
ns: SEP,
base: "Response",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"FlowReservationResponseResponse" => Some((
"FlowReservationResponseResponse",
&Shape {
ns: SEP,
base: "Response",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"AppliedTargetReduction" => Some((
"AppliedTargetReduction",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "type",
ty: "UnitType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "UInt16",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"DrResponse" => Some((
"DrResponse",
&Shape {
ns: SEP,
base: "Response",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "ApplianceLoadReduction",
ty: "ApplianceLoadReduction",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "AppliedTargetReduction",
ty: "AppliedTargetReduction",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "DutyCycle",
ty: "DutyCycle",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "Offset",
ty: "Offset",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "overrideDuration",
ty: "UInt16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "SetPoint",
ty: "SetPoint",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"PriceResponse" => Some((
"PriceResponse",
&Shape {
ns: SEP,
base: "Response",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"Response" => Some((
"Response",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "createdDateTime",
ty: "TimeType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "endDeviceLFDI",
ty: "HexBinary160",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "status",
ty: "UInt8",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "subject",
ty: "mRIDType",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"ResponseList" => Some((
"ResponseList",
&Shape {
ns: SEP,
base: "List",
attrs: &[],
members: &[Member {
ns: SEP,
name: "Response",
ty: "Response",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"ResponseSet" => Some((
"ResponseSet",
&Shape {
ns: SEP,
base: "IdentifiedObject",
attrs: &[],
members: &[Member {
ns: SEP,
name: "ResponseListLink",
ty: "ResponseListLink",
min: 0,
max: 1,
}],
max_len: None,
min: None,
max: None,
},
)),
"ResponseSetList" => Some((
"ResponseSetList",
&Shape {
ns: SEP,
base: "List",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[Member {
ns: SEP,
name: "ResponseSet",
ty: "ResponseSet",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"TextResponse" => Some((
"TextResponse",
&Shape {
ns: SEP,
base: "Response",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"Time" => Some((
"Time",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[
Member {
ns: SEP,
name: "currentTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "dstEndTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "dstOffset",
ty: "TimeOffsetType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "dstStartTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "localTime",
ty: "TimeType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "quality",
ty: "UInt8",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "tzOffset",
ty: "TimeOffsetType",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"DeviceInformation" => Some((
"DeviceInformation",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[
Member {
ns: SEP,
name: "DRLCCapabilities",
ty: "DRLCCapabilities",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "functionsImplemented",
ty: "HexBinary64",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "gpsLocation",
ty: "GPSLocationType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "lFDI",
ty: "HexBinary160",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "mfDate",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "mfHwVer",
ty: "String32",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "mfID",
ty: "PENType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "mfInfo",
ty: "String32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "mfModel",
ty: "String32",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "mfSerNum",
ty: "String32",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "primaryPower",
ty: "PowerSourceType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "secondaryPower",
ty: "PowerSourceType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "SupportedLocaleListLink",
ty: "SupportedLocaleListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "swActTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "swVer",
ty: "String32",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"DRLCCapabilities" => Some((
"DRLCCapabilities",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "averageEnergy",
ty: "RealEnergy",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "maxDemand",
ty: "ActivePower",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "optionsImplemented",
ty: "HexBinary32",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"SupportedLocale" => Some((
"SupportedLocale",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[Member {
ns: SEP,
name: "locale",
ty: "LocaleType",
min: 1,
max: 1,
}],
max_len: None,
min: None,
max: None,
},
)),
"SupportedLocaleList" => Some((
"SupportedLocaleList",
&Shape {
ns: SEP,
base: "List",
attrs: &[],
members: &[Member {
ns: SEP,
name: "SupportedLocale",
ty: "SupportedLocale",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"PowerStatus" => Some((
"PowerStatus",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[
Member {
ns: SEP,
name: "batteryStatus",
ty: "UInt8",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "changedTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "currentPowerSource",
ty: "PowerSourceType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "estimatedChargeRemaining",
ty: "PerCent",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "estimatedTimeRemaining",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "PEVInfo",
ty: "PEVInfo",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "sessionTimeOnBattery",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "totalTimeOnBattery",
ty: "UInt32",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"PowerSourceType" => Some((
"PowerSourceType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"PEVInfo" => Some((
"PEVInfo",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "chargingPowerNow",
ty: "ActivePower",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "energyRequestNow",
ty: "RealEnergy",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "maxForwardPower",
ty: "ActivePower",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "minimumChargingDuration",
ty: "UInt32",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "targetStateOfCharge",
ty: "PerCent",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "timeChargeIsNeeded",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "timeChargingStatusPEV",
ty: "TimeType",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"IEEE_802_15_4" => Some((
"IEEE_802_15_4",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "capabilityInfo",
ty: "HexBinary8",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "NeighborListLink",
ty: "NeighborListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "shortAddress",
ty: "UInt16",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"IPAddr" => Some((
"IPAddr",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "address",
ty: "HexBinary128",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "RPLInstanceListLink",
ty: "RPLInstanceListLink",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"IPAddrList" => Some((
"IPAddrList",
&Shape {
ns: SEP,
base: "List",
attrs: &[],
members: &[Member {
ns: SEP,
name: "IPAddr",
ty: "IPAddr",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"IPInterface" => Some((
"IPInterface",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "ifDescr",
ty: "String192",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ifHighSpeed",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ifInBroadcastPkts",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ifIndex",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ifInDiscards",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ifInErrors",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ifInMulticastPkts",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ifInOctets",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ifInUcastPkts",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ifInUnknownProtos",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ifMtu",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ifName",
ty: "String16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ifOperStatus",
ty: "UInt8",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ifOutBroadcastPkts",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ifOutDiscards",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ifOutErrors",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ifOutMulticastPkts",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ifOutOctets",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ifOutUcastPkts",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ifPromiscuousMode",
ty: "xs:boolean",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ifSpeed",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ifType",
ty: "UInt16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "IPAddrListLink",
ty: "IPAddrListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "lastResetTime",
ty: "Int64",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "lastUpdatedTime",
ty: "Int64",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "LLInterfaceListLink",
ty: "LLInterfaceListLink",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"IPInterfaceList" => Some((
"IPInterfaceList",
&Shape {
ns: SEP,
base: "List",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[Member {
ns: SEP,
name: "IPInterface",
ty: "IPInterface",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"LLInterface" => Some((
"LLInterface",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "CRCerrors",
ty: "UInt32",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "EUI64",
ty: "HexBinary64",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "IEEE_802_15_4",
ty: "IEEE_802_15_4",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "linkLayerType",
ty: "UInt8",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "LLAckNotRx",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "LLCSMAFail",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "LLFramesDropRx",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "LLFramesDropTx",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "LLFramesRx",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "LLFramesTx",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "LLMediaAccessFail",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "LLOctetsRx",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "LLOctetsTx",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "LLRetryCount",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "LLSecurityErrorRx",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "loWPAN",
ty: "loWPAN",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"LLInterfaceList" => Some((
"LLInterfaceList",
&Shape {
ns: SEP,
base: "List",
attrs: &[],
members: &[Member {
ns: SEP,
name: "LLInterface",
ty: "LLInterface",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"loWPAN" => Some((
"loWPAN",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "octetsRx",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "octetsTx",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "packetsRx",
ty: "UInt32",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "packetsTx",
ty: "UInt32",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "rxFragError",
ty: "UInt32",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"Neighbor" => Some((
"Neighbor",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "isChild",
ty: "xs:boolean",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "linkQuality",
ty: "UInt8",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "shortAddress",
ty: "UInt16",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"NeighborList" => Some((
"NeighborList",
&Shape {
ns: SEP,
base: "List",
attrs: &[],
members: &[Member {
ns: SEP,
name: "Neighbor",
ty: "Neighbor",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"RPLInstance" => Some((
"RPLInstance",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "DODAGid",
ty: "UInt8",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "DODAGroot",
ty: "xs:boolean",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "flags",
ty: "UInt8",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "groundedFlag",
ty: "xs:boolean",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "MOP",
ty: "UInt8",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "PRF",
ty: "UInt8",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "rank",
ty: "UInt16",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "RPLInstanceID",
ty: "UInt8",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "RPLSourceRoutesListLink",
ty: "RPLSourceRoutesListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "versionNumber",
ty: "UInt8",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"RPLInstanceList" => Some((
"RPLInstanceList",
&Shape {
ns: SEP,
base: "List",
attrs: &[],
members: &[Member {
ns: SEP,
name: "RPLInstance",
ty: "RPLInstance",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"RPLSourceRoutes" => Some((
"RPLSourceRoutes",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "DestAddress",
ty: "HexBinary128",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "SourceRoute",
ty: "HexBinary128",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"RPLSourceRoutesList" => Some((
"RPLSourceRoutesList",
&Shape {
ns: SEP,
base: "List",
attrs: &[],
members: &[Member {
ns: SEP,
name: "RPLSourceRoutes",
ty: "RPLSourceRoutes",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"LogEvent" => Some((
"LogEvent",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "createdDateTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "details",
ty: "String32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "extendedData",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "functionSet",
ty: "UInt8",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "logEventCode",
ty: "UInt8",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "logEventID",
ty: "UInt16",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "logEventPEN",
ty: "PENType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "profileID",
ty: "UInt8",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"LogEventList" => Some((
"LogEventList",
&Shape {
ns: SEP,
base: "SubscribableList",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[Member {
ns: SEP,
name: "LogEvent",
ty: "LogEvent",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"Configuration" => Some((
"Configuration",
&Shape {
ns: SEP,
base: "SubscribableResource",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[
Member {
ns: SEP,
name: "currentLocale",
ty: "LocaleType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "PowerConfiguration",
ty: "PowerConfiguration",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "PriceResponseCfgListLink",
ty: "PriceResponseCfgListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "TimeConfiguration",
ty: "TimeConfiguration",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "userDeviceName",
ty: "String32",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"PowerConfiguration" => Some((
"PowerConfiguration",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "batteryInstallTime",
ty: "TimeType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "lowChargeThreshold",
ty: "UInt32",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"PriceResponseCfg" => Some((
"PriceResponseCfg",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "consumeThreshold",
ty: "Int32",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "maxReductionThreshold",
ty: "Int32",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "RateComponentLink",
ty: "RateComponentLink",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"PriceResponseCfgList" => Some((
"PriceResponseCfgList",
&Shape {
ns: SEP,
base: "List",
attrs: &[],
members: &[Member {
ns: SEP,
name: "PriceResponseCfg",
ty: "PriceResponseCfg",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"TimeConfiguration" => Some((
"TimeConfiguration",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "dstEndRule",
ty: "DstRuleType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "dstOffset",
ty: "TimeOffsetType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "dstStartRule",
ty: "DstRuleType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "tzOffset",
ty: "TimeOffsetType",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"File" => Some((
"File",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "activateTime",
ty: "TimeType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "fileURI",
ty: "xs:anyURI",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "lFDI",
ty: "HexBinary160",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "mfHwVer",
ty: "String32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "mfID",
ty: "PENType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "mfModel",
ty: "String32",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "mfSerNum",
ty: "String32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "mfVer",
ty: "String16",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "size",
ty: "UInt32",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "type",
ty: "HexBinary16",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"FileList" => Some((
"FileList",
&Shape {
ns: SEP,
base: "List",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[Member {
ns: SEP,
name: "File",
ty: "File",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"FileStatus" => Some((
"FileStatus",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[
Member {
ns: SEP,
name: "activateTime",
ty: "TimeType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "FileLink",
ty: "FileLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "loadPercent",
ty: "UInt8",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "nextRequestAttempt",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "request503Count",
ty: "UInt16",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "requestFailCount",
ty: "UInt16",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "status",
ty: "UInt8",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "statusTime",
ty: "TimeType",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"LoadShedAvailabilityList" => Some((
"LoadShedAvailabilityList",
&Shape {
ns: SEP,
base: "List",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[Member {
ns: SEP,
name: "LoadShedAvailability",
ty: "LoadShedAvailability",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"ApplianceLoadReduction" => Some((
"ApplianceLoadReduction",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[Member {
ns: SEP,
name: "type",
ty: "ApplianceLoadReductionType",
min: 1,
max: 1,
}],
max_len: None,
min: None,
max: None,
},
)),
"DemandResponseProgram" => Some((
"DemandResponseProgram",
&Shape {
ns: SEP,
base: "IdentifiedObject",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "ActiveEndDeviceControlListLink",
ty: "ActiveEndDeviceControlListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "availabilityUpdatePercentChangeThreshold",
ty: "PerCent",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "availabilityUpdatePowerChangeThreshold",
ty: "ActivePower",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "EndDeviceControlListLink",
ty: "EndDeviceControlListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "primacy",
ty: "PrimacyType",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"DemandResponseProgramList" => Some((
"DemandResponseProgramList",
&Shape {
ns: SEP,
base: "SubscribableList",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[Member {
ns: SEP,
name: "DemandResponseProgram",
ty: "DemandResponseProgram",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"DutyCycle" => Some((
"DutyCycle",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[Member {
ns: SEP,
name: "normalValue",
ty: "UInt8",
min: 1,
max: 1,
}],
max_len: None,
min: None,
max: None,
},
)),
"EndDeviceControl" => Some((
"EndDeviceControl",
&Shape {
ns: SEP,
base: "RandomizableEvent",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "ApplianceLoadReduction",
ty: "ApplianceLoadReduction",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "deviceCategory",
ty: "DeviceCategoryType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "drProgramMandatory",
ty: "xs:boolean",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "DutyCycle",
ty: "DutyCycle",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "loadShiftForward",
ty: "xs:boolean",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "Offset",
ty: "Offset",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "overrideDuration",
ty: "UInt16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "SetPoint",
ty: "SetPoint",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "TargetReduction",
ty: "TargetReduction",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"EndDeviceControlList" => Some((
"EndDeviceControlList",
&Shape {
ns: SEP,
base: "SubscribableList",
attrs: &[],
members: &[Member {
ns: SEP,
name: "EndDeviceControl",
ty: "EndDeviceControl",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"LoadShedAvailability" => Some((
"LoadShedAvailability",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "availabilityDuration",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "DemandResponseProgramLink",
ty: "DemandResponseProgramLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "sheddablePercent",
ty: "PerCent",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "sheddablePower",
ty: "ActivePower",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"Offset" => Some((
"Offset",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "coolingOffset",
ty: "UInt8",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "heatingOffset",
ty: "UInt8",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "loadAdjustmentPercentageOffset",
ty: "PerCent",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"SetPoint" => Some((
"SetPoint",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "coolingSetpoint",
ty: "Int16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "heatingSetpoint",
ty: "Int16",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"TargetReduction" => Some((
"TargetReduction",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "type",
ty: "UnitType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "UInt16",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"MeterReading" => Some((
"MeterReading",
&Shape {
ns: SEP,
base: "MeterReadingBase",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "RateComponentListLink",
ty: "RateComponentListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ReadingLink",
ty: "ReadingLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ReadingSetListLink",
ty: "ReadingSetListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ReadingTypeLink",
ty: "ReadingTypeLink",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"MeterReadingList" => Some((
"MeterReadingList",
&Shape {
ns: SEP,
base: "SubscribableList",
attrs: &[],
members: &[Member {
ns: SEP,
name: "MeterReading",
ty: "MeterReading",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"Reading" => Some((
"Reading",
&Shape {
ns: SEP,
base: "ReadingBase",
attrs: &[Attribute {
name: "subscribable",
ty: "SubscribableType",
required: false,
}],
members: &[Member {
ns: SEP,
name: "localID",
ty: "HexBinary16",
min: 0,
max: 1,
}],
max_len: None,
min: None,
max: None,
},
)),
"ReadingList" => Some((
"ReadingList",
&Shape {
ns: SEP,
base: "SubscribableList",
attrs: &[],
members: &[Member {
ns: SEP,
name: "Reading",
ty: "Reading",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"ReadingSet" => Some((
"ReadingSet",
&Shape {
ns: SEP,
base: "ReadingSetBase",
attrs: &[],
members: &[Member {
ns: SEP,
name: "ReadingListLink",
ty: "ReadingListLink",
min: 0,
max: 1,
}],
max_len: None,
min: None,
max: None,
},
)),
"ReadingSetList" => Some((
"ReadingSetList",
&Shape {
ns: SEP,
base: "SubscribableList",
attrs: &[],
members: &[Member {
ns: SEP,
name: "ReadingSet",
ty: "ReadingSet",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"ReadingType" => Some((
"ReadingType",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "accumulationBehaviour",
ty: "AccumulationBehaviourType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "calorificValue",
ty: "UnitValueType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "commodity",
ty: "CommodityType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "conversionFactor",
ty: "UnitValueType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "dataQualifier",
ty: "DataQualifierType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "flowDirection",
ty: "FlowDirectionType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "intervalLength",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "kind",
ty: "KindType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "maxNumberOfIntervals",
ty: "UInt8",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "numberOfConsumptionBlocks",
ty: "UInt8",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "numberOfTouTiers",
ty: "UInt8",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "phase",
ty: "PhaseCode",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "powerOfTenMultiplier",
ty: "PowerOfTenMultiplierType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "subIntervalLength",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "supplyLimit",
ty: "UInt48",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "tieredConsumptionBlocks",
ty: "xs:boolean",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "uom",
ty: "UomType",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"UsagePoint" => Some((
"UsagePoint",
&Shape {
ns: SEP,
base: "UsagePointBase",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "deviceLFDI",
ty: "HexBinary160",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "MeterReadingListLink",
ty: "MeterReadingListLink",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"UsagePointList" => Some((
"UsagePointList",
&Shape {
ns: SEP,
base: "SubscribableList",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[Member {
ns: SEP,
name: "UsagePoint",
ty: "UsagePoint",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"ConsumptionTariffInterval" => Some((
"ConsumptionTariffInterval",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "consumptionBlock",
ty: "ConsumptionBlockType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "EnvironmentalCost",
ty: "EnvironmentalCost",
min: 0,
max: usize::MAX,
},
Member {
ns: SEP,
name: "price",
ty: "Int32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "startValue",
ty: "UInt48",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"ConsumptionTariffIntervalList" => Some((
"ConsumptionTariffIntervalList",
&Shape {
ns: SEP,
base: "List",
attrs: &[],
members: &[Member {
ns: SEP,
name: "ConsumptionTariffInterval",
ty: "ConsumptionTariffInterval",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"CostKindType" => Some((
"CostKindType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"EnvironmentalCost" => Some((
"EnvironmentalCost",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "amount",
ty: "UInt32",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "costKind",
ty: "CostKindType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "costLevel",
ty: "UInt8",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "numCostLevels",
ty: "UInt8",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"RateComponent" => Some((
"RateComponent",
&Shape {
ns: SEP,
base: "IdentifiedObject",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "ActiveTimeTariffIntervalListLink",
ty: "ActiveTimeTariffIntervalListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "flowRateEndLimit",
ty: "UnitValueType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "flowRateStartLimit",
ty: "UnitValueType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ReadingTypeLink",
ty: "ReadingTypeLink",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "roleFlags",
ty: "RoleFlagsType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "TimeTariffIntervalListLink",
ty: "TimeTariffIntervalListLink",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"RateComponentList" => Some((
"RateComponentList",
&Shape {
ns: SEP,
base: "List",
attrs: &[],
members: &[Member {
ns: SEP,
name: "RateComponent",
ty: "RateComponent",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"TariffProfile" => Some((
"TariffProfile",
&Shape {
ns: SEP,
base: "IdentifiedObject",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "currency",
ty: "CurrencyCode",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "pricePowerOfTenMultiplier",
ty: "PowerOfTenMultiplierType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "primacy",
ty: "PrimacyType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "rateCode",
ty: "String20",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "RateComponentListLink",
ty: "RateComponentListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "serviceCategoryKind",
ty: "ServiceKind",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"TariffProfileList" => Some((
"TariffProfileList",
&Shape {
ns: SEP,
base: "SubscribableList",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[Member {
ns: SEP,
name: "TariffProfile",
ty: "TariffProfile",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"TimeTariffInterval" => Some((
"TimeTariffInterval",
&Shape {
ns: SEP,
base: "RandomizableEvent",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "ConsumptionTariffIntervalListLink",
ty: "ConsumptionTariffIntervalListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "touTier",
ty: "TOUType",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"TimeTariffIntervalList" => Some((
"TimeTariffIntervalList",
&Shape {
ns: SEP,
base: "SubscribableList",
attrs: &[],
members: &[Member {
ns: SEP,
name: "TimeTariffInterval",
ty: "TimeTariffInterval",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"MessagingProgram" => Some((
"MessagingProgram",
&Shape {
ns: SEP,
base: "SubscribableIdentifiedObject",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "ActiveTextMessageListLink",
ty: "ActiveTextMessageListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "locale",
ty: "LocaleType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "primacy",
ty: "PrimacyType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "TextMessageListLink",
ty: "TextMessageListLink",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"MessagingProgramList" => Some((
"MessagingProgramList",
&Shape {
ns: SEP,
base: "SubscribableList",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[Member {
ns: SEP,
name: "MessagingProgram",
ty: "MessagingProgram",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"PriorityType" => Some((
"PriorityType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"TextMessage" => Some((
"TextMessage",
&Shape {
ns: SEP,
base: "Event",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "originator",
ty: "String20",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "priority",
ty: "PriorityType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "textMessage",
ty: "xs:string",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"TextMessageList" => Some((
"TextMessageList",
&Shape {
ns: SEP,
base: "SubscribableList",
attrs: &[],
members: &[Member {
ns: SEP,
name: "TextMessage",
ty: "TextMessage",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"BillingPeriod" => Some((
"BillingPeriod",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "billLastPeriod",
ty: "Int48",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "billToDate",
ty: "Int48",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "interval",
ty: "DateTimeInterval",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "statusTimeStamp",
ty: "TimeType",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"BillingPeriodList" => Some((
"BillingPeriodList",
&Shape {
ns: SEP,
base: "SubscribableList",
attrs: &[],
members: &[Member {
ns: SEP,
name: "BillingPeriod",
ty: "BillingPeriod",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"BillingMeterReadingBase" => Some((
"BillingMeterReadingBase",
&Shape {
ns: SEP,
base: "MeterReadingBase",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "BillingReadingSetListLink",
ty: "BillingReadingSetListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ReadingTypeLink",
ty: "ReadingTypeLink",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"BillingReading" => Some((
"BillingReading",
&Shape {
ns: SEP,
base: "ReadingBase",
attrs: &[],
members: &[Member {
ns: SEP,
name: "Charge",
ty: "Charge",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"BillingReadingList" => Some((
"BillingReadingList",
&Shape {
ns: SEP,
base: "List",
attrs: &[],
members: &[Member {
ns: SEP,
name: "BillingReading",
ty: "BillingReading",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"BillingReadingSet" => Some((
"BillingReadingSet",
&Shape {
ns: SEP,
base: "ReadingSetBase",
attrs: &[],
members: &[Member {
ns: SEP,
name: "BillingReadingListLink",
ty: "BillingReadingListLink",
min: 0,
max: 1,
}],
max_len: None,
min: None,
max: None,
},
)),
"BillingReadingSetList" => Some((
"BillingReadingSetList",
&Shape {
ns: SEP,
base: "SubscribableList",
attrs: &[],
members: &[Member {
ns: SEP,
name: "BillingReadingSet",
ty: "BillingReadingSet",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"Charge" => Some((
"Charge",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "description",
ty: "String20",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "kind",
ty: "ChargeKind",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "Int32",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"ChargeKind" => Some((
"ChargeKind",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"CustomerAccount" => Some((
"CustomerAccount",
&Shape {
ns: SEP,
base: "IdentifiedObject",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "currency",
ty: "UInt16",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "customerAccount",
ty: "String42",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "CustomerAgreementListLink",
ty: "CustomerAgreementListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "customerName",
ty: "String42",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "pricePowerOfTenMultiplier",
ty: "PowerOfTenMultiplierType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "ServiceSupplierLink",
ty: "ServiceSupplierLink",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"CustomerAccountList" => Some((
"CustomerAccountList",
&Shape {
ns: SEP,
base: "SubscribableList",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[Member {
ns: SEP,
name: "CustomerAccount",
ty: "CustomerAccount",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"CustomerAgreement" => Some((
"CustomerAgreement",
&Shape {
ns: SEP,
base: "IdentifiedObject",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "ActiveBillingPeriodListLink",
ty: "ActiveBillingPeriodListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ActiveProjectionReadingListLink",
ty: "ActiveProjectionReadingListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ActiveTargetReadingListLink",
ty: "ActiveTargetReadingListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "BillingPeriodListLink",
ty: "BillingPeriodListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "HistoricalReadingListLink",
ty: "HistoricalReadingListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "PrepaymentLink",
ty: "PrepaymentLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ProjectionReadingListLink",
ty: "ProjectionReadingListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "serviceAccount",
ty: "String42",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "serviceLocation",
ty: "String42",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "TargetReadingListLink",
ty: "TargetReadingListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "TariffProfileLink",
ty: "TariffProfileLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "UsagePointLink",
ty: "UsagePointLink",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"CustomerAgreementList" => Some((
"CustomerAgreementList",
&Shape {
ns: SEP,
base: "SubscribableList",
attrs: &[],
members: &[Member {
ns: SEP,
name: "CustomerAgreement",
ty: "CustomerAgreement",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"HistoricalReading" => Some((
"HistoricalReading",
&Shape {
ns: SEP,
base: "BillingMeterReadingBase",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"HistoricalReadingList" => Some((
"HistoricalReadingList",
&Shape {
ns: SEP,
base: "List",
attrs: &[],
members: &[Member {
ns: SEP,
name: "HistoricalReading",
ty: "HistoricalReading",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"ProjectionReading" => Some((
"ProjectionReading",
&Shape {
ns: SEP,
base: "BillingMeterReadingBase",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ProjectionReadingList" => Some((
"ProjectionReadingList",
&Shape {
ns: SEP,
base: "List",
attrs: &[],
members: &[Member {
ns: SEP,
name: "ProjectionReading",
ty: "ProjectionReading",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"TargetReading" => Some((
"TargetReading",
&Shape {
ns: SEP,
base: "BillingMeterReadingBase",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"TargetReadingList" => Some((
"TargetReadingList",
&Shape {
ns: SEP,
base: "List",
attrs: &[],
members: &[Member {
ns: SEP,
name: "TargetReading",
ty: "TargetReading",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"ServiceSupplier" => Some((
"ServiceSupplier",
&Shape {
ns: SEP,
base: "IdentifiedObject",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "email",
ty: "String32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "phone",
ty: "String20",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "providerID",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "web",
ty: "String42",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"ServiceSupplierList" => Some((
"ServiceSupplierList",
&Shape {
ns: SEP,
base: "List",
attrs: &[],
members: &[Member {
ns: SEP,
name: "ServiceSupplier",
ty: "ServiceSupplier",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"AccountBalance" => Some((
"AccountBalance",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "availableCredit",
ty: "AccountingUnit",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "creditStatus",
ty: "CreditStatusType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "emergencyCredit",
ty: "AccountingUnit",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "emergencyCreditStatus",
ty: "CreditStatusType",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"AccountingUnit" => Some((
"AccountingUnit",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "energyUnit",
ty: "RealEnergy",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "monetaryUnit",
ty: "CurrencyCode",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "multiplier",
ty: "PowerOfTenMultiplierType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "Int32",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"CreditRegister" => Some((
"CreditRegister",
&Shape {
ns: SEP,
base: "IdentifiedObject",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "creditAmount",
ty: "AccountingUnit",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "creditType",
ty: "CreditTypeType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "effectiveTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "token",
ty: "String32",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"CreditRegisterList" => Some((
"CreditRegisterList",
&Shape {
ns: SEP,
base: "List",
attrs: &[],
members: &[Member {
ns: SEP,
name: "CreditRegister",
ty: "CreditRegister",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"Prepayment" => Some((
"Prepayment",
&Shape {
ns: SEP,
base: "IdentifiedObject",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "AccountBalanceLink",
ty: "AccountBalanceLink",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "ActiveCreditRegisterListLink",
ty: "ActiveCreditRegisterListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ActiveSupplyInterruptionOverrideListLink",
ty: "ActiveSupplyInterruptionOverrideListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "creditExpiryLevel",
ty: "AccountingUnit",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "CreditRegisterListLink",
ty: "CreditRegisterListLink",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "lowCreditWarningLevel",
ty: "AccountingUnit",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "lowEmergencyCreditWarningLevel",
ty: "AccountingUnit",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "prepayMode",
ty: "PrepayModeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "PrepayOperationStatusLink",
ty: "PrepayOperationStatusLink",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "SupplyInterruptionOverrideListLink",
ty: "SupplyInterruptionOverrideListLink",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "UsagePoint",
ty: "UsagePoint",
min: 0,
max: usize::MAX,
},
Member {
ns: SEP,
name: "UsagePointLink",
ty: "UsagePointLink",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"PrepaymentList" => Some((
"PrepaymentList",
&Shape {
ns: SEP,
base: "SubscribableList",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[Member {
ns: SEP,
name: "Prepayment",
ty: "Prepayment",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"PrepayModeType" => Some((
"PrepayModeType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"PrepayOperationStatus" => Some((
"PrepayOperationStatus",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "creditTypeChange",
ty: "CreditTypeChange",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "creditTypeInUse",
ty: "CreditTypeType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "serviceChange",
ty: "ServiceChange",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "serviceStatus",
ty: "ServiceStatusType",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"ServiceChange" => Some((
"ServiceChange",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "newStatus",
ty: "ServiceStatusType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "startTime",
ty: "TimeType",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"SupplyInterruptionOverride" => Some((
"SupplyInterruptionOverride",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "description",
ty: "String32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "interval",
ty: "DateTimeInterval",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"SupplyInterruptionOverrideList" => Some((
"SupplyInterruptionOverrideList",
&Shape {
ns: SEP,
base: "List",
attrs: &[],
members: &[Member {
ns: SEP,
name: "SupplyInterruptionOverride",
ty: "SupplyInterruptionOverride",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"CreditStatusType" => Some((
"CreditStatusType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"CreditTypeType" => Some((
"CreditTypeType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"CreditTypeChange" => Some((
"CreditTypeChange",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "newType",
ty: "CreditTypeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "startTime",
ty: "TimeType",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"ServiceStatusType" => Some((
"ServiceStatusType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"RequestStatus" => Some((
"RequestStatus",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "dateTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "requestStatus",
ty: "UInt8",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"FlowReservationRequest" => Some((
"FlowReservationRequest",
&Shape {
ns: SEP,
base: "IdentifiedObject",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "creationTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "durationRequested",
ty: "UInt16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "energyRequested",
ty: "SignedRealEnergy",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "intervalRequested",
ty: "DateTimeInterval",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "powerRequested",
ty: "ActivePower",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "RequestStatus",
ty: "RequestStatus",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"FlowReservationRequestList" => Some((
"FlowReservationRequestList",
&Shape {
ns: SEP,
base: "List",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[Member {
ns: SEP,
name: "FlowReservationRequest",
ty: "FlowReservationRequest",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"FlowReservationResponse" => Some((
"FlowReservationResponse",
&Shape {
ns: SEP,
base: "Event",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "energyAvailable",
ty: "SignedRealEnergy",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "powerAvailable",
ty: "ActivePower",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "subject",
ty: "mRIDType",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"FlowReservationResponseList" => Some((
"FlowReservationResponseList",
&Shape {
ns: SEP,
base: "SubscribableList",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[Member {
ns: SEP,
name: "FlowReservationResponse",
ty: "FlowReservationResponse",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"DefaultDERControl" => Some((
"DefaultDERControl",
&Shape {
ns: SEP,
base: "SubscribableIdentifiedObject",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "DERControlBase",
ty: "DERControlBase",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "setESDelay",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setESHighFreq",
ty: "UInt16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setESHighVolt",
ty: "Int16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setESLowFreq",
ty: "UInt16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setESLowVolt",
ty: "Int16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setESRampTms",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setESRandomDelay",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setGradW",
ty: "UInt16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setSoftGradW",
ty: "UInt16",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"FreqDroopType" => Some((
"FreqDroopType",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "dBOF",
ty: "UInt32",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "dBUF",
ty: "UInt32",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "kOF",
ty: "UInt16",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "kUF",
ty: "UInt16",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "openLoopTms",
ty: "UInt16",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"DER" => Some((
"DER",
&Shape {
ns: SEP,
base: "SubscribableResource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "AssociatedDERProgramListLink",
ty: "AssociatedDERProgramListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "AssociatedUsagePointLink",
ty: "AssociatedUsagePointLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "CurrentDERProgramLink",
ty: "CurrentDERProgramLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "DERAvailabilityLink",
ty: "DERAvailabilityLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "DERCapabilityLink",
ty: "DERCapabilityLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "DERSettingsLink",
ty: "DERSettingsLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "DERStatusLink",
ty: "DERStatusLink",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"DERList" => Some((
"DERList",
&Shape {
ns: SEP,
base: "List",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[Member {
ns: SEP,
name: "DER",
ty: "DER",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"DERSettings" => Some((
"DERSettings",
&Shape {
ns: SEP,
base: "SubscribableResource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "modesEnabled",
ty: "DERControlType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setESDelay",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setESHighFreq",
ty: "UInt16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setESHighVolt",
ty: "Int16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setESLowFreq",
ty: "UInt16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setESLowVolt",
ty: "Int16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setESRampTms",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setESRandomDelay",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setGradW",
ty: "UInt16",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "setMaxA",
ty: "CurrentRMS",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setMaxAh",
ty: "AmpereHour",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setMaxChargeRateVA",
ty: "ApparentPower",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setMaxChargeRateW",
ty: "ActivePower",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setMaxDischargeRateVA",
ty: "ApparentPower",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setMaxDischargeRateW",
ty: "ActivePower",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setMaxV",
ty: "VoltageRMS",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setMaxVA",
ty: "ApparentPower",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setMaxVar",
ty: "ReactivePower",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setMaxVarNeg",
ty: "ReactivePower",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setMaxW",
ty: "ActivePower",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "setMaxWh",
ty: "WattHour",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setMinPFOverExcited",
ty: "PowerFactor",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setMinPFUnderExcited",
ty: "PowerFactor",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setMinV",
ty: "VoltageRMS",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setSoftGradW",
ty: "UInt16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setVNom",
ty: "VoltageRMS",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setVRef",
ty: "VoltageRMS",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "setVRefOfs",
ty: "VoltageRMS",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "updatedTime",
ty: "TimeType",
min: 1,
max: 1,
},
#[cfg(feature = "csip-aus")]
Member {
ns: AUS,
name: "doeModesEnabled",
ty: "DOEControlType",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"DERType" => Some((
"DERType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DERAvailability" => Some((
"DERAvailability",
&Shape {
ns: SEP,
base: "SubscribableResource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "availabilityDuration",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "maxChargeDuration",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "readingTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "reserveChargePercent",
ty: "PerCent",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "reservePercent",
ty: "PerCent",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "statVarAvail",
ty: "ReactivePower",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "statWAvail",
ty: "ActivePower",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"DERCapability" => Some((
"DERCapability",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "modesSupported",
ty: "DERControlType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "rtgAbnormalCategory",
ty: "UInt8",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rtgMaxA",
ty: "CurrentRMS",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rtgMaxAh",
ty: "AmpereHour",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rtgMaxChargeRateVA",
ty: "ApparentPower",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rtgMaxChargeRateW",
ty: "ActivePower",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rtgMaxDischargeRateVA",
ty: "ApparentPower",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rtgMaxDischargeRateW",
ty: "ActivePower",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rtgMaxV",
ty: "VoltageRMS",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rtgMaxVA",
ty: "ApparentPower",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rtgMaxVar",
ty: "ReactivePower",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rtgMaxVarNeg",
ty: "ReactivePower",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rtgMaxW",
ty: "ActivePower",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "rtgMaxWh",
ty: "WattHour",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rtgMinPFOverExcited",
ty: "PowerFactor",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rtgMinPFUnderExcited",
ty: "PowerFactor",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rtgMinV",
ty: "VoltageRMS",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rtgNormalCategory",
ty: "UInt8",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rtgOverExcitedPF",
ty: "PowerFactor",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rtgOverExcitedW",
ty: "ActivePower",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rtgReactiveSusceptance",
ty: "ReactiveSusceptance",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rtgUnderExcitedPF",
ty: "PowerFactor",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rtgUnderExcitedW",
ty: "ActivePower",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rtgVNom",
ty: "VoltageRMS",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "type",
ty: "DERType",
min: 1,
max: 1,
},
#[cfg(feature = "csip-aus")]
Member {
ns: AUS,
name: "doeModesSupported",
ty: "DOEControlType",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"DERControlBase" => Some((
"DERControlBase",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "opModConnect",
ty: "xs:boolean",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModEnergize",
ty: "xs:boolean",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModFixedPFAbsorbW",
ty: "PowerFactorWithExcitation",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModFixedPFInjectW",
ty: "PowerFactorWithExcitation",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModFixedVar",
ty: "FixedVar",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModFixedW",
ty: "SignedPerCent",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModFreqDroop",
ty: "FreqDroopType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModFreqWatt",
ty: "DERCurveLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModHFRTMayTrip",
ty: "DERCurveLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModHFRTMustTrip",
ty: "DERCurveLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModHVRTMayTrip",
ty: "DERCurveLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModHVRTMomentaryCessation",
ty: "DERCurveLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModHVRTMustTrip",
ty: "DERCurveLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModLFRTMayTrip",
ty: "DERCurveLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModLFRTMustTrip",
ty: "DERCurveLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModLVRTMayTrip",
ty: "DERCurveLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModLVRTMomentaryCessation",
ty: "DERCurveLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModLVRTMustTrip",
ty: "DERCurveLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModMaxLimW",
ty: "PerCent",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModTargetVar",
ty: "ReactivePower",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModTargetW",
ty: "ActivePower",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModVoltVar",
ty: "DERCurveLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModVoltWatt",
ty: "DERCurveLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModWattPF",
ty: "DERCurveLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "opModWattVar",
ty: "DERCurveLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rampTms",
ty: "UInt16",
min: 0,
max: 1,
},
#[cfg(feature = "csip-aus")]
Member {
ns: AUS,
name: "opModImpLimW",
ty: "ActivePower",
min: 0,
max: 1,
},
#[cfg(feature = "csip-aus")]
Member {
ns: AUS,
name: "opModExpLimW",
ty: "ActivePower",
min: 0,
max: 1,
},
#[cfg(feature = "csip-aus")]
Member {
ns: AUS,
name: "opModGenLimW",
ty: "ActivePower",
min: 0,
max: 1,
},
#[cfg(feature = "csip-aus")]
Member {
ns: AUS,
name: "opModLoadLimW",
ty: "ActivePower",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"DERControl" => Some((
"DERControl",
&Shape {
ns: SEP,
base: "RandomizableEvent",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "DERControlBase",
ty: "DERControlBase",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "deviceCategory",
ty: "DeviceCategoryType",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"DERControlList" => Some((
"DERControlList",
&Shape {
ns: SEP,
base: "SubscribableList",
attrs: &[],
members: &[Member {
ns: SEP,
name: "DERControl",
ty: "DERControl",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"DERControlType" => Some((
"DERControlType",
&Shape {
ns: SEP,
base: "HexBinary32",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DERCurve" => Some((
"DERCurve",
&Shape {
ns: SEP,
base: "IdentifiedObject",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "autonomousVRefEnable",
ty: "xs:boolean",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "autonomousVRefTimeConstant",
ty: "UInt32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "creationTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "CurveData",
ty: "CurveData",
min: 1,
max: 10,
},
Member {
ns: SEP,
name: "curveType",
ty: "DERCurveType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "openLoopTms",
ty: "UInt16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rampDecTms",
ty: "UInt16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rampIncTms",
ty: "UInt16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "rampPT1Tms",
ty: "UInt16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "vRef",
ty: "PerCent",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "xMultiplier",
ty: "PowerOfTenMultiplierType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "yMultiplier",
ty: "PowerOfTenMultiplierType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "yRefType",
ty: "DERUnitRefType",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"CurrentDERProgramLink" => Some((
"CurrentDERProgramLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DERCurveList" => Some((
"DERCurveList",
&Shape {
ns: SEP,
base: "List",
attrs: &[],
members: &[Member {
ns: SEP,
name: "DERCurve",
ty: "DERCurve",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"CurveData" => Some((
"CurveData",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "excitation",
ty: "xs:boolean",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "xvalue",
ty: "Int32",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "yvalue",
ty: "Int32",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"DERCurveType" => Some((
"DERCurveType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DERProgram" => Some((
"DERProgram",
&Shape {
ns: SEP,
base: "SubscribableIdentifiedObject",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "ActiveDERControlListLink",
ty: "ActiveDERControlListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "DefaultDERControlLink",
ty: "DefaultDERControlLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "DERControlListLink",
ty: "DERControlListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "DERCurveListLink",
ty: "DERCurveListLink",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "primacy",
ty: "PrimacyType",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"DERProgramList" => Some((
"DERProgramList",
&Shape {
ns: SEP,
base: "SubscribableList",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[Member {
ns: SEP,
name: "DERProgram",
ty: "DERProgram",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"DERStatus" => Some((
"DERStatus",
&Shape {
ns: SEP,
base: "SubscribableResource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "alarmStatus",
ty: "HexBinary32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "genConnectStatus",
ty: "ConnectStatusType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "inverterStatus",
ty: "InverterStatusType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "localControlModeStatus",
ty: "LocalControlModeStatusType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "manufacturerStatus",
ty: "ManufacturerStatusType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "operationalModeStatus",
ty: "OperationalModeStatusType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "readingTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "stateOfChargeStatus",
ty: "StateOfChargeStatusType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "storageModeStatus",
ty: "StorageModeStatusType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "storConnectStatus",
ty: "ConnectStatusType",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"DERUnitRefType" => Some((
"DERUnitRefType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"CurrentRMS" => Some((
"CurrentRMS",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "multiplier",
ty: "PowerOfTenMultiplierType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "UInt16",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"FixedPointType" => Some((
"FixedPointType",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "multiplier",
ty: "PowerOfTenMultiplierType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "Int16",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"UnsignedFixedPointType" => Some((
"UnsignedFixedPointType",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "multiplier",
ty: "PowerOfTenMultiplierType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "UInt16",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"ActivePower" => Some((
"ActivePower",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "multiplier",
ty: "PowerOfTenMultiplierType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "Int16",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"AmpereHour" => Some((
"AmpereHour",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "multiplier",
ty: "PowerOfTenMultiplierType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "UInt16",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"ApparentPower" => Some((
"ApparentPower",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "multiplier",
ty: "PowerOfTenMultiplierType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "UInt16",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"ReactivePower" => Some((
"ReactivePower",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "multiplier",
ty: "PowerOfTenMultiplierType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "Int16",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"ReactiveSusceptance" => Some((
"ReactiveSusceptance",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "multiplier",
ty: "PowerOfTenMultiplierType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "UInt16",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"PowerFactor" => Some((
"PowerFactor",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "displacement",
ty: "UInt16",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "multiplier",
ty: "PowerOfTenMultiplierType",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"PowerFactorWithExcitation" => Some((
"PowerFactorWithExcitation",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "displacement",
ty: "UInt16",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "excitation",
ty: "xs:boolean",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "multiplier",
ty: "PowerOfTenMultiplierType",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"FixedVar" => Some((
"FixedVar",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "refType",
ty: "DERUnitRefType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "SignedPerCent",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"WattHour" => Some((
"WattHour",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "multiplier",
ty: "PowerOfTenMultiplierType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "UInt16",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"VoltageRMS" => Some((
"VoltageRMS",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "multiplier",
ty: "PowerOfTenMultiplierType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "UInt16",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"ConnectStatusType" => Some((
"ConnectStatusType",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "dateTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "HexBinary8",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"InverterStatusType" => Some((
"InverterStatusType",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "dateTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "UInt8",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"LocalControlModeStatusType" => Some((
"LocalControlModeStatusType",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "dateTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "UInt8",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"ManufacturerStatusType" => Some((
"ManufacturerStatusType",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "dateTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "String6",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"OperationalModeStatusType" => Some((
"OperationalModeStatusType",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "dateTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "UInt8",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"StateOfChargeStatusType" => Some((
"StateOfChargeStatusType",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "dateTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "PerCent",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"StorageModeStatusType" => Some((
"StorageModeStatusType",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "dateTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "UInt8",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"AccountBalanceLink" => Some((
"AccountBalanceLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ActiveBillingPeriodListLink" => Some((
"ActiveBillingPeriodListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ActiveCreditRegisterListLink" => Some((
"ActiveCreditRegisterListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ActiveDERControlListLink" => Some((
"ActiveDERControlListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ActiveEndDeviceControlListLink" => Some((
"ActiveEndDeviceControlListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ActiveFlowReservationListLink" => Some((
"ActiveFlowReservationListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ActiveProjectionReadingListLink" => Some((
"ActiveProjectionReadingListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ActiveSupplyInterruptionOverrideListLink" => Some((
"ActiveSupplyInterruptionOverrideListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ActiveTargetReadingListLink" => Some((
"ActiveTargetReadingListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ActiveTextMessageListLink" => Some((
"ActiveTextMessageListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ActiveTimeTariffIntervalListLink" => Some((
"ActiveTimeTariffIntervalListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"AssociatedDERProgramListLink" => Some((
"AssociatedDERProgramListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"AssociatedUsagePointLink" => Some((
"AssociatedUsagePointLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"BillingPeriodListLink" => Some((
"BillingPeriodListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"BillingReadingListLink" => Some((
"BillingReadingListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"BillingReadingSetListLink" => Some((
"BillingReadingSetListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ConfigurationLink" => Some((
"ConfigurationLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ConsumptionTariffIntervalListLink" => Some((
"ConsumptionTariffIntervalListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"CreditRegisterListLink" => Some((
"CreditRegisterListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"CustomerAccountLink" => Some((
"CustomerAccountLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"CustomerAccountListLink" => Some((
"CustomerAccountListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"CustomerAgreementListLink" => Some((
"CustomerAgreementListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DemandResponseProgramLink" => Some((
"DemandResponseProgramLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DemandResponseProgramListLink" => Some((
"DemandResponseProgramListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DERAvailabilityLink" => Some((
"DERAvailabilityLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DefaultDERControlLink" => Some((
"DefaultDERControlLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DERCapabilityLink" => Some((
"DERCapabilityLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DERControlListLink" => Some((
"DERControlListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DERCurveLink" => Some((
"DERCurveLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DERCurveListLink" => Some((
"DERCurveListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DERLink" => Some((
"DERLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DERListLink" => Some((
"DERListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DERProgramLink" => Some((
"DERProgramLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DERProgramListLink" => Some((
"DERProgramListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DERSettingsLink" => Some((
"DERSettingsLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DERStatusLink" => Some((
"DERStatusLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DeviceCapabilityLink" => Some((
"DeviceCapabilityLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DeviceInformationLink" => Some((
"DeviceInformationLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DeviceStatusLink" => Some((
"DeviceStatusLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"EndDeviceControlListLink" => Some((
"EndDeviceControlListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"EndDeviceLink" => Some((
"EndDeviceLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"EndDeviceListLink" => Some((
"EndDeviceListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"FileLink" => Some((
"FileLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"FileListLink" => Some((
"FileListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"FileStatusLink" => Some((
"FileStatusLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"FlowReservationRequestListLink" => Some((
"FlowReservationRequestListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"FlowReservationResponseListLink" => Some((
"FlowReservationResponseListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"FunctionSetAssignmentsListLink" => Some((
"FunctionSetAssignmentsListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"HistoricalReadingListLink" => Some((
"HistoricalReadingListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"IPAddrListLink" => Some((
"IPAddrListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"IPInterfaceListLink" => Some((
"IPInterfaceListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"LLInterfaceListLink" => Some((
"LLInterfaceListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"LoadShedAvailabilityListLink" => Some((
"LoadShedAvailabilityListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"LogEventListLink" => Some((
"LogEventListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"MessagingProgramListLink" => Some((
"MessagingProgramListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"MeterReadingLink" => Some((
"MeterReadingLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"MeterReadingListLink" => Some((
"MeterReadingListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"MirrorUsagePointListLink" => Some((
"MirrorUsagePointListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"NeighborListLink" => Some((
"NeighborListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"NotificationListLink" => Some((
"NotificationListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"PowerStatusLink" => Some((
"PowerStatusLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"PrepaymentLink" => Some((
"PrepaymentLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"PrepaymentListLink" => Some((
"PrepaymentListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"PrepayOperationStatusLink" => Some((
"PrepayOperationStatusLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"PriceResponseCfgListLink" => Some((
"PriceResponseCfgListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ProjectionReadingListLink" => Some((
"ProjectionReadingListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"RateComponentLink" => Some((
"RateComponentLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"RateComponentListLink" => Some((
"RateComponentListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ReadingLink" => Some((
"ReadingLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ReadingListLink" => Some((
"ReadingListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ReadingSetListLink" => Some((
"ReadingSetListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ReadingTypeLink" => Some((
"ReadingTypeLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"RegistrationLink" => Some((
"RegistrationLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ResponseListLink" => Some((
"ResponseListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ResponseSetListLink" => Some((
"ResponseSetListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"RPLInstanceListLink" => Some((
"RPLInstanceListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"RPLSourceRoutesListLink" => Some((
"RPLSourceRoutesListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"SelfDeviceLink" => Some((
"SelfDeviceLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ServiceSupplierLink" => Some((
"ServiceSupplierLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"SubscriptionListLink" => Some((
"SubscriptionListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"SupplyInterruptionOverrideListLink" => Some((
"SupplyInterruptionOverrideListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"SupportedLocaleListLink" => Some((
"SupportedLocaleListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"TargetReadingListLink" => Some((
"TargetReadingListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"TariffProfileLink" => Some((
"TariffProfileLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"TariffProfileListLink" => Some((
"TariffProfileListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"TextMessageListLink" => Some((
"TextMessageListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"TimeLink" => Some((
"TimeLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"TimeTariffIntervalListLink" => Some((
"TimeTariffIntervalListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"UsagePointLink" => Some((
"UsagePointLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"UsagePointListLink" => Some((
"UsagePointListLink",
&Shape {
ns: SEP,
base: "ListLink",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"IdentifiedObject" => Some((
"IdentifiedObject",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "mRID",
ty: "mRIDType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "description",
ty: "String32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "version",
ty: "VersionType",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"Link" => Some((
"Link",
&Shape {
ns: SEP,
base: "",
attrs: &[Attribute {
name: "href",
ty: "xs:anyURI",
required: true,
}],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"List" => Some((
"List",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[
Attribute {
name: "all",
ty: "UInt32",
required: true,
},
Attribute {
name: "results",
ty: "UInt32",
required: true,
},
],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ListLink" => Some((
"ListLink",
&Shape {
ns: SEP,
base: "Link",
attrs: &[Attribute {
name: "all",
ty: "UInt32",
required: false,
}],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"Resource" => Some((
"Resource",
&Shape {
ns: SEP,
base: "",
attrs: &[Attribute {
name: "href",
ty: "xs:anyURI",
required: false,
}],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"RespondableIdentifiedObject" => Some((
"RespondableIdentifiedObject",
&Shape {
ns: SEP,
base: "RespondableResource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "mRID",
ty: "mRIDType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "description",
ty: "String32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "version",
ty: "VersionType",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"RespondableResource" => Some((
"RespondableResource",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[
Attribute {
name: "replyTo",
ty: "xs:anyURI",
required: false,
},
Attribute {
name: "responseRequired",
ty: "HexBinary8",
required: false,
},
],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"RespondableSubscribableIdentifiedObject" => Some((
"RespondableSubscribableIdentifiedObject",
&Shape {
ns: SEP,
base: "RespondableResource",
attrs: &[Attribute {
name: "subscribable",
ty: "SubscribableType",
required: false,
}],
members: &[
Member {
ns: SEP,
name: "mRID",
ty: "mRIDType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "description",
ty: "String32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "version",
ty: "VersionType",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"SubscribableIdentifiedObject" => Some((
"SubscribableIdentifiedObject",
&Shape {
ns: SEP,
base: "SubscribableResource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "mRID",
ty: "mRIDType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "description",
ty: "String32",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "version",
ty: "VersionType",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"SubscribableList" => Some((
"SubscribableList",
&Shape {
ns: SEP,
base: "SubscribableResource",
attrs: &[
Attribute {
name: "all",
ty: "UInt32",
required: true,
},
Attribute {
name: "results",
ty: "UInt32",
required: true,
},
],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"SubscribableResource" => Some((
"SubscribableResource",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[Attribute {
name: "subscribable",
ty: "SubscribableType",
required: false,
}],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"Error" => Some((
"Error",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "maxRetryDuration",
ty: "UInt16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "reasonCode",
ty: "UInt16",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"Event" => Some((
"Event",
&Shape {
ns: SEP,
base: "RespondableSubscribableIdentifiedObject",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "creationTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "EventStatus",
ty: "EventStatus",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "interval",
ty: "DateTimeInterval",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"EventStatus" => Some((
"EventStatus",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "currentStatus",
ty: "UInt8",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "dateTime",
ty: "TimeType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "potentiallySuperseded",
ty: "xs:boolean",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "potentiallySupersededTime",
ty: "TimeType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "reason",
ty: "String192",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"RandomizableEvent" => Some((
"RandomizableEvent",
&Shape {
ns: SEP,
base: "Event",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "randomizeDuration",
ty: "OneHourRangeType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "randomizeStart",
ty: "OneHourRangeType",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"AccumulationBehaviourType" => Some((
"AccumulationBehaviourType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ApplianceLoadReductionType" => Some((
"ApplianceLoadReductionType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"CommodityType" => Some((
"CommodityType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ConsumptionBlockType" => Some((
"ConsumptionBlockType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"CurrencyCode" => Some((
"CurrencyCode",
&Shape {
ns: SEP,
base: "UInt16",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DataQualifierType" => Some((
"DataQualifierType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DateTimeInterval" => Some((
"DateTimeInterval",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "duration",
ty: "UInt32",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "start",
ty: "TimeType",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"DeviceCategoryType" => Some((
"DeviceCategoryType",
&Shape {
ns: SEP,
base: "HexBinary32",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"DstRuleType" => Some((
"DstRuleType",
&Shape {
ns: SEP,
base: "HexBinary32",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"FlowDirectionType" => Some((
"FlowDirectionType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"GPSLocationType" => Some((
"GPSLocationType",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "lat",
ty: "String32",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "lon",
ty: "String32",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"KindType" => Some((
"KindType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"LocaleType" => Some((
"LocaleType",
&Shape {
ns: SEP,
base: "String42",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"mRIDType" => Some((
"mRIDType",
&Shape {
ns: SEP,
base: "HexBinary128",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"OneHourRangeType" => Some((
"OneHourRangeType",
&Shape {
ns: SEP,
base: "Int16",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"PENType" => Some((
"PENType",
&Shape {
ns: SEP,
base: "UInt32",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"PerCent" => Some((
"PerCent",
&Shape {
ns: SEP,
base: "UInt16",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"PhaseCode" => Some((
"PhaseCode",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"PINType" => Some((
"PINType",
&Shape {
ns: SEP,
base: "UInt32",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"PowerOfTenMultiplierType" => Some((
"PowerOfTenMultiplierType",
&Shape {
ns: SEP,
base: "Int8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"PrimacyType" => Some((
"PrimacyType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"RealEnergy" => Some((
"RealEnergy",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "multiplier",
ty: "PowerOfTenMultiplierType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "UInt48",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"RoleFlagsType" => Some((
"RoleFlagsType",
&Shape {
ns: SEP,
base: "HexBinary16",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"ServiceKind" => Some((
"ServiceKind",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"SFDIType" => Some((
"SFDIType",
&Shape {
ns: SEP,
base: "UInt40",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"SignedPerCent" => Some((
"SignedPerCent",
&Shape {
ns: SEP,
base: "Int16",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"SignedRealEnergy" => Some((
"SignedRealEnergy",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "multiplier",
ty: "PowerOfTenMultiplierType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "Int48",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"SubscribableType" => Some((
"SubscribableType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"TimeOffsetType" => Some((
"TimeOffsetType",
&Shape {
ns: SEP,
base: "Int32",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"TimeType" => Some((
"TimeType",
&Shape {
ns: SEP,
base: "Int64",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"TOUType" => Some((
"TOUType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"UnitType" => Some((
"UnitType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"UnitValueType" => Some((
"UnitValueType",
&Shape {
ns: SEP,
base: "",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "multiplier",
ty: "PowerOfTenMultiplierType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "unit",
ty: "UomType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "Int32",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"UomType" => Some((
"UomType",
&Shape {
ns: SEP,
base: "UInt8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"VersionType" => Some((
"VersionType",
&Shape {
ns: SEP,
base: "UInt16",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"HexBinary8" => Some((
"HexBinary8",
&Shape {
ns: SEP,
base: "xs:hexBinary",
attrs: &[],
members: &[],
max_len: Some(1),
min: None,
max: None,
},
)),
"HexBinary16" => Some((
"HexBinary16",
&Shape {
ns: SEP,
base: "xs:hexBinary",
attrs: &[],
members: &[],
max_len: Some(2),
min: None,
max: None,
},
)),
"HexBinary32" => Some((
"HexBinary32",
&Shape {
ns: SEP,
base: "xs:hexBinary",
attrs: &[],
members: &[],
max_len: Some(4),
min: None,
max: None,
},
)),
"HexBinary48" => Some((
"HexBinary48",
&Shape {
ns: SEP,
base: "xs:hexBinary",
attrs: &[],
members: &[],
max_len: Some(6),
min: None,
max: None,
},
)),
"HexBinary64" => Some((
"HexBinary64",
&Shape {
ns: SEP,
base: "xs:hexBinary",
attrs: &[],
members: &[],
max_len: Some(8),
min: None,
max: None,
},
)),
"HexBinary128" => Some((
"HexBinary128",
&Shape {
ns: SEP,
base: "xs:hexBinary",
attrs: &[],
members: &[],
max_len: Some(16),
min: None,
max: None,
},
)),
"HexBinary160" => Some((
"HexBinary160",
&Shape {
ns: SEP,
base: "xs:hexBinary",
attrs: &[],
members: &[],
max_len: Some(20),
min: None,
max: None,
},
)),
"String6" => Some((
"String6",
&Shape {
ns: SEP,
base: "xs:string",
attrs: &[],
members: &[],
max_len: Some(6),
min: None,
max: None,
},
)),
"String16" => Some((
"String16",
&Shape {
ns: SEP,
base: "xs:string",
attrs: &[],
members: &[],
max_len: Some(16),
min: None,
max: None,
},
)),
"String20" => Some((
"String20",
&Shape {
ns: SEP,
base: "xs:string",
attrs: &[],
members: &[],
max_len: Some(20),
min: None,
max: None,
},
)),
"String32" => Some((
"String32",
&Shape {
ns: SEP,
base: "xs:string",
attrs: &[],
members: &[],
max_len: Some(32),
min: None,
max: None,
},
)),
"String42" => Some((
"String42",
&Shape {
ns: SEP,
base: "xs:string",
attrs: &[],
members: &[],
max_len: Some(42),
min: None,
max: None,
},
)),
"String192" => Some((
"String192",
&Shape {
ns: SEP,
base: "xs:string",
attrs: &[],
members: &[],
max_len: Some(192),
min: None,
max: None,
},
)),
"UInt8" => Some((
"UInt8",
&Shape {
ns: SEP,
base: "xs:unsignedByte",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"UInt16" => Some((
"UInt16",
&Shape {
ns: SEP,
base: "xs:unsignedShort",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"UInt32" => Some((
"UInt32",
&Shape {
ns: SEP,
base: "xs:unsignedInt",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"UInt40" => Some((
"UInt40",
&Shape {
ns: SEP,
base: "xs:unsignedLong",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: Some(281474976710655),
},
)),
"UInt48" => Some((
"UInt48",
&Shape {
ns: SEP,
base: "xs:unsignedLong",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: Some(281474976710655),
},
)),
"UInt64" => Some((
"UInt64",
&Shape {
ns: SEP,
base: "xs:unsignedLong",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"Int8" => Some((
"Int8",
&Shape {
ns: SEP,
base: "xs:byte",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"Int16" => Some((
"Int16",
&Shape {
ns: SEP,
base: "xs:short",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"Int32" => Some((
"Int32",
&Shape {
ns: SEP,
base: "xs:int",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"Int48" => Some((
"Int48",
&Shape {
ns: SEP,
base: "xs:long",
attrs: &[],
members: &[],
max_len: None,
min: Some(-140737488355328),
max: Some(140737488355328),
},
)),
"Int64" => Some((
"Int64",
&Shape {
ns: SEP,
base: "xs:long",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"MirrorMeterReading" => Some((
"MirrorMeterReading",
&Shape {
ns: SEP,
base: "MeterReadingBase",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "lastUpdateTime",
ty: "TimeType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "MirrorReadingSet",
ty: "MirrorReadingSet",
min: 0,
max: usize::MAX,
},
Member {
ns: SEP,
name: "nextUpdateTime",
ty: "TimeType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "Reading",
ty: "Reading",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "ReadingType",
ty: "ReadingType",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"MirrorMeterReadingList" => Some((
"MirrorMeterReadingList",
&Shape {
ns: SEP,
base: "List",
attrs: &[],
members: &[Member {
ns: SEP,
name: "MirrorMeterReading",
ty: "MirrorMeterReading",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"MeterReadingBase" => Some((
"MeterReadingBase",
&Shape {
ns: SEP,
base: "IdentifiedObject",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
"MirrorReadingSet" => Some((
"MirrorReadingSet",
&Shape {
ns: SEP,
base: "ReadingSetBase",
attrs: &[],
members: &[Member {
ns: SEP,
name: "Reading",
ty: "Reading",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"MirrorUsagePoint" => Some((
"MirrorUsagePoint",
&Shape {
ns: SEP,
base: "UsagePointBase",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "deviceLFDI",
ty: "HexBinary160",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "MirrorMeterReading",
ty: "MirrorMeterReading",
min: 0,
max: usize::MAX,
},
Member {
ns: SEP,
name: "postRate",
ty: "UInt32",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"MirrorUsagePointList" => Some((
"MirrorUsagePointList",
&Shape {
ns: SEP,
base: "List",
attrs: &[Attribute {
name: "pollRate",
ty: "UInt32",
required: false,
}],
members: &[Member {
ns: SEP,
name: "MirrorUsagePoint",
ty: "MirrorUsagePoint",
min: 0,
max: usize::MAX,
}],
max_len: None,
min: None,
max: None,
},
)),
"ReadingBase" => Some((
"ReadingBase",
&Shape {
ns: SEP,
base: "Resource",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "consumptionBlock",
ty: "ConsumptionBlockType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "qualityFlags",
ty: "HexBinary16",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "timePeriod",
ty: "DateTimeInterval",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "touTier",
ty: "TOUType",
min: 0,
max: 1,
},
Member {
ns: SEP,
name: "value",
ty: "Int48",
min: 0,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
"ReadingSetBase" => Some((
"ReadingSetBase",
&Shape {
ns: SEP,
base: "IdentifiedObject",
attrs: &[],
members: &[Member {
ns: SEP,
name: "timePeriod",
ty: "DateTimeInterval",
min: 1,
max: 1,
}],
max_len: None,
min: None,
max: None,
},
)),
"UsagePointBase" => Some((
"UsagePointBase",
&Shape {
ns: SEP,
base: "IdentifiedObject",
attrs: &[],
members: &[
Member {
ns: SEP,
name: "roleFlags",
ty: "RoleFlagsType",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "serviceCategoryKind",
ty: "ServiceKind",
min: 1,
max: 1,
},
Member {
ns: SEP,
name: "status",
ty: "UInt8",
min: 1,
max: 1,
},
],
max_len: None,
min: None,
max: None,
},
)),
#[cfg(feature = "csip-aus")]
"DOEControlType" => Some((
"DOEControlType",
&Shape {
ns: AUS,
base: "HexBinary8",
attrs: &[],
members: &[],
max_len: None,
min: None,
max: None,
},
)),
#[cfg(feature = "csip-aus")]
"ConnectionPointType" => Some((
"ConnectionPointType",
&Shape {
ns: AUS,
base: "Resource",
attrs: &[],
members: &[Member {
ns: AUS,
name: "connectionPointId",
ty: "String32",
min: 1,
max: 1,
}],
max_len: None,
min: None,
max: None,
},
)),
_ => None,
}
}
pub(crate) fn root_type(ns: &str, name: &str) -> Option<&'static str> {
match (ns, name) {
(SEP, "DeviceCapability") => Some("DeviceCapability"),
(SEP, "AbstractDevice") => Some("AbstractDevice"),
(SEP, "DeviceStatus") => Some("DeviceStatus"),
(SEP, "EndDevice") => Some("EndDevice"),
(SEP, "EndDeviceList") => Some("EndDeviceList"),
(SEP, "Registration") => Some("Registration"),
(SEP, "SelfDevice") => Some("SelfDevice"),
(SEP, "Temperature") => Some("Temperature"),
(SEP, "FunctionSetAssignmentsBase") => Some("FunctionSetAssignmentsBase"),
(SEP, "FunctionSetAssignments") => Some("FunctionSetAssignments"),
(SEP, "FunctionSetAssignmentsList") => Some("FunctionSetAssignmentsList"),
(SEP, "Condition") => Some("Condition"),
(SEP, "SubscriptionBase") => Some("SubscriptionBase"),
(SEP, "Subscription") => Some("Subscription"),
(SEP, "SubscriptionList") => Some("SubscriptionList"),
(SEP, "Notification") => Some("Notification"),
(SEP, "NotificationList") => Some("NotificationList"),
(SEP, "DERControlResponse") => Some("DERControlResponse"),
(SEP, "FlowReservationResponseResponse") => Some("FlowReservationResponseResponse"),
(SEP, "AppliedTargetReduction") => Some("AppliedTargetReduction"),
(SEP, "DrResponse") => Some("DrResponse"),
(SEP, "PriceResponse") => Some("PriceResponse"),
(SEP, "Response") => Some("Response"),
(SEP, "ResponseList") => Some("ResponseList"),
(SEP, "ResponseSet") => Some("ResponseSet"),
(SEP, "ResponseSetList") => Some("ResponseSetList"),
(SEP, "TextResponse") => Some("TextResponse"),
(SEP, "Time") => Some("Time"),
(SEP, "DeviceInformation") => Some("DeviceInformation"),
(SEP, "DRLCCapabilities") => Some("DRLCCapabilities"),
(SEP, "SupportedLocale") => Some("SupportedLocale"),
(SEP, "SupportedLocaleList") => Some("SupportedLocaleList"),
(SEP, "PowerStatus") => Some("PowerStatus"),
(SEP, "PowerSourceType") => Some("PowerSourceType"),
(SEP, "PEVInfo") => Some("PEVInfo"),
(SEP, "IEEE_802_15_4") => Some("IEEE_802_15_4"),
(SEP, "IPAddr") => Some("IPAddr"),
(SEP, "IPAddrList") => Some("IPAddrList"),
(SEP, "IPInterface") => Some("IPInterface"),
(SEP, "IPInterfaceList") => Some("IPInterfaceList"),
(SEP, "LLInterface") => Some("LLInterface"),
(SEP, "LLInterfaceList") => Some("LLInterfaceList"),
(SEP, "loWPAN") => Some("loWPAN"),
(SEP, "Neighbor") => Some("Neighbor"),
(SEP, "NeighborList") => Some("NeighborList"),
(SEP, "RPLInstance") => Some("RPLInstance"),
(SEP, "RPLInstanceList") => Some("RPLInstanceList"),
(SEP, "RPLSourceRoutes") => Some("RPLSourceRoutes"),
(SEP, "RPLSourceRoutesList") => Some("RPLSourceRoutesList"),
(SEP, "LogEvent") => Some("LogEvent"),
(SEP, "LogEventList") => Some("LogEventList"),
(SEP, "Configuration") => Some("Configuration"),
(SEP, "PowerConfiguration") => Some("PowerConfiguration"),
(SEP, "PriceResponseCfg") => Some("PriceResponseCfg"),
(SEP, "PriceResponseCfgList") => Some("PriceResponseCfgList"),
(SEP, "TimeConfiguration") => Some("TimeConfiguration"),
(SEP, "File") => Some("File"),
(SEP, "FileList") => Some("FileList"),
(SEP, "FileStatus") => Some("FileStatus"),
(SEP, "LoadShedAvailabilityList") => Some("LoadShedAvailabilityList"),
(SEP, "ApplianceLoadReduction") => Some("ApplianceLoadReduction"),
(SEP, "DemandResponseProgram") => Some("DemandResponseProgram"),
(SEP, "DemandResponseProgramList") => Some("DemandResponseProgramList"),
(SEP, "DutyCycle") => Some("DutyCycle"),
(SEP, "EndDeviceControl") => Some("EndDeviceControl"),
(SEP, "EndDeviceControlList") => Some("EndDeviceControlList"),
(SEP, "LoadShedAvailability") => Some("LoadShedAvailability"),
(SEP, "Offset") => Some("Offset"),
(SEP, "SetPoint") => Some("SetPoint"),
(SEP, "TargetReduction") => Some("TargetReduction"),
(SEP, "MeterReading") => Some("MeterReading"),
(SEP, "MeterReadingList") => Some("MeterReadingList"),
(SEP, "Reading") => Some("Reading"),
(SEP, "ReadingList") => Some("ReadingList"),
(SEP, "ReadingSet") => Some("ReadingSet"),
(SEP, "ReadingSetList") => Some("ReadingSetList"),
(SEP, "ReadingType") => Some("ReadingType"),
(SEP, "UsagePoint") => Some("UsagePoint"),
(SEP, "UsagePointList") => Some("UsagePointList"),
(SEP, "ConsumptionTariffInterval") => Some("ConsumptionTariffInterval"),
(SEP, "ConsumptionTariffIntervalList") => Some("ConsumptionTariffIntervalList"),
(SEP, "CostKindType") => Some("CostKindType"),
(SEP, "EnvironmentalCost") => Some("EnvironmentalCost"),
(SEP, "RateComponent") => Some("RateComponent"),
(SEP, "RateComponentList") => Some("RateComponentList"),
(SEP, "TariffProfile") => Some("TariffProfile"),
(SEP, "TariffProfileList") => Some("TariffProfileList"),
(SEP, "TimeTariffInterval") => Some("TimeTariffInterval"),
(SEP, "TimeTariffIntervalList") => Some("TimeTariffIntervalList"),
(SEP, "MessagingProgram") => Some("MessagingProgram"),
(SEP, "MessagingProgramList") => Some("MessagingProgramList"),
(SEP, "PriorityType") => Some("PriorityType"),
(SEP, "TextMessage") => Some("TextMessage"),
(SEP, "TextMessageList") => Some("TextMessageList"),
(SEP, "BillingPeriod") => Some("BillingPeriod"),
(SEP, "BillingPeriodList") => Some("BillingPeriodList"),
(SEP, "BillingMeterReadingBase") => Some("BillingMeterReadingBase"),
(SEP, "BillingReading") => Some("BillingReading"),
(SEP, "BillingReadingList") => Some("BillingReadingList"),
(SEP, "BillingReadingSet") => Some("BillingReadingSet"),
(SEP, "BillingReadingSetList") => Some("BillingReadingSetList"),
(SEP, "Charge") => Some("Charge"),
(SEP, "ChargeKind") => Some("ChargeKind"),
(SEP, "CustomerAccount") => Some("CustomerAccount"),
(SEP, "CustomerAccountList") => Some("CustomerAccountList"),
(SEP, "CustomerAgreement") => Some("CustomerAgreement"),
(SEP, "CustomerAgreementList") => Some("CustomerAgreementList"),
(SEP, "HistoricalReading") => Some("HistoricalReading"),
(SEP, "HistoricalReadingList") => Some("HistoricalReadingList"),
(SEP, "ProjectionReading") => Some("ProjectionReading"),
(SEP, "ProjectionReadingList") => Some("ProjectionReadingList"),
(SEP, "TargetReading") => Some("TargetReading"),
(SEP, "TargetReadingList") => Some("TargetReadingList"),
(SEP, "ServiceSupplier") => Some("ServiceSupplier"),
(SEP, "ServiceSupplierList") => Some("ServiceSupplierList"),
(SEP, "AccountBalance") => Some("AccountBalance"),
(SEP, "AccountingUnit") => Some("AccountingUnit"),
(SEP, "CreditRegister") => Some("CreditRegister"),
(SEP, "CreditRegisterList") => Some("CreditRegisterList"),
(SEP, "Prepayment") => Some("Prepayment"),
(SEP, "PrepaymentList") => Some("PrepaymentList"),
(SEP, "PrepayModeType") => Some("PrepayModeType"),
(SEP, "PrepayOperationStatus") => Some("PrepayOperationStatus"),
(SEP, "ServiceChange") => Some("ServiceChange"),
(SEP, "SupplyInterruptionOverride") => Some("SupplyInterruptionOverride"),
(SEP, "SupplyInterruptionOverrideList") => Some("SupplyInterruptionOverrideList"),
(SEP, "CreditStatusType") => Some("CreditStatusType"),
(SEP, "CreditTypeType") => Some("CreditTypeType"),
(SEP, "CreditTypeChange") => Some("CreditTypeChange"),
(SEP, "ServiceStatusType") => Some("ServiceStatusType"),
(SEP, "RequestStatus") => Some("RequestStatus"),
(SEP, "FlowReservationRequest") => Some("FlowReservationRequest"),
(SEP, "FlowReservationRequestList") => Some("FlowReservationRequestList"),
(SEP, "FlowReservationResponse") => Some("FlowReservationResponse"),
(SEP, "FlowReservationResponseList") => Some("FlowReservationResponseList"),
(SEP, "DefaultDERControl") => Some("DefaultDERControl"),
(SEP, "FreqDroopType") => Some("FreqDroopType"),
(SEP, "DER") => Some("DER"),
(SEP, "DERList") => Some("DERList"),
(SEP, "DERSettings") => Some("DERSettings"),
(SEP, "DERType") => Some("DERType"),
(SEP, "DERAvailability") => Some("DERAvailability"),
(SEP, "DERCapability") => Some("DERCapability"),
(SEP, "DERControlBase") => Some("DERControlBase"),
(SEP, "DERControl") => Some("DERControl"),
(SEP, "DERControlList") => Some("DERControlList"),
(SEP, "DERControlType") => Some("DERControlType"),
(SEP, "DERCurve") => Some("DERCurve"),
(SEP, "CurrentDERProgramLink") => Some("CurrentDERProgramLink"),
(SEP, "DERCurveList") => Some("DERCurveList"),
(SEP, "CurveData") => Some("CurveData"),
(SEP, "DERCurveType") => Some("DERCurveType"),
(SEP, "DERProgram") => Some("DERProgram"),
(SEP, "DERProgramList") => Some("DERProgramList"),
(SEP, "DERStatus") => Some("DERStatus"),
(SEP, "DERUnitRefType") => Some("DERUnitRefType"),
(SEP, "CurrentRMS") => Some("CurrentRMS"),
(SEP, "FixedPointType") => Some("FixedPointType"),
(SEP, "UnsignedFixedPointType") => Some("UnsignedFixedPointType"),
(SEP, "ActivePower") => Some("ActivePower"),
(SEP, "AmpereHour") => Some("AmpereHour"),
(SEP, "ApparentPower") => Some("ApparentPower"),
(SEP, "ReactivePower") => Some("ReactivePower"),
(SEP, "ReactiveSusceptance") => Some("ReactiveSusceptance"),
(SEP, "PowerFactor") => Some("PowerFactor"),
(SEP, "PowerFactorWithExcitation") => Some("PowerFactorWithExcitation"),
(SEP, "FixedVar") => Some("FixedVar"),
(SEP, "WattHour") => Some("WattHour"),
(SEP, "VoltageRMS") => Some("VoltageRMS"),
(SEP, "ConnectStatusType") => Some("ConnectStatusType"),
(SEP, "InverterStatusType") => Some("InverterStatusType"),
(SEP, "LocalControlModeStatusType") => Some("LocalControlModeStatusType"),
(SEP, "ManufacturerStatusType") => Some("ManufacturerStatusType"),
(SEP, "OperationalModeStatusType") => Some("OperationalModeStatusType"),
(SEP, "StateOfChargeStatusType") => Some("StateOfChargeStatusType"),
(SEP, "StorageModeStatusType") => Some("StorageModeStatusType"),
(SEP, "AccountBalanceLink") => Some("AccountBalanceLink"),
(SEP, "ActiveBillingPeriodListLink") => Some("ActiveBillingPeriodListLink"),
(SEP, "ActiveCreditRegisterListLink") => Some("ActiveCreditRegisterListLink"),
(SEP, "ActiveDERControlListLink") => Some("ActiveDERControlListLink"),
(SEP, "ActiveEndDeviceControlListLink") => Some("ActiveEndDeviceControlListLink"),
(SEP, "ActiveFlowReservationListLink") => Some("ActiveFlowReservationListLink"),
(SEP, "ActiveProjectionReadingListLink") => Some("ActiveProjectionReadingListLink"),
(SEP, "ActiveSupplyInterruptionOverrideListLink") => {
Some("ActiveSupplyInterruptionOverrideListLink")
}
(SEP, "ActiveTargetReadingListLink") => Some("ActiveTargetReadingListLink"),
(SEP, "ActiveTextMessageListLink") => Some("ActiveTextMessageListLink"),
(SEP, "ActiveTimeTariffIntervalListLink") => Some("ActiveTimeTariffIntervalListLink"),
(SEP, "AssociatedDERProgramListLink") => Some("AssociatedDERProgramListLink"),
(SEP, "AssociatedUsagePointLink") => Some("AssociatedUsagePointLink"),
(SEP, "BillingPeriodListLink") => Some("BillingPeriodListLink"),
(SEP, "BillingReadingListLink") => Some("BillingReadingListLink"),
(SEP, "BillingReadingSetListLink") => Some("BillingReadingSetListLink"),
(SEP, "ConfigurationLink") => Some("ConfigurationLink"),
(SEP, "ConsumptionTariffIntervalListLink") => Some("ConsumptionTariffIntervalListLink"),
(SEP, "CreditRegisterListLink") => Some("CreditRegisterListLink"),
(SEP, "CustomerAccountLink") => Some("CustomerAccountLink"),
(SEP, "CustomerAccountListLink") => Some("CustomerAccountListLink"),
(SEP, "CustomerAgreementListLink") => Some("CustomerAgreementListLink"),
(SEP, "DemandResponseProgramLink") => Some("DemandResponseProgramLink"),
(SEP, "DemandResponseProgramListLink") => Some("DemandResponseProgramListLink"),
(SEP, "DERAvailabilityLink") => Some("DERAvailabilityLink"),
(SEP, "DefaultDERControlLink") => Some("DefaultDERControlLink"),
(SEP, "DERCapabilityLink") => Some("DERCapabilityLink"),
(SEP, "DERControlListLink") => Some("DERControlListLink"),
(SEP, "DERCurveLink") => Some("DERCurveLink"),
(SEP, "DERCurveListLink") => Some("DERCurveListLink"),
(SEP, "DERLink") => Some("DERLink"),
(SEP, "DERListLink") => Some("DERListLink"),
(SEP, "DERProgramLink") => Some("DERProgramLink"),
(SEP, "DERProgramListLink") => Some("DERProgramListLink"),
(SEP, "DERSettingsLink") => Some("DERSettingsLink"),
(SEP, "DERStatusLink") => Some("DERStatusLink"),
(SEP, "DeviceCapabilityLink") => Some("DeviceCapabilityLink"),
(SEP, "DeviceInformationLink") => Some("DeviceInformationLink"),
(SEP, "DeviceStatusLink") => Some("DeviceStatusLink"),
(SEP, "EndDeviceControlListLink") => Some("EndDeviceControlListLink"),
(SEP, "EndDeviceLink") => Some("EndDeviceLink"),
(SEP, "EndDeviceListLink") => Some("EndDeviceListLink"),
(SEP, "FileLink") => Some("FileLink"),
(SEP, "FileListLink") => Some("FileListLink"),
(SEP, "FileStatusLink") => Some("FileStatusLink"),
(SEP, "FlowReservationRequestListLink") => Some("FlowReservationRequestListLink"),
(SEP, "FlowReservationResponseListLink") => Some("FlowReservationResponseListLink"),
(SEP, "FunctionSetAssignmentsListLink") => Some("FunctionSetAssignmentsListLink"),
(SEP, "HistoricalReadingListLink") => Some("HistoricalReadingListLink"),
(SEP, "IPAddrListLink") => Some("IPAddrListLink"),
(SEP, "IPInterfaceListLink") => Some("IPInterfaceListLink"),
(SEP, "LLInterfaceListLink") => Some("LLInterfaceListLink"),
(SEP, "LoadShedAvailabilityListLink") => Some("LoadShedAvailabilityListLink"),
(SEP, "LogEventListLink") => Some("LogEventListLink"),
(SEP, "MessagingProgramListLink") => Some("MessagingProgramListLink"),
(SEP, "MeterReadingLink") => Some("MeterReadingLink"),
(SEP, "MeterReadingListLink") => Some("MeterReadingListLink"),
(SEP, "MirrorUsagePointListLink") => Some("MirrorUsagePointListLink"),
(SEP, "NeighborListLink") => Some("NeighborListLink"),
(SEP, "NotificationListLink") => Some("NotificationListLink"),
(SEP, "PowerStatusLink") => Some("PowerStatusLink"),
(SEP, "PrepaymentLink") => Some("PrepaymentLink"),
(SEP, "PrepaymentListLink") => Some("PrepaymentListLink"),
(SEP, "PrepayOperationStatusLink") => Some("PrepayOperationStatusLink"),
(SEP, "PriceResponseCfgListLink") => Some("PriceResponseCfgListLink"),
(SEP, "ProjectionReadingListLink") => Some("ProjectionReadingListLink"),
(SEP, "RateComponentLink") => Some("RateComponentLink"),
(SEP, "RateComponentListLink") => Some("RateComponentListLink"),
(SEP, "ReadingLink") => Some("ReadingLink"),
(SEP, "ReadingListLink") => Some("ReadingListLink"),
(SEP, "ReadingSetListLink") => Some("ReadingSetListLink"),
(SEP, "ReadingTypeLink") => Some("ReadingTypeLink"),
(SEP, "RegistrationLink") => Some("RegistrationLink"),
(SEP, "ResponseListLink") => Some("ResponseListLink"),
(SEP, "ResponseSetListLink") => Some("ResponseSetListLink"),
(SEP, "RPLInstanceListLink") => Some("RPLInstanceListLink"),
(SEP, "RPLSourceRoutesListLink") => Some("RPLSourceRoutesListLink"),
(SEP, "SelfDeviceLink") => Some("SelfDeviceLink"),
(SEP, "ServiceSupplierLink") => Some("ServiceSupplierLink"),
(SEP, "SubscriptionListLink") => Some("SubscriptionListLink"),
(SEP, "SupplyInterruptionOverrideListLink") => Some("SupplyInterruptionOverrideListLink"),
(SEP, "SupportedLocaleListLink") => Some("SupportedLocaleListLink"),
(SEP, "TargetReadingListLink") => Some("TargetReadingListLink"),
(SEP, "TariffProfileLink") => Some("TariffProfileLink"),
(SEP, "TariffProfileListLink") => Some("TariffProfileListLink"),
(SEP, "TextMessageListLink") => Some("TextMessageListLink"),
(SEP, "TimeLink") => Some("TimeLink"),
(SEP, "TimeTariffIntervalListLink") => Some("TimeTariffIntervalListLink"),
(SEP, "UsagePointLink") => Some("UsagePointLink"),
(SEP, "UsagePointListLink") => Some("UsagePointListLink"),
(SEP, "IdentifiedObject") => Some("IdentifiedObject"),
(SEP, "Link") => Some("Link"),
(SEP, "List") => Some("List"),
(SEP, "ListLink") => Some("ListLink"),
(SEP, "Resource") => Some("Resource"),
(SEP, "RespondableIdentifiedObject") => Some("RespondableIdentifiedObject"),
(SEP, "RespondableResource") => Some("RespondableResource"),
(SEP, "RespondableSubscribableIdentifiedObject") => {
Some("RespondableSubscribableIdentifiedObject")
}
(SEP, "SubscribableIdentifiedObject") => Some("SubscribableIdentifiedObject"),
(SEP, "SubscribableList") => Some("SubscribableList"),
(SEP, "SubscribableResource") => Some("SubscribableResource"),
(SEP, "Error") => Some("Error"),
(SEP, "Event") => Some("Event"),
(SEP, "EventStatus") => Some("EventStatus"),
(SEP, "RandomizableEvent") => Some("RandomizableEvent"),
(SEP, "AccumulationBehaviourType") => Some("AccumulationBehaviourType"),
(SEP, "ApplianceLoadReductionType") => Some("ApplianceLoadReductionType"),
(SEP, "CommodityType") => Some("CommodityType"),
(SEP, "ConsumptionBlockType") => Some("ConsumptionBlockType"),
(SEP, "CurrencyCode") => Some("CurrencyCode"),
(SEP, "DataQualifierType") => Some("DataQualifierType"),
(SEP, "DateTimeInterval") => Some("DateTimeInterval"),
(SEP, "DeviceCategoryType") => Some("DeviceCategoryType"),
(SEP, "DstRuleType") => Some("DstRuleType"),
(SEP, "FlowDirectionType") => Some("FlowDirectionType"),
(SEP, "GPSLocationType") => Some("GPSLocationType"),
(SEP, "KindType") => Some("KindType"),
(SEP, "LocaleType") => Some("LocaleType"),
(SEP, "mRIDType") => Some("mRIDType"),
(SEP, "OneHourRangeType") => Some("OneHourRangeType"),
(SEP, "PENType") => Some("PENType"),
(SEP, "PerCent") => Some("PerCent"),
(SEP, "PhaseCode") => Some("PhaseCode"),
(SEP, "PINType") => Some("PINType"),
(SEP, "PowerOfTenMultiplierType") => Some("PowerOfTenMultiplierType"),
(SEP, "PrimacyType") => Some("PrimacyType"),
(SEP, "RealEnergy") => Some("RealEnergy"),
(SEP, "RoleFlagsType") => Some("RoleFlagsType"),
(SEP, "ServiceKind") => Some("ServiceKind"),
(SEP, "SFDIType") => Some("SFDIType"),
(SEP, "SignedPerCent") => Some("SignedPerCent"),
(SEP, "SignedRealEnergy") => Some("SignedRealEnergy"),
(SEP, "TimeOffsetType") => Some("TimeOffsetType"),
(SEP, "TimeType") => Some("TimeType"),
(SEP, "TOUType") => Some("TOUType"),
(SEP, "UnitType") => Some("UnitType"),
(SEP, "UnitValueType") => Some("UnitValueType"),
(SEP, "UomType") => Some("UomType"),
(SEP, "VersionType") => Some("VersionType"),
(SEP, "MirrorMeterReading") => Some("MirrorMeterReading"),
(SEP, "MirrorMeterReadingList") => Some("MirrorMeterReadingList"),
(SEP, "MeterReadingBase") => Some("MeterReadingBase"),
(SEP, "MirrorReadingSet") => Some("MirrorReadingSet"),
(SEP, "MirrorUsagePoint") => Some("MirrorUsagePoint"),
(SEP, "MirrorUsagePointList") => Some("MirrorUsagePointList"),
(SEP, "ReadingBase") => Some("ReadingBase"),
(SEP, "ReadingSetBase") => Some("ReadingSetBase"),
(SEP, "UsagePointBase") => Some("UsagePointBase"),
#[cfg(feature = "csip-aus")]
(AUS, "opModImpLimW") => Some("ActivePower"),
#[cfg(feature = "csip-aus")]
(AUS, "opModExpLimW") => Some("ActivePower"),
#[cfg(feature = "csip-aus")]
(AUS, "opModGenLimW") => Some("ActivePower"),
#[cfg(feature = "csip-aus")]
(AUS, "opModLoadLimW") => Some("ActivePower"),
#[cfg(feature = "csip-aus")]
(AUS, "doeModesSupported") => Some("DOEControlType"),
#[cfg(feature = "csip-aus")]
(AUS, "doeModesEnabled") => Some("DOEControlType"),
#[cfg(feature = "csip-aus")]
(AUS, "ConnectionPointLink") => Some("Link"),
#[cfg(feature = "csip-aus")]
(AUS, "ConnectionPoint") => Some("ConnectionPointType"),
_ => None,
}
}
pub const BASE_TYPE_COUNT: usize = 349;