grp_productFlowModel.xsd 3.87 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_productFlowExternalReference.xsd"/>
	<xsd:include schemaLocation="cs_productFlowNetwork.xsd"/>
	<!--                                                         -->
	<xsd:group name="grp_productFlowModel">
		<xsd:annotation>
			<xsd:documentation>The non-contextual content of a WITSML Product Flow Model object.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="installation" type="witsml:facilityIdentifierStruct" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation>The name of the facility which is represented by this model. 
					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="contextFacility" type="witsml:facilityIdentifierStruct" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>The name and type of a facility whose context is relevant to the represented installation.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="dTimStart" type="witsml:timestamp" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation>The date and time of the start of validity for this model.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="dTimEnd" type="witsml:timestamp" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation>The date and time of the termination of validity for this model.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="externalConnect" type="witsml:cs_productFlowExternalReference" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Defines the external port in another Product Flow Model to which 
					an external port in this model is connected.
					An external port should be connected to an external port with the opposite direction.
					The connected external port must be in another Product Flow Model.
					These connections should always be defined on a one-to-one basis. For example, if a facility
					may receive input from multiple other facilities then a separate input port should be defined
					for each of those facilities. This allows any question about mass balancing to be contained 
					within each individual model.
					The external port name must match the name of an external port on the network
					that represents this model.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="network" type="witsml:cs_productFlowNetwork" minOccurs="1" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>The description of one named network within this model.
					Each model is self contained but may reference other newtorks for defining
					internal detail. One of the networks must represent this model.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="comment" type="witsml:commentString" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation>A descriptive remark about the model.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:group>
</xsd:schema>