18.10.2014 Views

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

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>SIMSCRIPT</strong> <strong>II.5</strong> <strong>Programming</strong> <strong>Language</strong><br />

Figure 4-6 illustrates a collection of MAN entities having one possible relationship to each other. The<br />

relationships expressed in figure 4-6 are:<br />

1. COMMUNITY owns the set MASONS whose members are MAN1, MAN3, MAN4, and MAN5.<br />

2. MAN1 owns a set CHILDREN whose members are MAN2, MAN6, and MAN5.<br />

3. MAN2 owns a set CHILDREN whose single member is MAN4.<br />

These relationships are depicted in figure 4-7.<br />

MASONS<br />

MAN 1 CHILDREN<br />

MAN 2 CHILDREN<br />

COMMUNITY<br />

F.MASONS<br />

L.MASONS<br />

MAN 1 MAN 2 MAN 3 MAN 4 MAN 5 MAN 6<br />

P.MASONS<br />

S.MASONS<br />

F.CHILDREN<br />

L.CHILDREN<br />

P.CHILDREN<br />

S.CHILDREN<br />

Figure 4-6. Set Relationships<br />

An entity's attributes and set relationships can be declared in one or more every statements using<br />

attribute name clauses, set ownership clauses, and set-membership clauses. The clauses have the<br />

form:<br />

attribute clause<br />

has attribute name list<br />

or have attribute name list<br />

142

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

Saved successfully!

Ooh no, something went wrong!