cs_productVolumePeriod.xsd 6.08 KB
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema 
	elementFormDefault="qualified" 
	attributeFormDefault="unqualified" 
	targetNamespace="http://www.witsml.org/schemas/131/addendum/combo" 
	xmlns:witsml="http://www.witsml.org/schemas/131/addendum/combo" 
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	version="1.3.1">
	<!--                                                         -->
	<!-- POSC License Agreement
	This file is distributed under the POSC License Agreement at
	http://www.posc.org/about/license.shtml.
	Use of this file constitutes agreement with the POSC License Agreement.
	-->
	<!--                                                         -->
	<xsd:include schemaLocation="cs_datedComment.xsd"/>
	<xsd:include schemaLocation="typ_dataTypes_New.xsd"/>
	<xsd:include schemaLocation="typ_catalog_New.xsd"/>
	<xsd:include schemaLocation="typ_catalog_prodVol.xsd"/>
	<xsd:include schemaLocation="typ_dataTypes_prodVol.xsd"/>
	<xsd:include schemaLocation="attgrp_uid.xsd"/>
	<!--                                                         -->
	<xsd:complexType name="cs_productVolumePeriod">
		<xsd:annotation>
			<xsd:documentation>WITSML - Product Volume Period Component Schema.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="kind" type="witsml:ReportingPeriod" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation>The type of period that is being reported. If not 
					specified and a time is not given then the period is defined by the reporting period.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:choice minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation>A reporting period that is different from the overall report period. 
					For example, a particular day within a monthly report.
					This period must conform to the kind of interval.
					If one value from a pair are given then both values must be given.</xsd:documentation>
				</xsd:annotation>
				<xsd:element name="dTim" type="witsml:timestamp" minOccurs="1" maxOccurs="1">
					<xsd:annotation>
						<xsd:documentation>The beginning date and time that the period represents.</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:sequence>
					<xsd:element name="dTimStart" type="witsml:timestamp" minOccurs="1" maxOccurs="1">
						<xsd:annotation>
							<xsd:documentation>The beginning date and time that the period represents.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="dTimEnd" type="witsml:timestamp" minOccurs="0" maxOccurs="1">
						<xsd:annotation>
							<xsd:documentation>The ending date and time that the period represents.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
				</xsd:sequence>
				<xsd:sequence>
					<xsd:element name="dateStart" type="witsml:date" minOccurs="1" maxOccurs="1">
						<xsd:annotation>
							<xsd:documentation>The beginning date that the period represents.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="dateEnd" type="witsml:date" minOccurs="0" maxOccurs="1">
						<xsd:annotation>
							<xsd:documentation>The ending date that the period represents.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
				</xsd:sequence>
			</xsd:choice>
			<xsd:element name="volume" type="witsml:volumeMeasure" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation>The uncorrected volume of the product.
					A positive value for an inlet port indicates flow into the port.
					A negative value for an inlet port indicates flow out of the port.
					A positive value for an outlet port indicates flow out of the port.
					A negative value for an outlet port indicates flow into of the port.
					This convention is designed such that a positive sign indicates
					an expected condition based on the intended port direction
					while a negative sign indicates an anomolous condition.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="volumeStd" type="witsml:volumeMeasure" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation>The volume of the fluid, corrected to standard 
					conditions of temperature and pressure. The sign of the value
					should conform to the above description of volume.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="flowRate" type="witsml:volumeFlowRateMeasure" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation>The flow rate of the product. The sign of the value
					should conform to the above description of volume.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="temp" type="witsml:thermodynamicTemperatureMeasure" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation>Temperature of the product.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="pres" type="witsml:pressureMeasure" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation>Pressure of the product.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="mass" type="witsml:massMeasure" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation>The mass of the product.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="work" type="witsml:workMeasure" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation>The electrical energy represented by the product.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="comment" type="witsml:cs_datedComment" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>A timestamped remark about the amounts.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
		<xsd:attributeGroup ref="witsml:attgrp_uid">
			<xsd:annotation>
			<xsd:documentation>Unique identifier for the Product Volume Period.  </xsd:documentation>
			</xsd:annotation>
		</xsd:attributeGroup>
	</xsd:complexType>
</xsd:schema>