cs_productVolumeFacility.xsd 5.94 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="typ_dataTypes.xsd"/>
	<xsd:include schemaLocation="cs_datedComment.xsd"/>
	<xsd:include schemaLocation="cs_productVolumeFlow.xsd"/>
	<xsd:include schemaLocation="attgrp_uid.xsd"/>
	<!--                                                         -->
	<xsd:complexType name="cs_productVolumeFacility">
		<xsd:annotation>
			<xsd:documentation>WITSML - Report Facility Component Schema.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="name" type="witsml:facilityIdentifierStruct" minOccurs="1" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation>The name of the facility. The name can be qualified by a naming system. 
					This also defines the kind of facility.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="facilityParent1" type="witsml:facilityIdentifierStruct" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation>For facilities whose name is unique within the context of another 
					facility, the name of the parent facility. For example, if name represents a completion,
					then facilityParent1 would represent the name of the well within which name was unique.
					The name can be qualified by a naming system.
					This also defines the kind of facility.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="facilityParent2" type="witsml:facilityIdentifierStruct" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation>For facilities whose name is unique within the context of another 
					facility, the name of the parent facility of parent1. 
					The name can be qualified by a naming system.
					This also defines the kind of facility.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:sequence minOccurs="0" maxOccurs="1">
				<xsd:element name="unit" type="witsml:refNameString" minOccurs="1" maxOccurs="1">
					<xsd:annotation>
						<xsd:documentation>The Product Flow Unit representing the facility.
						This must be unique within the context of the Product Flow Network.</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="network" type="witsml:refNameString" minOccurs="0" maxOccurs="1">
					<xsd:annotation>
						<xsd:documentation>The Product Flow Network representing the facility.
						This can only be given if unit is given.
						This is only required if the network is not the same as the primary network
						that represents the Product Flow Model.
						This must be unique within the context of the Product Flow Model represented 
						by this report.</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
			</xsd:sequence>
			<xsd:element name="contextFacility" type="witsml:facilityIdentifierStruct" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>The name and type of a facility whose context is relevant to this facility.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="wellProducing" type="witsml:logicalBoolean" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation>True (or 1) indicates that the well is producing.
					False (or 0) or not given indicates that the well is not producing.
					This only applies if the facility is a well or wellbore.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="wellInjecting" type="witsml:logicalBoolean" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation>True (or 1) indicates that the well is injecting.
					False (or 0) or not given indicates that the well is not injecting.
					This only applies if the facility is a well or wellbore.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="capacity" type="witsml:volumeMeasure" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation>The storage capacity of the facility (e.g., a tank).</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="operationTime" type="witsml:timeMeasure" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation>The amount of time that the facility was active during the 
					reporting period.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="downtimeReason" type="witsml:cs_datedComment" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>The reason for any down time during the reporting period.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="flow" type="witsml:cs_productVolumeFlow" minOccurs="1" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Reports a flow of a 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 facility.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
		<xsd:attributeGroup ref="witsml:attgrp_uid">
			<xsd:annotation>
			<xsd:documentation>Unique identifier for the Product Volume Facility.  </xsd:documentation>
			</xsd:annotation>
		</xsd:attributeGroup>
	</xsd:complexType>
</xsd:schema>