KOMET Unleashed - KometML

 1 <?xml version="1.0" encoding="utf-8" ?>
 2 <!DOCTYPE komet SYSTEM 'http://www.forst.wzw.tum.de/~mascht/Komet/komet.dtd'>
 3 <komet>
 4   <request>
 5     <dataTree>
 6       <item ontClass="BKZ" belongsTo="REUS" />
 7       <item ontClass="Variante" belongsTo="REUS" />
 8       <item ontClass="Aktiv" belongsTo="REUS" />
 9     </dataTree>
10   </request>
11 </komet>
Listing 1: XML message sent to the DSS Kernel (service request)
 
 1 <?xml version="1.0" encoding="utf-8" ?>
 2 <!DOCTYPE komet SYSTEM 'http://www.forst.wzw.tum.de/~mascht/Komet/komet.dtd'>
 3 <komet>
 4   <response>
 5     <dataTree>
 6       <table id="reus.variante" name="Varianten"
 7              dbName="reus_input_varianten">
 8         <column ontClass="BKZ" belongsTo="REUS"
 9                 id="reus.variante.bkz" name="BKZ" dbName="bkz" />
10         <column ontClass="Variante" belongsTo="REUS"
11                 id="reus.variante.var" name="Variante"
12                 dbName="variante" />
13         <column ontClass="Aktiv" belongsTo="REUS"
14                 id="reus.variante.aktiv" name="Aktiv"
15                 dbName="aktiv" />
16       </table>
17     </dataTree>
18   </response>
19 </komet>
Listing 2: Response of the DSS kernel to the request shown in Listin 1

The DSS kernel mediates between the subsystems of the KOMET Architecture and provides different services, which are requested by components of the subsystems. Therefore, a component sends a service request to the DSS kernel, which processes the request, generates a service response and sends the response back to the requesting component. KometML serves as a common language, which service requests and service responses are coded in.

KometML is the instance of an Extensible Markup Language (XML). Its formal description is available as a Document Type Definition (DTD). Because of its better readibility and the possibility to validate against a DTD only with tools provided with a Java Development Kit, a DTD was chosen to describe KometML instead of XML Schema.

The DTD of KometML is avalilable for download here.

One request tag for each service provided by the DSS kernel is defined. Because of this tag, the DSS kernel can distinguish which service is requested. Response tags for the service responses of the DSS kernel are defined accordingly. Some requests are answered by the DSS kernel by a success message or an error message. The Tags success and error are reserved for these messages.

Die Listing 1 shows the XML message sent to the DSS kernel by a component to request a certain service. The response of the DSS kernel to answer this particular request is shown in Listing 2.



Martin Döllerer - zuletzt geändert am 01.01.1970 um 01:00 Uhr