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.

180B.6.OperationDescriptions multiply(result,source1,source2) TypeRules: Preconditions: source12numeric init(source2) init(source1) result2numeric resultsource1source2 source22numeric Exceptions:Depletion<br />

Description:Storetheproductofsource1<strong>and</strong>source2inresult. Qualier:absent var(result) Postconditions:<br />

named{literal(result) makeinit(result)<br />

TypeRules: Preconditions: SeealsoSpecialRules result2enumerationorboolean Exceptions:Depletion Seex11.4,p.104<br />

SpecialRules:Thecharacterstringappearinginthestatementqualier Description:Setresulttotheenumerationvaluebelongingtoitsenumerationtype<strong>and</strong>namedbytheinstructionqualier.<br />

makeinit(result) mustequaloneofthenamesappearinginthedenitionofthetypeof result. var(result) Postconditions:<br />

Qualier:literal new(result) TypeRules: Preconditions: result2newable var(result) Postconditions: makeinit(result) Exceptions:Depletion Seex11.4,p.104<br />

Description:Createanewobjectoftheappropriatetype<strong>and</strong>storeit Qualier:absentSeex11.5,p.107;x11.6,p.108;<strong>and</strong>x11.8,p.120 inresult.Allcomponentsofanewlycreatedrecordareuninitialized. Anewlycreatedtableisempty.Anewlycreatedinputportisnot connectedtoanyoutputport<strong>and</strong>hasnoqueuedmessages.

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

Saved successfully!

Ooh no, something went wrong!