<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<xsd:annotation>
		<xsd:documentation>This schema file is part of the aseXML schema set, and is subject to the terms and conditions that are detailed in the aseXML_r*.xsd schema file with which this file is used</xsd:documentation>
	</xsd:annotation>
	<xsd:annotation>
		<xsd:documentation>Purpose - Defines the transactions necessary to manage the transfer of Network Equipment information between TNSPs and NEMMCO</xsd:documentation>
	</xsd:annotation>
	<xsd:complexType name="EquipmentInfoRequestKeyType">
		<xsd:annotation>
			<xsd:documentation>Represents a request for current information about an item of equipment</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="CompanyElementId" type="CompanyElementIdType">
				<xsd:annotation>
					<xsd:documentation>The TNSP generated ID for an item of equipment</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="TNSPId" type="PartyIdentifier" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The B2B id of the TNSP that owns the equipment. Only required if the requesting TNSP is not the same  TNSP that owns the equipment.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="EquipmentBaseType" abstract="true">
		<xsd:annotation>
			<xsd:documentation>The base type for all nos equipment</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="CompanyElementId" type="CompanyElementIdType">
				<xsd:annotation>
					<xsd:documentation>Company Element ID is a TNSP provided ID that uniquely identifies (for that TNSP) an item of plant. CompanyElementId CAN NOT be reused even if the commission/retirement dates don't overlap.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="CompanyElementName" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Company Element Name is a TNSP provided name for an item of plant to be used for display purposes only. </xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:whiteSpace value="collapse"/>
						<xsd:maxLength value="60"/>
						<xsd:minLength value="1"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="CommissionDate" type="xsd:dateTime" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The date the item of plant is commissioned. This date is not updatable once the date is in the past.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="RetirementDate" type="xsd:dateTime" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The date the item of plant is de-commissioned. This date is not updatable once the date is in the past.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="NEMMCOName" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>NEMMCO's name for this item of plant. DO NOT set for submission</xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:whiteSpace value="collapse"/>
						<xsd:minLength value="1"/>
						<xsd:maxLength value="60"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="ValidatedBy" type="NOSUserIdType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The NEMMCO officer that validated this item of plant. DO NOT set for submission</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="TNSPId" type="PartyIdentifier" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>This field is only used in query results. DO NOT set for submission</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
		<xsd:attribute name="operationType" type="NOSOperationType" use="optional"/>
	</xsd:complexType>
	<xsd:complexType name="NOSStationType">
		<xsd:annotation>
			<xsd:documentation>Substation. NOTE: with stations CompanyElementName must be unqiue of the submitting station.</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="EquipmentBaseType">
				<xsd:sequence>
					<xsd:element name="NEMMCOAbbrev" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>NEMMCO Abbrev is set by NEMMCO to aid in the generation of NEMMCO standard names for items of plant resident at this station. DO NOT set for submission</xsd:documentation>
						</xsd:annotation>
						<xsd:simpleType>
							<xsd:restriction base="xsd:string">
								<xsd:whiteSpace value="collapse"/>
								<xsd:maxLength value="10"/>
								<xsd:minLength value="1"/>
							</xsd:restriction>
						</xsd:simpleType>
					</xsd:element>
					<xsd:element name="Region" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>The NEM region this station is located in. DO NOT set for submission</xsd:documentation>
						</xsd:annotation>
						<xsd:simpleType>
							<xsd:restriction base="xsd:string">
								<xsd:whiteSpace value="collapse"/>
								<xsd:maxLength value="10"/>
								<xsd:minLength value="1"/>
							</xsd:restriction>
						</xsd:simpleType>
					</xsd:element>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="NOSEquipmentType">
		<xsd:annotation>
			<xsd:documentation>Base type for a station resident equipment. NOTE: for all NOSEquipmentType descendants CompanyElementName must be unqiue for the company/station(s)/equipmentType</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="EquipmentBaseType">
				<xsd:sequence>
					<xsd:element name="StationFromCompanyElementId" type="CompanyElementIdType" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Station from contains the Company Element ID for the station that this item of plant is located at. This value is not updatable.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Voltage" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>HV voltage</xsd:documentation>
						</xsd:annotation>
						<xsd:simpleType>
							<xsd:restriction base="NOSVoltage">
								<xsd:minInclusive value="1.0"/>
								<xsd:maxInclusive value="600.0"/>
							</xsd:restriction>
						</xsd:simpleType>
					</xsd:element>
					<xsd:element name="Designation" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Equipment identifier such as line number, CB number, transformer number.  Used in the generation of the unique NEMMCONAME</xsd:documentation>
						</xsd:annotation>
						<xsd:simpleType>
							<xsd:restriction base="xsd:string">
								<xsd:whiteSpace value="collapse"/>
								<xsd:maxLength value="8"/>
								<xsd:minLength value="1"/>
							</xsd:restriction>
						</xsd:simpleType>
					</xsd:element>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="NOSBrakingResistorType">
		<xsd:annotation>
			<xsd:documentation>Braking Resistor</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="NOSEquipmentType"/>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="NOSBusType">
		<xsd:annotation>
			<xsd:documentation>Bus Bar</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="NOSEquipmentType"/>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="NOSCapacitorType">
		<xsd:annotation>
			<xsd:documentation>Capacitor Bank</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="NOSEquipmentType"/>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="NOSCircuitBreakerType">
		<xsd:annotation>
			<xsd:documentation>Circuit Breaker</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="NOSEquipmentType"/>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="NOSIsolatorType">
		<xsd:annotation>
			<xsd:documentation>Isolator</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="NOSEquipmentType"/>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="NOSLoadType">
		<xsd:annotation>
			<xsd:documentation>Load</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="NOSEquipmentType"/>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="NOSReactorType">
		<xsd:annotation>
			<xsd:documentation>Reactor</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="NOSEquipmentType"/>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="NOSStaticVarCompensatorType">
		<xsd:annotation>
			<xsd:documentation>Static Var Compensator</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="NOSEquipmentType"/>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="NOSSynchronousCondenserType">
		<xsd:annotation>
			<xsd:documentation>Synchronous Condenser</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="NOSEquipmentType"/>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="NOSUnitType">
		<xsd:annotation>
			<xsd:documentation>Generator</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="NOSEquipmentType"/>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="NOSLineType">
		<xsd:annotation>
			<xsd:documentation>A line connecting two stations</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="NOSEquipmentType">
				<xsd:sequence>
					<xsd:element name="StationToCompanyElementId" type="CompanyElementIdType" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Station to contains the company element  id for the 'To' station. This value is not updatable and may not have the same value as StationFromCompanyElementId.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="NOSTeeLineType">
		<xsd:annotation>
			<xsd:documentation>A line connecting three stations</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="NOSLineType">
				<xsd:sequence>
					<xsd:element name="StationTeeCompanyElementId" type="CompanyElementIdType" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Station Tee contains the company element  id for the 'Tee' station. This value is not updatable and may not have the same value as StationFromCompanyElementId or StationToCompanyElementId.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="NOSTwoWindingTransformerType">
		<xsd:annotation>
			<xsd:documentation>Two winding Transformer</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="NOSEquipmentType">
				<xsd:sequence>
					<xsd:element name="Voltage2" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Secondary winding voltage must be less than Voltage</xsd:documentation>
						</xsd:annotation>
						<xsd:simpleType>
							<xsd:restriction base="NOSVoltage">
								<xsd:minInclusive value="0.2"/>
								<xsd:maxInclusive value="400.0"/>
							</xsd:restriction>
						</xsd:simpleType>
					</xsd:element>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="NOSThreeWindingTransformerType">
		<xsd:annotation>
			<xsd:documentation>Three winding Transformer</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="NOSTwoWindingTransformerType">
				<xsd:sequence>
					<xsd:element name="Voltage3" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Tertiary winding voltage must be less than or equal to Voltage2</xsd:documentation>
						</xsd:annotation>
						<xsd:simpleType>
							<xsd:restriction base="NOSVoltage">
								<xsd:minInclusive value="0.2"/>
								<xsd:maxInclusive value="400.0"/>
							</xsd:restriction>
						</xsd:simpleType>
					</xsd:element>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="EquipmentResponseType">
		<xsd:annotation>
			<xsd:documentation>For reporting successful submission or error causing the submission to fail.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="CompanyElementId" type="CompanyElementIdType">
				<xsd:annotation>
					<xsd:documentation>Unique id provided by the request initiator for an Equipment Item.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Error" type="NOSErrorType" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Any errors that caused the operation on this Equipment Item to be rejected.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Event" type="Event">
				<xsd:annotation>
					<xsd:documentation>Contains overall success/failure</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
		<xsd:attribute name="operationType" type="NOSOperationType" use="required"/>
	</xsd:complexType>
	<xsd:complexType name="NOSEquipmentSubmission">
		<xsd:annotation>
			<xsd:documentation>Equipment to be add/updated. Note the optional "subject" attribute is for display purposes</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="NOSEquipment" type="EquipmentBaseType" maxOccurs="unbounded"/>
		</xsd:sequence>
		<xsd:attribute name="version" type="r18" use="required"/>
		<xsd:attribute name="subject" use="required">
			<xsd:simpleType>
				<xsd:restriction base="xsd:string">
					<xsd:minLength value="1"/>
					<xsd:maxLength value="40"/>
					<xsd:whiteSpace value="collapse"/>
				</xsd:restriction>
			</xsd:simpleType>
		</xsd:attribute>
	</xsd:complexType>
	<xsd:complexType name="NOSEquipmentInfoRequest">
		<xsd:annotation>
			<xsd:documentation>Equipment information to lookup based on key fields</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="EquipmentInfoRequestKey" type="EquipmentInfoRequestKeyType" maxOccurs="unbounded"/>
		</xsd:sequence>
		<xsd:attribute name="version" type="r16" use="required"/>
	</xsd:complexType>
	<xsd:complexType name="NOSEquipmentResponse">
		<xsd:annotation>
			<xsd:documentation>When a 'Equipment Submission' is process by NEMMCO a 'Equipment Response' will be generated. This response will advise the request's initiator as to its success/failure.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="EquipmentResponse" type="EquipmentResponseType" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>The response for an individual Equipment Item contains the item's unique id, the operation attempted. Success/failure is indicated by the event element</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
		<xsd:attribute name="version" type="r14" use="required"/>
	</xsd:complexType>
</xsd:schema>

