Sample Meters File

The Adapter Development Kit includes an XML file and schema that can be used for configuring one or more meters for use with the test harness. The file, metersdb.xml, is located in the Test/DGTestHarness directory and can be edited with an appropriate XML editor such as XML Spy. This section describes the attributes in the metersdb.xml file.

The meterdb.xml file contains one or more Meter elements that have the following attributes:

Meter Attribute

Definition

id

The meter identifier. This value should match the amiDeviceID setting in the Oracle Utilities Application Framework.

utility

This is informational only.

serviceType

This is informational only.

ServiceType

An enumeration that is described in the schema.

isCommissioned

A boolean value that describes whether or not the meter is commissioned or decommissioned. The associated MultiSpeak commands are MeterAddNotification and MeterRemoveNotification.

loadActionCode

This value is for the Connect and Disconnect commands and has enumeration values described in the schema. The value is returned in the CDStatesChangedNotification MultiSpeak command.

outageEventType

This value is used by DeviceStatusCheck and gives the status returned by the ODEventNotification call. Its enumeration values are described in the schema.

executionStatus

This value does not reflect a MultiSpeak command, but is instead intended to give a state of the operation. There are four valid values:

Success: When a meter has this status the operation will complete without error.

ResponseTimeout: When a meter has this status an asynchronous reply will never arrive (not relevant for Commission/Decommission commands).

SyncOperationFailure: When a meter has this status the initial communication to the simulated head-end system will produce an error.

AsyncOperationFailure: When a meter has this status, the asynchronous callback from the head-end system will arrive, but will indicate an error (not relevant for Commission/Decommission commands).

A meter can also contain the following elements:

  • Comment: A field which is for informational use only and is meant to indicate the purpose of the meter.

  • Channels: Used in reading the meter for On Demand Read commands. A channel contains the following attributes:

Channel Attribute

Definition

uomCode

The units of measure code that should be returned when the meter is read.

uomName

The units of measure name that should be returned when the meter is read.

description

A longer form. When the meter is read, a random number is generated for this value.

decimals

A value to indicate how many places to the right of the decimal that random number should have.