Schema model.xsd


schema location:  http://xml.comp-phys.org/2004/2/model.xsd
 
Elements  Complex types  Simple types 
BASIS  ParameterType  bosonorfermion 
HAMILTONIAN 
MODELS 
OPERATOR 
SITEBASIS 


element BASIS
diagram
children SITEBASIS CONSTRAINT
used by
elements HAMILTONIAN MODELS
attributes
Name  Type  Use  Default  Fixed  Annotation
name  xs:string        
ref  xs:string        
annotation
documentation 
describes a basis for a model
source
<xs:element name="BASIS">
  <xs:annotation>
    <xs:documentation>describes a basis for a model</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="SITEBASIS" maxOccurs="unbounded"/>
      <xs:element name="CONSTRAINT" minOccurs="0" maxOccurs="unbounded">
        <xs:complexType>
          <xs:attribute name="quantumnumber" type="xs:string" use="required"/>
          <xs:attribute name="value" type="xs:string" use="required"/>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="name" type="xs:string"/>
    <xs:attribute name="ref" type="xs:string"/>
  </xs:complexType>
</xs:element>

element BASIS/CONSTRAINT
diagram
attributes
Name  Type  Use  Default  Fixed  Annotation
quantumnumber  xs:string  required      
value  xs:string  required      
source
<xs:element name="CONSTRAINT" minOccurs="0" maxOccurs="unbounded">
  <xs:complexType>
    <xs:attribute name="quantumnumber" type="xs:string" use="required"/>
    <xs:attribute name="value" type="xs:string" use="required"/>
  </xs:complexType>
</xs:element>

element HAMILTONIAN
diagram
children PARAMETER BASIS SITETERM BONDTERM
source
<xs:element name="HAMILTONIAN">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="PARAMETER" type="ParameterType" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element ref="BASIS"/>
      <xs:element name="SITETERM" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="BONDTERM" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element HAMILTONIAN/PARAMETER
diagram
type ParameterType
attributes
Name  Type  Use  Default  Fixed  Annotation
name  xs:string  required      
default  xs:string  required      
source
<xs:element name="PARAMETER" type="ParameterType" minOccurs="0" maxOccurs="unbounded"/>

element HAMILTONIAN/SITETERM
diagram
type xs:string
source
<xs:element name="SITETERM" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>

element HAMILTONIAN/BONDTERM
diagram
type xs:string
source
<xs:element name="BONDTERM" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>

element MODELS
diagram
children SITEBASIS BASIS OPERATOR
annotation
documentation 
The root element of a model library file
source
<xs:element name="MODELS">
  <xs:annotation>
    <xs:documentation>The root element of a model library file</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence minOccurs="0" maxOccurs="unbounded">
      <xs:choice>
        <xs:element ref="SITEBASIS"/>
        <xs:element ref="BASIS"/>
        <xs:element ref="OPERATOR"/>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element OPERATOR
diagram
children CHANGE
used by
element MODELS
attributes
Name  Type  Use  Default  Fixed  Annotation
name  xs:string  required      
matrixelement  xs:string  optional  1    
annotation
documentation 
describes a local site operator
source
<xs:element name="OPERATOR">
  <xs:annotation>
    <xs:documentation>describes a local site operator</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="CHANGE" minOccurs="0" maxOccurs="unbounded">
        <xs:complexType>
          <xs:attribute name="quantumnumber" type="xs:string" use="required"/>
          <xs:attribute name="change" type="xs:string" use="required"/>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="name" type="xs:string" use="required"/>
    <xs:attribute name="matrixelement" type="xs:string" use="optional" default="1"/>
  </xs:complexType>
</xs:element>

element OPERATOR/CHANGE
diagram
attributes
Name  Type  Use  Default  Fixed  Annotation
quantumnumber  xs:string  required      
change  xs:string  required      
source
<xs:element name="CHANGE" minOccurs="0" maxOccurs="unbounded">
  <xs:complexType>
    <xs:attribute name="quantumnumber" type="xs:string" use="required"/>
    <xs:attribute name="change" type="xs:string" use="required"/>
  </xs:complexType>
</xs:element>

element SITEBASIS
diagram
children PARAMETER QUANTUMNUMBER
used by
elements BASIS MODELS
attributes
Name  Type  Use  Default  Fixed  Annotation
name  xs:string        
ref  xs:string        
type  xs:nonNegativeInteger        
annotation
documentation 
describes the basis for a single site
source
<xs:element name="SITEBASIS">
  <xs:annotation>
    <xs:documentation>describes the basis for a single site</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="PARAMETER" type="ParameterType" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="QUANTUMNUMBER" maxOccurs="unbounded">
        <xs:complexType>
          <xs:attribute name="name" type="xs:string" use="required"/>
          <xs:attribute name="min" type="xs:string" use="required"/>
          <xs:attribute name="max" type="xs:string" use="required"/>
          <xs:attribute name="type" type="bosonorfermion" use="optional" default="fermionic"/>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="name" type="xs:string"/>
    <xs:attribute name="ref" type="xs:string"/>
    <xs:attribute name="type" type="xs:nonNegativeInteger"/>
  </xs:complexType>
</xs:element>

element SITEBASIS/PARAMETER
diagram
type ParameterType
attributes
Name  Type  Use  Default  Fixed  Annotation
name  xs:string  required      
default  xs:string  required      
source
<xs:element name="PARAMETER" type="ParameterType" minOccurs="0" maxOccurs="unbounded"/>

element SITEBASIS/QUANTUMNUMBER
diagram
attributes
Name  Type  Use  Default  Fixed  Annotation
name  xs:string  required      
min  xs:string  required      
max  xs:string  required      
type  bosonorfermion  optional  fermionic    
source
<xs:element name="QUANTUMNUMBER" maxOccurs="unbounded">
  <xs:complexType>
    <xs:attribute name="name" type="xs:string" use="required"/>
    <xs:attribute name="min" type="xs:string" use="required"/>
    <xs:attribute name="max" type="xs:string" use="required"/>
    <xs:attribute name="type" type="bosonorfermion" use="optional" default="fermionic"/>
  </xs:complexType>
</xs:element>

complexType ParameterType
diagram
used by
elements SITEBASIS/PARAMETER HAMILTONIAN/PARAMETER
attributes
Name  Type  Use  Default  Fixed  Annotation
name  xs:string  required      
default  xs:string  required      
annotation
documentation 
gives default values for parameters
source
<xs:complexType name="ParameterType">
  <xs:annotation>
    <xs:documentation>gives default values for parameters</xs:documentation>
  </xs:annotation>
  <xs:attribute name="name" type="xs:string" use="required"/>
  <xs:attribute name="default" type="xs:string" use="required"/>
</xs:complexType>

simpleType bosonorfermion
type restriction of xs:string
used by
attribute SITEBASIS/QUANTUMNUMBER/@type
facets
enumeration bosonic
enumeration fermionic
annotation
documentation 
can be fermionic or bosonic
source
<xs:simpleType name="bosonorfermion">
  <xs:annotation>
    <xs:documentation>can be fermionic or bosonic</xs:documentation>
  </xs:annotation>
  <xs:restriction base="xs:string">
    <xs:enumeration value="bosonic"/>
    <xs:enumeration value="fermionic"/>
  </xs:restriction>
</xs:simpleType>


XML Schema documentation generated with
XML Spy Schema Editor www.xmlspy.com