28.01.2015 Views

Hermes: A Tutorial and Reference Manual - Researcher - IBM

Hermes: A Tutorial and Reference Manual - Researcher - IBM

Hermes: A Tutorial and Reference Manual - Researcher - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

drop(continued) SpecialRules:Thenumberofoper<strong>and</strong>smustequalthenumberofparametersdeclaredinthedenitionoftheattributenamedinthestatement<br />

AppendixB.<strong>Hermes</strong>Operations167 attributeparameter. qualier.Eachoper<strong>and</strong>mustalsomatchthetypeofthecorresponding Description:Removetheconstraintidentiedbytheinstructionquali- Qualier:constraintname empty(result,inport) TypeRules: er,appliedtothegivenoper<strong>and</strong>s,fromthecurrentprogramtypestate.<br />

Preconditions: result2boolean init(inport) inport2inport Exceptions:Depletion Seex11.11,p.132<br />

Description:Iftherearemessagesqueuedforreceiptoninport,setresult Qualier:absent var(result) tofalse.Otherwisesetresulttotrue. Postconditions:<br />

equal(result,source1,source2) makeinit(result)<br />

TypeRules: Preconditions: result2boolean init(source1) source1source2 Exceptions:Depletion Seex11.8,p.120<br />

Description:Ifsource1<strong>and</strong>source2areindistinguishableobjects,set Qualier:absent var(result) resulttotrue.Otherwisesetresulttofalse. init(source2) Postconditions: makeinit(result)<br />

every(result,table) TypeRules: result2table table2copyable SeealsoSpecialRules Exceptions:Depletion,(Uncopyable) table2table resulttableSeex11.1,p.94

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

Saved successfully!

Ooh no, something went wrong!