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

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

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

egin Quit:QuitIn; QuitCM:QuitInterface; newQuit;connectParms.QuittoQuit; receiveParmsfromInit; Quit1:=Parms.Quit1; 2.AMiniatureSystem53<br />

Quit2:=Parms.Quit2; returnParms; receiveQuitCMfromQuit; callQuit1(); callQuit2();<br />

simplied,butitillustratesmanyfeaturesofrealsystems.Forexample, 2.9Summary Inthissection,wehavebuiltacompleteminiaturesystem.Thesystemis endprocess returnQuitCM;<br />

itisafunctionalenhancement|windows|whichcanoperatewithclient programswhichweredesignedpriortotheenhancement.Itistransparent| thatis,theclientprogramsdonotneedtobechangedtousewindows. Itachievesthistransparencybyexploiting<strong>Hermes</strong>'abilitytorebindany outputporttoaninputportofmatchinginterface.Furthermore,because windowsystemitselfwithinoneofitsownwindowstogetnestedwindows. thewindowsystemasawholelookslikeast<strong>and</strong>ardclient,wecanrunthe<br />

<strong>and</strong>deleted. namically.Inthiscase,clientapplications<strong>and</strong>theportstothemareadded terminatingtheadapter. clientcanbeconstrainedtowriteonlyintotheappropriatewindow.And outputporttoanadapterwhichcallsaparticularwindow|thereforethe thewindowmanagercanrevokeanerrantclient'saccesstothewindowby Thisexampleillustrateshowwedividetheresponsibility<strong>and</strong>knowledge Thewindowmanagerillustrateshowsystemsaddordeleteservicesdy-<br />

Theapplicationbuilderillustratesaccesscontrol.Theclientispassedan<br />

convertbetweendierentinterfaces,<strong>and</strong>alsoallowaservicetobecut Thewindowmanagerh<strong>and</strong>lesthesetofwindowapplications|itprimarily dealswiththetableofactivewindows.Theadapter<strong>and</strong>buerprocesses amongtheprocessesofasystem.Thefrontenddealswithinputfromthe enduser.Itdoesstringh<strong>and</strong>ling,<strong>and</strong>convertsstringcomm<strong>and</strong>stocalls. o.Thewindowsystem<strong>and</strong>applicationbuilderprocessesload<strong>and</strong>link togetherotherprocesses. st<strong>and</strong>theessentialconcepts<strong>and</strong>usesof<strong>Hermes</strong>.Itshouldbeastraightfor- Ifyouunderst<strong>and</strong>howthewindowmanagersystemisbuilt,youunder-

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

Saved successfully!

Ooh no, something went wrong!