Skip to content

Commit d4c7844

Browse files
committed
build post, instance_post, gap
1 parent e783fee commit d4c7844

File tree

1 file changed

+111
-0
lines changed

1 file changed

+111
-0
lines changed

schema/pvcollada_schema_0.1.xsd

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,26 @@ xmlns:collada="http://www.collada.org/2008/03/COLLADASchema">
6161
<xs:enumeration value="east-west" />
6262
<xs:enumeration value="tracker" />
6363
</xs:restriction>
64+
</xs:simpleType>
65+
<xs:simpleType name="post_type_enum" final="restriction">
66+
<xs:restriction base="xs:string">
67+
<xs:enumeration value="rack" />
68+
<xs:enumeration value="tracker" />
69+
<xs:enumeration value="fence" />
70+
</xs:restriction>
71+
</xs:simpleType>
72+
<xs:simpleType name="post_shape_enum" final="restriction">
73+
<xs:restriction base="xs:string">
74+
<xs:enumeration value="rectangle" />
75+
<xs:enumeration value="circle" />
76+
<xs:enumeration value="h-shape" />
77+
</xs:restriction>
78+
</xs:simpleType>
79+
<xs:simpleType name="post_inclin_enum" final="restriction">
80+
<xs:restriction base="xs:string">
81+
<xs:enumeration value="vertical" />
82+
<xs:enumeration value="perpendicular" />
83+
</xs:restriction>
6484
</xs:simpleType>
6585
<!-- objects for product-level data -->
6686
<xs:complexType name="module_type_object">
@@ -875,6 +895,78 @@ xmlns:collada="http://www.collada.org/2008/03/COLLADASchema">
875895
</xs:sequence>
876896
</xs:complexType>
877897
</xs:element>
898+
<xs:element name="post">
899+
<xs:annotation>
900+
<xs:documentation>This tag should only appear in the extra/technique section of a Collada node tag to define a model for a
901+
post. A post is a vertical object that supports a rack, tracker or fence. The node may have 1 or more instance_geometry
902+
descendant tags that contain an instance_post tag.</xs:documentation>
903+
</xs:annotation>
904+
<xs:complexType>
905+
<xs:sequence>
906+
<xs:element name="type" type="post_type_enum">
907+
<xs:annotation>
908+
<xs:documentation>The type of post (rack, tracker, fence).</xs:documentation>
909+
</xs:annotation>
910+
</xs:element>
911+
<xs:element name="depth" type="collada:float_type">
912+
<xs:annotation>
913+
<xs:documentation>The nominal underground depth of the post.</xs:documentation>
914+
</xs:annotation>
915+
</xs:element>
916+
<xs:element name="length" type="collada:float_type">
917+
<xs:annotation>
918+
<xs:documentation>The total length of the post including the portion underground.</xs:documentation>
919+
</xs:annotation>
920+
</xs:element>
921+
<xs:element name="diameter" type="collada:float_type">
922+
<xs:annotation>
923+
<xs:documentation>The diameter of the post cross-section.</xs:documentation>
924+
</xs:annotation>
925+
</xs:element>
926+
<xs:element name="inclination" type="post_inclin_enum">
927+
<xs:annotation>
928+
<xs:documentation>The nominal inclination of the post (vertical, perpendicular).</xs:documentation>
929+
</xs:annotation>
930+
</xs:element>
931+
<xs:element name="shape" type="post_shape_enum">
932+
<xs:annotation>
933+
<xs:documentation>The shape of the post cross-section (rectangle, circle, h-shape).</xs:documentation>
934+
</xs:annotation>
935+
</xs:element>
936+
</xs:sequence>
937+
</xs:complexType>
938+
</xs:element>
939+
<xs:element name="gap">
940+
<xs:annotation>
941+
<xs:documentation>This tag should only appear in the extra/technique section of a Collada node tag to define a model for a
942+
gap. A gap is a space between two racks on a tracker. The node may have 1 or more instance_geometry
943+
descendant tags that contain an instance_gap tag.</xs:documentation>
944+
</xs:annotation>
945+
<xs:complexType>
946+
<xs:sequence>
947+
<xs:element name="type" type="gap_type_enum">
948+
<xs:annotation>
949+
<xs:documentation>The type of gap (motor, joint)</xs:documentation>
950+
</xs:annotation>
951+
</xs:element>
952+
<xs:element name="rigid" type="xs:boolean">
953+
<xs:annotation>
954+
<xs:documentation>True of a gap is rigid, false if the gap allows the tracker torque tube to flex.</xs:documentation>
955+
</xs:annotation>
956+
</xs:element>
957+
<xs:element name="width" type="collada:float_type">
958+
<xs:annotation>
959+
<xs:documentation>The nominal width of the gap, i.e., the distance between the two racks.</xs:documentation>
960+
</xs:annotation>
961+
</xs:element>
962+
<xs:element name="joint_angle" type="collada:float_type" minOccurs="0">
963+
<xs:annotation>
964+
<xs:documentation>The maximum angle formed in a flexible gap.</xs:documentation>
965+
</xs:annotation>
966+
</xs:element>
967+
</xs:sequence>
968+
</xs:complexType>
969+
</xs:element>
878970
<!-- instances -->
879971
<xs:element name="circuit" type="circuit_type" />
880972
<xs:element name="instance_terrain">
@@ -959,6 +1051,25 @@ xmlns:collada="http://www.collada.org/2008/03/COLLADASchema">
9591051
</xs:element>
9601052
</xs:sequence>
9611053
</xs:complexType>
1054+
</xs:element>
1055+
<xs:element name="instance_post">
1056+
<xs:annotation>
1057+
<xs:documentation>This tag should only appear in the extra/technique section of a Collada instance_geometry tag to signal the
1058+
instance of a post. The attribute url of the instance_geometry must reference a Collada geometry that is
1059+
a model for a post (has a post tag in its extra/technique tag).</xs:documentation>
1060+
</xs:annotation>
1061+
<xs:complexType>
1062+
<xs:element name="installed_depth" type="collada:float_type" minOccurs="0">
1063+
<xs:annotation>
1064+
<xs:documentation>Installed depth underground of the post instance.</xs:documentation>
1065+
</xs:annotation>
1066+
</xs:element>
1067+
<xs:attribute name="id" type="xs:ID">
1068+
<xs:annotation>
1069+
<xs:documentation>Unique id for the post instance (can be referenced in instance_tracker or instance_fence)</xs:documentation>
1070+
</xs:annotation>
1071+
</xs:attribute>
1072+
</xs:complexType>
9621073
</xs:element>
9631074
<!-- geometry objects -->
9641075
<xs:element name="inverter3d">

0 commit comments

Comments
 (0)