20.01.2014 Views

SIS - Application Programmatic Interface, Reference Manual - ICS ...

SIS - Application Programmatic Interface, Reference Manual - ICS ...

SIS - Application Programmatic Interface, Reference Manual - ICS ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>SIS</strong>-<strong>Application</strong> <strong>Programmatic</strong> <strong>Interface</strong>, <strong>Reference</strong> <strong>Manual</strong><br />

end Body1<br />

TELL Individual (ABC-12345) in Token, CAT_ENGINE<br />

with cylinder<br />

c1 : Cylind1;<br />

c2 : Cylind2;<br />

c3 : Cylind3;<br />

c4 : Cylind4<br />

with gearbox<br />

gb : GB1<br />

with transmission<br />

tr : Transmis1<br />

with catalyst<br />

ca : Catalyst1<br />

end (ABC-12345)<br />

TELL Individual Cylind1 in Token, CYLINDER<br />

end Cylind1<br />

TELL Individual Cylind2 in Token, CYLINDER<br />

end Cylind2<br />

TELL Individual Cylind3 in Token, CYLINDER<br />

end Cylind3<br />

TELL Individual Cylind4 in Token, CYLINDER<br />

end Cylind4<br />

TELL Individual GB1 in Token, GEARBOX<br />

end GB1<br />

TELL Individual Transmis1 in Token, TRANSMISSION<br />

end Transmis1<br />

TELL Individual Catalyst1 in Token, CATALYST<br />

end Catalyst1<br />

ENDTRANSACTION<br />

Here follows the source code of an application, which uses the C programmatic<br />

interface (<strong>SIS</strong> C-API) to query the <strong>SIS</strong> data base which contains the model of Figure<br />

2.<br />

The application, does the following :<br />

1. Prints instances of "PhysicalObj".<br />

2. Prints instances of "PhysicalObj" and their instances too.<br />

3. Prints logical names of all links pointing from object CAR.<br />

4. Prints information for all links pointing from object CAR.<br />

5. Prints all links of meta-category Parts traversed, starting from object AMT-9655.<br />

August 2002/v2.2.2 -51- <strong>ICS</strong>-FORTH

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!