资源描述:
《数据流图与ER图考题解析》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、数据流图与ER图考题解析2.solutions.Drawingprinciple:Dataflowmustberelatedtoprocessing,Thereisnodataflowbetweenentitiesandentitles,storageandstorage,andnodataflowbetweenentitiesandentitles・Datastreamsthatflowintoprocessingdonothavethesamenameasthedatastreamthatflow
2、sout・(1)databalaneeprinciple・ConcealmentoflocaldatastorageWhenthedatastoredinadataflowgraphisnotthecorrespondingexternalinterfaceprocessedintheparentgraph,butonlythedatainterfacebetweencertainprocessesinthediagram,thesedataarestoredaslocaldatastorage.In
3、ordertoemphasizetheconcealmentoflocaldatastorage,ingeneral,localdatastoragecanonlybedrawnasinputsoroutputsofcertainprocesseddatainterfacesoraparticularprocess・Inaccordaneewiththetop-downmethod,adatastorageforthefirsttimewithonlyoneprocessing,thenthedata
4、storageshouldbeusedasthelocaldatastorageandprocess!ngoftheassociation,inthedatastreaminthesubgraphneednotdraw(thelayer),anddrawintheprocessingofthesubgraph,unlesstheprocessingforatomicprocessingTheprincipleofdatabalanceisdividedintotwoaspects:Accordingt
5、othehierarchicalrelationship,thedataflowgraphisgenerallydividedintothetopleveldataflowgraph,themiddledataflowgraphandthebottomdataflowgraph・Besidesthetoplayerdiagram,theremaininghierarchicaldataflowdiagramsarenumberedfrom0.Inahierarchicaldataflowdiagram
6、,theparentandchildgraphsshouldbebalanced,thatis,theinput/outputstreamofaprocessintheparentgraphmustbethesameastheinputandoutputdatastreamofitssubgraphinquantityandname・Anotheraspectofthedatabalanceissaid:eachprocessingmusthaveinputdatastreamandtheoutput
7、datastream,andaprocessingalloutputdataindatastreamcanbeobtaineddirectlyfromtheinputdataoftheprocessingflow,orthroughtheprocessingofdatagenerated.(1)afewspecificpointstopayspecialattentionto.Inadditiontotheflowofdatastorage(files)ortheflowofdatafromdatas
8、toragewithoutnaming,everyotherdatastreammusthaveanappropriatename・Theflowofdatatoafilethatrepresentsthedatathatiswrittenintoit,andthedatastreamthatflowsoutofthefilerepresentsthereadfile・Inthefulldataflowdiagram,eachfilemusthavebo