18 Pages

Geog5561Munit3

Course: GEOG 5565, Fall 2009
School: East Los Angeles College
Rating:
 
 
 
 
 

Word Count: 4135

Document Preview

Theaimsofthisunitaretointroduce: Geog5561MIntroductiontoJavaProgrammingUnit3Notes Operators,VariablesandControlStatements operatorprecedence variabletypecasting arangeofcontrolstatements variableandObjectscope Exceptions Oncompletionofthisunityoushouldbe: abletoapplyoperatorprecedenceandvariablecasting familiarwitharangeofcontrolstatementsandknowwhentoapplythem abletoprogramasimpleGISinJavausingBlueJ....

Register Now

Unformatted Document Excerpt

Coursehero >> California >> East Los Angeles College >> GEOG 5565

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
Theaimsofthisunitaretointroduce: Geog5561MIntroductiontoJavaProgrammingUnit3Notes Operators,VariablesandControlStatements operatorprecedence variabletypecasting arangeofcontrolstatements variableandObjectscope Exceptions Oncompletionofthisunityoushouldbe: abletoapplyoperatorprecedenceandvariablecasting familiarwitharangeofcontrolstatementsandknowwhentoapplythem abletoprogramasimpleGISinJavausingBlueJ. Contents Geog5561MIntroductiontoJavaProgrammingUnit3Notes ................................................................ 1 Contents ........................................................................................................................................ 1 1Introduction ......................................................................................................................................... 1 2Variables ............................................................................................................................................. 1 2.1OperatorPrecedence .................................................................................................................. 1 2.2Casting ........................................................................................................................................ 1 2.3TheNullValue ............................................................................................................................. 4 2.4FinalVariables ............................................................................................................................. 5 3ControlStatements ............................................................................................................................. 6 3.1Theif/elseif/elseLadder .......................................................................................................... 6 3.2TheswitchStatement .................................................................................................................. 7 DownloadSalon.javafromthemodulewebsiteforthisunit. .............................................................. 8 3.3forLoopsRevisited ...................................................................................................................... 9 3.4whileLoops .................................................................................................................................. 9 3.5OtherControlStatements .......................................................................................................... 10 3.5.1Break .................................................................................................................................. 10 3.5.2Continue ............................................................................................................................. 11 4Exceptions ........................................................................................................................................ 11 5Tasks ................................................................................................................................................ 14 1Introduction Inthisunitwewillexaminevariables,operatorsandcontrolstatementsinmoredetail. 2Variables IfyourememberfromUnit1,variablesarethingsthatwewanttodosomethingto,suchas data,words,numbers,etc.Weusedtheradiusoftheearthasanexampleofaninteger variabletoillustratehowstatementsworked.Inthissectionwelookatoperatorsandtheir order of precedence as well casting and some assumptions that Java makes about variables. 2.1OperatorPrecedence Operatorshaveadefiniteorderinwhichthingsaredone.Supposeyouwishtoadd6and6 togetherandthendividetheresultby3.YoumightwritethisinJavaasfollows: int i = 6 + 6 / 3; Theresultwillbe8forthevariable i andnot4,asyoumightexpect.Thisisbecausea divisionoperator(/)hasprecedenceovertheadditionoperator(+)sothedivisioniscarried outfirst,yielding2,whichisthenaddedto6,yielding8.Thisisanexampleofanambiguous statement.Itisalwaysbesttouseparenthesestomaketheorderofoperationsclear.To performtheadditionfirst,youwouldwritethestatementasfollows: int i = (6 + 6) / 3; Fulldetailsoftheprecedenceofdifferentoperatorscanbefoundat: http://java.sun.com/docs/books/tutorial/java/nutsandbolts/expressions.html Evaluatethefollowingexpressionsusingtherulesofoperatorprecedencefoundinthe websiteabove: 1. i=5+6*9 2. i=(82)/3 3. i=6+(5+(74)/(2+1))*2 2.2Casting Castingistheconversionofonetypeofvariabletoanother.Castingcanbedoneinvisibly withsomesimpletypes,forexample: int m = 3; givesi=3.0 ReferbacktoAppendixAinUnit1ifyouneedtorefreshyourmemoryonwhatconstitutes anint,float,double,etc. double i = m; Geog5561MIntroductiontoJavaProgrammingUnit3 1 Thisisusuallypossiblewithsimpledatatypeswherethereisnolossofprecision. Inaddition,thiskindofimplicitcastingisaveryimportantfeatureofinheritance.Oneofthe great things about Subclasses is that, because they contain everything their Superclass does,youcantreatthemasiftheyaretheSuperclass. For example, say you have a Button Class that expects to be passed an Object implementing the ActionListener Interfaceso theObject candostuff whentheButtonis pushed.HerestheActionListenerInterface: public interface ActionListener { public void actionPerformed(); } Herestheclass/methodthatmighttakeinsuchanObject: class Button { ActionListener myListener; public void addActionListener (ActionListener a) { myListener = a; } } NowbecauseSubclassescanbetreatedliketheirSuperclasses,wecanmakeaClassthat implementstheActionListenerInterfaceandmakeanObjectoutofit.HeressuchaClass: Class OurButtonListener implements ActionListener { public void actionPerformed() { do stuff } public void newMethod() { do new stuff } } WecanthenpassthisObjecttotheButtonsaddActionListenermethodanditllswallowit, eventhoughithasthenewMethodinit,whichisntspecifiedbytheActionListenerInterface! ItsnotbotheredaboutanyotherstuffwemighthaveputintheClass,aslongasithasthe methodstipulatedbyActionListener. OurButtonListener b = new OurButtonListener(); button.addActionListener(b); Geog5561MIntroductiontoJavaProgrammingUnit3 2 So you can see that again, like the simple types, as long as we dont lose any useful information(numericalprecisioninthecaseofsimpletypes,usefulmethodsinthecaseof Objects)thecastingwillbedoneinvisiblybythesystem. However,forsomeconversionsyouwillneedtodoanexplicitcast.Thesyntaxforexplicit castingis: (target type) variable; HereisanexamplewherewehaveexplicitlycastanintegervariablecallednumberOfCars toabyte: int numberOfCars = 150; byte number; number = (byte)numberOfCars; Javaalwaysassumesthatanynumberwithadecimalpointisadouble.Ifyouwanttomake itafloat,youhavetobeexplicitasfollows: float f = (float)2.5; OR float f = 2.5f; EquallyJavaassumesthatnumberswithoutdecimalplacesareintegers: double d = (double)3; OR double d = 3d; ImportantNote:Thiscausesproblemsinmaths,asroundingtointegerswilloccurifan equation contains any integer. It is critical you realise this if you intend to do any mathematics.Tostopthishappening,alwaysgivefigureswithdecimalpoints,e.g.: double d = 3.7 / 2.0; not double d = 3.7 / 2; WhenitcomestoObjects,therearealsocircumstanceswhereanexplicitcastisnecessary. ThisisusuallywhenyouvebeentreatinganObjectasitsSuperclassbutyoudliketogetat itsSubclassmethods.Forexample,letsreturntoourButtonClass.Sayitwantstogetat the newMethod of the OurButtonListener Class Object we passed into it using the AddActionListener Method. Remember that the Button thinks the Object is of the ActionListenerClass,soitcantgetattheseMethodsyet.Thewaytodothisistocastthe supposedActionListenerObjectintoitsproperClass,thus: class Button { ActionListener myListener; Geog5561MIntroductiontoJavaProgrammingUnit3 3 public void addActionListener (ActionListener a) { myListener = a; OurButtonListener obl = (OurButtonListener) a; obl.newMethod(); } } Just using a.newMethod() isnt allowed because the argument specified by AddActionListener is an ActionListener, which doesnt have a newMethod. The Object pretending to be an ActionListener has the method in it, but only an explicit cast will persuadeittorevealitstruecolours. Note:someconversionsareactuallytoohardforthesystemtodousingeventhistechnique, forexample,betweenaStringandanint.FortunatelytherearesomeClassesthatcome aspartoftheJVMthatcanhelpwiththis.WellbelookingattheseinalaterUnit. 2.3TheNullValue If we declare a nonsimple variable label (i.e. an Object label) but dont initialise it by attachingittoanObject,thecomputerwillnotknowattheoutsethowlargeitshouldbe. Thus,itcannotsetasideanabsolutechunkofmemory.Instead,itsetsasideasmallchunk andtellsitselfthatthisspacewillbeenlargedinthefuture.Inthesmallchunkofmemory thatitputsaside,itplacesatemporaryvalue,calledthenullvalue.Thenullvalueisvery importantwhenweconsiderissuesofscope.Letslookataproblemcase. SaywewanttouseanifstatementtosetupanObject.Wecouldtrysomethinglikethis: if (needPoint == true) { Point point1 = new Point(); } point1.setX(10); However,thescopeofthe point1 variableistheblockitisdeclaredin,sothecompiler wontrecognisethevariableinthelastline.Analternativewouldseemtobe: Point point1; if (needPoint = true) { point1 = new Point(); } point1.setX(10); However,thecompilerwillrealisethattheresachancethatpoint1hasntbeeninitialised, anditllrefusetocompile.Theactualsolutionistousethenullvalueexplicitly,likethis Point point1 = null; Geog5561MIntroductiontoJavaProgrammingUnit3 4 if (needPoint = true) { point1 = new Point(); } if (point1 != null) point.setX(10); 2.4FinalVariables InthelastUnitwelookedatusingInterfacestoforcepeopletoputincertainmethods.What wedidntsayisthatyoucanalsoputvariablesintoInterfaces.Hereisanexample public interface Point { int ORIGIN_X = 0; int ORIGIN_Y = 0; int xDistanceToOrigin (int x) ; } class Land implements Point { int xDistanceToOrigin (int presentX) { return presentX - ORIGIN_X; } } VariablesdeclaredinanInterfacecanbeusedinimplementingClasses,buttheirvaluesare fixed.Ifyouvedoneanyprogramminginotherlanguages,youllknowthesevariablesas constants. Because theyre special, they usually get written in ALL_CAPITALS. Theyre usefulfordefiningthingslikepiorethatarentusefullychanged.Youcanactuallydothis innormalClassesbyusingthefinalkeyword,thus: final int PI = 3.14; final String CONSTANT_OF_LIFE_1 = Death; final String CONSTANT_OF_LIFE_2 = Taxes; NotethatyoudonotneedtoimplementtheInterfacevariablestousethem. Hereisanother example: public interface City { String ROME = Paris of the South; String PARIS = Rome of the North; } class Point implements City { void getAlternativeName () { Geog5561MIntroductiontoJavaProgrammingUnit3 5 System.out.println(Roma, + ROME); } } YoucanalsodeclareClassesandMethodsasfinal.Classesdeclaredasfinalcannot beinheritedandMethodsdeclaredas finalcannotbeoverridden.Aswesawinthelast Unit, overriding happens when you call a Method in the Subclass the same thing as a MethodintheSuperclassandtheargumentsarethesame.InthissituationtheSubclass MethodwillbeusedsotheSuperclassisoverridden.Thecompilerwontletyouhavea SubclassMethodthesameasaSuperclassmethodiftheMethodisfinal. Wewillnowmoveontolookingatcontrolstatementsinmoredetail. 3ControlStatements IfyourememberfromUnit1,welookedat2maintypesofcontrolstatements:if/elseand for.Inthissectionweexpandtherangeofcontrolstatementsthatareavailable. 3.1Theif/else if/elseLadder Toremindyou,asimpleif/elsestatementcantakeoneofthefollowing4forms: if (condition) statement; if (condition){statements;} if (condition) statement; else statement; if (condition){statements;} else {statements;} However,itispossibletohavemorecomplicatedstructuressuchasthoseshownbelow: if (condition) statement or {statements;} else if (condition) statement or {statements;} else if (condition) statement or {statements;} else statement or {statements;} Geog5561MIntroductiontoJavaProgrammingUnit3 6 Thisisknownastheif/else if/elseladder.Notethatyouneedmultipleifteststo reachthedefaultelseatthebottomoftheladder.Thisstructureworkswellwhenthereisa higherlikelihoodthatsomechoiceswillhappenthanothers.Youcanputtheconditionsin order of this likelihood, and, chances are, the computer will only have to spend time assessing one or two of them. But if what all the conditions have an equal chance of occurring?Inthiscasethecomputermayhavetoassesseachcondition.Thiscantakea relativelylongtime.Undertheseconditionsitmaybebettertouseaswitchstatement. 3.2TheswitchStatement The switch statement takes a little longer torunthan a single if/else statement, but provides an efficient if /else if / else ladder replacement as it only requires one conditionassessment.Thesyntaxisasfollows: switch (variable) { case value1: statement1; break; case value2: statement2; break; case value3: statement3; break; default: statement4; } Forexample: int day = 2; switch (day) { case (1): System.out.println (Today is Saturday!); break; case (2): System.out.println (Today is Sunday!); break; default: Geog5561MIntroductiontoJavaProgrammingUnit3 7 System.out.println(The rest are work days!); } Thevalueofthenamedvariabledetermines whichblock ofstatementsis executed.For example,ifthevariableequalsvalue2,statement2willberun,andthenthecomputerwill jumptothelastbracketatthebottomoftheswitchblock. Thebreakstatementattheendofeachcaseisoptional.Ifyouweretoleaveoneout,the computerwouldnotexittheswitchblockbutwould,instead,justevaluatethesubsequent case statements. For example, if the break in the value2 block was missing and the variablewasequaltovalue2,statement2andstatement3wouldberun.Itsprettyrare youdwanttodothis.Oneexamplemightbeifyouhadanelectronicmenuthatshowedall themealsfortheremainingdaysinaweek.Youcouldusethecurrentdayvalue(between1 and7)toskipthedaysoftheweekthathavealreadypassed,andthenrunthroughthe remainingdayscasestoprintwhatwascomingup. Notethatthevaluesthemselvesaftereachcasestatementcannotbevariables.Notealso thatallthevaluesmustbedifferentandthestatementsdonoteachneedtobeinsidetheir ownblock.Theswitchblockistheblocktheyrunin. DownloadSalon.javafromthemodulewebsiteforthisunit. Salon.java offers some advice on a number of haircuts. The user has to hardwire a descriptionoftheirhairintothecode. Replacetheif/else if/elseladderinthiscodewithaswitchstatement. Finally,youmightseeifstatementsassigningvaluestovariableslikethis: variableName=(condition)?value1:value2; forexample: int value = (w * h > 255) ? 255 : w * h; ?: is a ternary operator. The above means if w times h is greater than 255, make value 255, otherwisemakeitwtimesh. Thismight seem likea ratherunobviouswayof writing an if statement. It is. However, it is also compactandelegant.?:isrealJavakungfu;useitandyoullmarkyourselfoutasjustthatlittlebit morespecial. Geog5561MIntroductiontoJavaProgrammingUnit3 8 3.3forLoopsRevisited IfyourecallfromUnit1,theformoftheforloopisasfollows: for (variable initialization; condition; increment) {statements;} Itisusualtodeclarethevariable,i.e.thecounter,intheforstatement. Notethatnoneoftheexpressionsinthestatementarecompulsory.Thusthefollowingis perfectlylegitimate: int a = 5; for ( ; done != true ; ) { if (a = 10) done = true; a++; } Asithappens,youdonotevenneedthecondition,ifyouwanttocreateaninfiniteloop,e.g.: int a = 5; for ( ; ; ) { a++; } Aninfiniteloopisdangerousbecauseyouwillneverbeabletoexitbutitispossibleto createone. Youcanalsoseparatemultiplevariablesandincrementswithacomma,asshownbelow: for (int a=0, int b=10; a > b; a = a*2, b++) { System.out.println(a = + a + b = + b); } 3.4whileLoops Awhileloopisamoreeffectiveloopthantheforloopwhereyoudontneedtoincrement avariableandjustwantacondition.Thesyntaxforthisis: Example: while (condition) { statements; } } while (found != true) { found = isFileFound(); Geog5561MIntroductiontoJavaProgrammingUnit3 9 The statement(s) enclosed in the block will only run if the condition, which is assessed beforetheblockisrun,istrue. Itisalsopossibletoplacethewhile conditionattheendoftheblock,inwhichcaseyou precedetheblockwithado: do { statements; } while (condition) Inthiscase,thestatementsarerunoncewhetherornottheconditionistrueandthenonly runagainwhiletheconditionremainstrue. 3.5OtherControlStatements IfyouhaveevercodedinanoldcomputerlanguagelikeBASICyouwillhaveusedthegoto statement,aterriblestatementthatletsyoujumparoundintheprogramtodifferentcode linenumbers.Thisresultedincodethatwasverydifficulttofollow.Thereisagotokeyword inJava,butitsheldinverypoorregard. TherearesaferequivalentsinJavaintheformofthebreakandcontinuekeywords.These canbeequallymisused,buttherearesomelegitimateusesforthem.Wevealreadyseen oneuseforbreakintheswitchstatement. 3.5.1Break Abreakstatementexitsthecurrentblockandstartsthecoderunningagainafterthelast bracket: break; Agooduseforthisisinsearchingroutines.Sayyouwanttosearchthroughalonglistof things,gettingthenextitemacrossthenetworkonceyouvelookedatthecurrentitemand decideditsnottheoneyourelookingfor.Inthiscase,youdontwanttorunthecodethat getsthenextitemifyoufindtheoneyouwant.Atthispointifthenbecomesusefultohave somethinglike if (item == lookedFor) break; Amoredeadlybreakstatementallowsyoutojumptotheendofanamedblockofcode providedtheblockyouareinisnestedinsidethenamedblockatthetime.Younamea blockbyprecedingitsfirstbracketwithanameandacolon.Forexample: boolean t = true; blockOne: { blockTwo: { blockThree: { if (t == true) break blockTwo; Geog5561MIntroductiontoJavaProgrammingUnit3 10 System.out.println(This is not printed); } System.out.println(This is not printed); } System.out.println(This is printed); } However,thisisveryhardtounderstandincomplexprograms,andisregardedbymost programmersasanextremelyembarrassingadmissionofincompetence. 3.5.2Continue A continue statement skips the rest of a loop and goes back to the loops conditional statement,orinthecaseofaforloop,theincrementstatement: continue; Thefollowingcodeskipsbacktothebeginningoftheforloopforevennumbers,butprints outoddnumbers: for (int i = 0; i < 20; i++) { if (i%2 == 0) continue; System.out.println(i + is an odd number); } Aswithbreak,youcanjumptoanarbitrarylabelledblockbyputtingthelabelnameafter thecontinue,providedyouarenestedwithinthatblock.Itsveryunlikelyyoulleverhave tousecontinue. 4Exceptions Thereisonefinalimportantflowcontrolstatementweneedtounderstand,andthatisthe trycatchblocks.Thetrycatchblocksareusedunderaveryspecialcircumstance;theyare usedwheneverythinggoeswrong.Tounderstandhowtheywork,letslookatwhathappens whenaprogrambreaks. Thereareawholesetofprogrammingproblemsthatareessentiallyunpredictable.These areknownasruntimeexceptions(anexceptionistheJavatermforaproblemwiththe programwhichstopsitworkingwhileitisrunning;thetermerrorisspecificallyreservedfor problems withtheJVM andsomeother issues deep intheJava system). For example, runtime exceptions are generated where the user tries to do something impossible, like divideanumberbyzero.Whenaruntimeexceptionoccurs,theJVMgeneratesanobject representing it of type RuntimeException and throws it into the code at the point the problemarose.Thisobjectlooksaroundthecurrentmethodcodeforsomethingtodealwith it.Ifitcantfindanything,itmovestowhereverthemethodwascalledfromanddoesthe same.Itkeepsdoingthisuntilitreachesthemainmethod,whereitthenjumpstotheJVM. The JVM can cope with RuntimeExceptions, but not very elegantly it crashes the programandprintsoutthe RuntimeExceptionsstacktracethisisarecordofallthe codetheExceptionhasbouncedthrough. Geog5561MIntroductiontoJavaProgrammingUnit3 11 Obviously,ifyouareauser,thisisntideal.Anyonewhohashadaprogramcrashonthem will know ...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Toledo - ECE - 1724
Special Topics in Software Engineering: Dependable SystemsAshvin GoelElectrical and Computer Engineering University of TorontoECE 1724F, Fall 20071TopicsOverview What are dependable systems?Why do we care about them?Why do systems stop?Wh
East Los Angeles College - GEOG - 5565
Geog5561MIntroductiontoJavaProgrammingTheArtofProgramming1:Algorithms 1IntroductiontotheArtofProgramming Computerprogrammingoftenseemstobeallaboutlogicandstructure,buttheresalot more to it than just remembering the language youre learning:
Toledo - ECE - 1746
IntroductionAshvin GoelDistributed Systems, ECE 1746, Fall 20031TopicsClass format Characteristics of distributed systems Design issues in distributed systems Should distributed systems behave like centralized systems?2Class FormatClass w
Toledo - ECE - 1746
Failures Transaction Processing: RecoveryCPS 216 Advanced Database Systems System crashes in the middle of a transaction T; partial effects of T were written to disk How do we undo T (atomicity)? System crashes right after a transaction T commit
East Los Angeles College - GEOG - 5565
Geog5561MIntroductiontoJavaProgrammingTheArtofProgramming4:Elegance 1Introduction It is easy to write code that works but runs badly and is impossible to understand. Programmers,therefore,haveanotionof elegance,i.e.doingsomethinginthe
Toledo - ECE - 1746
IEEE TRANSACTIONS ON COMPUTERS, VOL. 39, NO. 4, APRIL 1990447Coda: A Highly Available File System for a Distributed Workstation EnvironmentMAHADEV SATYANARAYANAN, MEMBER, IEEE, JAMES J. KISTLER, PUNEET KUMAR, MARIA E. OKASAKI, ELLEN H. SIEGEL, A
East Los Angeles College - GEOG - 5565
Geog5561MIntroductiontoJavaProgrammingUnit4NotesArraysandPackagesTheaimsofthisunitareto: introducesingleandmultidimensionalarrays introducepackagesandhowtoimportthem showyouhowtobuildabasicrasterGIS showyouhowtousethedocumentationOncompleti
Toledo - ECE - 1746
A Distributed Multiplayer Game Server SystemEric Cronin Burton Filstrup Anthony Kurc Electrical Engineering and Computer Science Department University of Michigan Ann Arbor, MI 48109-2122 ecronin,blstru,tkurc @eecs.umich.edu May 4, 20012Chapter
Toledo - ECE - 1746
An Efcient Synchronization Mechanism for Mirrored Game ArchitecturesEric Cronin Burton Filstrup Anthony R. Kurc Sugih JaminElectrical Engineering and Computer Science Department University of Michigan Ann Arbor, MI 48109-2122{ecronin,blstru,tkurc,
East Los Angeles College - GEOG - 5565
Geog5561MIntroductiontoJavaProgrammingUnit1NotesGettingStarted Theaimsofthisunitareto: provideanoverviewofthemodule providesomebackgroundtoJava explainwhywewouldwanttouseit introduceyoutothecoreJavalanguage getyoustartedprogrammingOncompleti
Toledo - ECE - 1746
Resource Overbooking and Application Profiling in Shared Hosting PlatformsSummary:This paper describes a system that uses overbooking to improve resourceutilization while providing statistical resource reservation guarantees toapplications in a
Toledo - ECE - 242
Lab 3 marking scheme (courtesy of Sudhanshu Govil - sudg at excite dot com)1/1 - if it compiles.1/1 - if there are no warnings. (0.5 if the only warnings are not including a file like stdlib.h.)1/1 - for good style. (0.5 if there a
Toledo - ECE - 242
ECE242F 2003 MIDTERM INFORMATION-As you all know, the midterm test for the course is this comingMonday, November 3 from 6pm to 8pm. Prof. Clarke's section(LEC02) will write in SF3201 and my section (LEC01) will writein SF3202. The midterm exam
East Los Angeles College - GEOG - 5565
Geog5561MSection4.3AnswersThe Java compiler (javac.exe) and the Java interpreter (java.exe) are circled below in red and black respectively.Theruntimeenvironmentonlycontains theinterpreterwhilethedevelopment environment containsboth.
Toledo - ECE - 1387
University of Toronto, Faculty of Applied Science and Engineering Department of Electrical and Computer Engineering ECE 1387F - CAD for Digital Circuit Synthesis and Layout September 2006 J. AndersonGraphics Package for X11 and PostScript Displays
East Los Angeles College - GEOG - 5565
Geog5561MIntroductiontoJavaProgrammingUnit3PracticalBuildingaGIS InthispracticalwearegoingtobuildourfirstGISusingBlueJ.Wewillbuilditinpartssothat wecantestitateachstage.Testingaprogramwheneveryoucompleteasmallpartofitis standardgoodpracticeinsoftwar
Toledo - ECE - 1387
Can Recursive Bisection Alone Produce Routable Placements?Andrew E. Caldwell, Andrew B. Kahng and Igor L. Markov UCLA Computer Science Dept., Los Angeles, CA 90095-1596 fcaldwell,abk,imarkovg@cs.ucla.eduAbstract This work focuses on congestion-d
East Los Angeles College - GEOG - 5565
Geog5561MIntroductiontoJavaProgrammingUnit4PracticalArrays 1IntroductionInthispracticalwearegoingtousewhatwehavelearntaboutarraystoextendoursimple GIS.WearegoingtouseittodoasimpleRasterbasedanalysis.Inlinewithcurrentmedia andgovernmentfearmongerin
Purdue - ICS - 671
Mean Independence ViolationsEcon 671Purdue UniversityMarch 9, 2009Justin L. Tobias (Purdue)Mean Independence ViolationsMarch 9, 20091 / 24To this point, we have discussed variations on the second moment assumption, E ( |X ) = 2 In , bu
Toledo - ECE - 1387
620IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN, VOL. 1 1 , NO. 5 , MAY 1992A Detailed Router for Field-Programmable Gate ArraysStephen Brown, Student Member, IEEE, Jonathan Rose, Member, IEEE, and Zvonko G . Vranesic, Senior Member, IEEEAbstrac
East Los Angeles College - GEOG - 5565
Geog5561MIntroductiontoJavaProgrammingUnit1PracticalGettingStarted Thispracticalwillintroduceyoutoarangeofrelevantonlineresources,getyoutodownload andinstallSunsJavaDevelopmentKitandcompileandrunyourfirstJavaprogram.1OnlineResourcesThemostimport
Toledo - ECE - 1387
17.1Generic Global Placement and FloorplanningHans Eisenmann and Frank M. Johannes http:/www.regent.e-technik.tu-muenchen.de Institute of Electronic Design Automation Technical University Munich 80290 Munich GermanyAbstractWe present a new for
Toledo - ECE - 1387
IEEE TRANSACTIONS ON COMPUTER AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, VOL. 19, NO. 12, DECEMBER 20001449Fundamental CAD AlgorithmsMelvin A. Breuer, Fellow, IEEE, Majid Sarrafzadeh, Fellow, IEEE, and Fabio SomenziAbstractComputer-aided
East Los Angeles College - GEOG - 5565
Geog5561MIntroductiontoJavaProgrammingTheArtofProgramming3:Documentation 1Introduction AswesawwhenwelookedatAlgorithms,itsquitepossibletocommentyourcodewith short explanations in English (or any other language). Indeed, it is vital that you do
Toledo - ECE - 1387
1997 International Workshop on Field Programmable Logic and ApplicationsVPR: A New Packing, Placement and Routing Tool for FPGA Research1Vaughn Betz and Jonathan RoseDepartment of Electrical and Computer Engineering, University of Toronto Toronto
Toledo - ECE - 1387
IEEE JOURNAL OF SOLID-STATE CIRCUITS, VOL. 26, NO. 3, MARCH 1991277Flexibility of Interconnection Structures for Field-Programmable Gate ArraysJonathan Rose, Member, IEEE, and Stephen Brown, Student Member, IEEEAbstract -This paper explores th
Toledo - ECE - 1387
East Los Angeles College - GEOG - 5565
Geog5561MIntroductiontoJavaProgrammingTheArtofProgramming2:UML 1.1Introduction Professionalprogramminginindustryisusuallycarriedoutwithinmuchlargerprojectsusing teams of people working together. Therefore, we need standard ways of represe
Toledo - ECE - 1387
RQL: Global Placement via Relaxed Quadratic Spreading and LinearizationNatarajan Viswanathan 1,2 , Gi-Joon Nam 1 , Charles J. Alpert 1 , Paul Villarrubia 1 , Haoxing Ren 1 , Chris Chu 21IBM Corporation, 11501 Burnet Road, Austin, TX 78758{nvi
Toledo - ECE - 1387
PathFinder: A Negotiation-Based Performance-Driven Router for FPGAsLarry McMurchie and Carl Ebeling Dept. of Computer Science and Engineering University of Washington, Seattle, WAAbstract Routing FPGAs is a challenging problem because of the relat
Toledo - ECE - 1387
IEEE TRANSACTIONS ON VERY LARGE SCALE INTEGRATION (VLSI) SYSTEMS, VOL. 7, NO. 1, MARCH 199969Multilevel Hypergraph Partitioning: Applications in VLSI DomainGeorge Karypis, Rajat Aggarwal, Vipin Kumar, Senior Member, IEEE, and Shashi Shekhar, Sen
Toledo - ECE - 1387
Are Floorplan Representations Important In Digital Design?Hayward H. Chan , Saurabh N. Adya and Igor L. Markov The University of Michigan, Department of EECS, 1301 Beal Ave., Ann Arbor, MI 48109-2122 Synplicity Inc., 600 W. California Ave, Sunnyvale
Toledo - ECE - 1387
Branch and Bound Algorithms Principles and Examples.Jens Clausen March 12, 1999Contents1 Introduction. 2 B&amp;B - terminology and general description. 2.1 Bounding function. . . . . . . . . . . . . . . . 2.2 Strategy for selecting next subproblem. .
Allan Hancock College - OSSA - 1987404
OCCUPATIONAL SUPERANNUATION STANDARDS ACT 1987 NO. 97, 1987 OCCUPATIONAL SUPERANNUATION STANDARDS ACT 1987 NO. 97, 1987 - TABLE OF PROVISIONS1. Short title 2. Commencement 3. Interpretation 4. Application of Act in relation to periods befo
Toledo - ECE - 1387
Engineering Details of a Stable Force-Directed Placer*Kristofer Vorwerk Andrew Kennings Anthony VannelliDept. of E W E , University of Waterloo Dept. of E&amp;CE, University of Waterloo Dept. of E&amp;CE, University of Waterloo Waterloo, Ontario, Canada Wa
Toledo - ECE - 1387
722IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, VOL. 24, NO. 5, MAY 2005FastPlace: Efcient Analytical Placement Using Cell Shifting, Iterative Local Renement, and a Hybrid Net ModelNatarajan Viswanathan, Member,
Toledo - ECE - 1387
University of Toronto, Faculty of Applied Science and Engineering Department of Electrical and Computer Engineering ECE 1387 - CAD for Digital Circuit Synthesis and Layout Exercise #1 - Simulated Annealing-based Placement and Timing-Driven Negotiated
Toledo - ECE - 1387
A Crosstalk-Aware Timing-Driven Router for FPGAsSteven J. E. WiltonDepartment of Electrical and Computer Engineering University of British Columbia Vancouver, B.C., Canadastevew@ece.ubc.ca ABSTRACTAs integrated circuits are migrated to more adva
Toledo - ECE - 1387
3.3Improved Global Routing through Congestion EstimationRaia T. Hadsell and Patrick H. Madden SUNY Binghamton CSD Box 6000 Binghamton NY 13902 raia@math.binghamton.edu pmadden@cs.binghamton.edu http:/vlsicad.cs.binghamton.eduABSTRACTIn this pap
Toledo - ECE - 1387
University of Toronto, Faculty of Applied Science and Engineering Department of Electrical and Computer Engineering ECE 1387 - CAD for Digital Circuit Synthesis and Layout Exercise #3 - Floorplanning via the Sequence Pair Approach Fall 2007 Assignmen
Toledo - ECE - 241
Appendix DTutorial 3 Physical Implementation in a Programmable Logic DeviceIn this tutorial we focus on the physical implementation of a design project in a target device. We show how to manually choose which pins on a device package are used for
East Los Angeles College - GEOG - 5565
Geog5565 Introduction to Java Programming Unit 7 PracticalImage Processsing and File Writing 1 Introduction In this practical we'll be reading in a file of an oblique satellite coverage, turning it into a Image, doing some processing on it, and writ
Toledo - ECE - 1776
Stronger Password Authentication Using Browser ExtensionsPresented at 14th USENIX Security Symposium, July 31 August 5, 2005. Baltimore, MDBlake Ross, Collin Jackson, Nick Miyake, Dan Boneh, John Mitchell (Stanford University)By John Leggio Tues
East Los Angeles College - GEOG - 5565
Geog5565 Introduction to Java Programming Unit 7 NotesInput, Output and Network Communications The aims of this unit are to: Provide an overview of reading to and writing data from files Explain network communication in greater detail.On comple
Toledo - ECE - 1776
.9 $0.:73,9,390;03941425:907%019 /9072#05479#0300,773073 47/07 94 570;039 /,9, ,3/ /0399 9019 3 90 0;039 41 .425:907 9019 , .75947,5. 10 88902 -0 25020390/43,89,3/,7/!7:333903: 4507,9388902&amp;543-449:5 90/0.759435,8857,80 -0 4-9,30/ 1742
East Los Angeles College - GEOG - 5565
Geog5565 Introduction to Java Programming Unit 2 NotesObjects and the Object Orientated ApproachThe aims of this unit are to: define objects and their methods introduce the object orientated approach explain how Java implements this approach
Toledo - ECE - 1776
A Crawler-based study of Spyware on the webPresented at NDSS 2006Alex Moshchuk, Tanya Bragin, Steve Gribble, Hank Levy (University of Washington)By Shvetank Jain Tuesday, October 17, 2006 ECE 17761Spyware today Most Internet PCs have, or hav
East Los Angeles College - GEOG - 5565
Geog5565 Introduction to Java ProgrammingThe Art of Programming 2: UML 1.1 Introduction Professional programming in industry is usually carried out within much larger projects using teams of people working together. Therefore, we need standard ways
Toledo - ECE - 1776
ECE 1776: Progress ReportPatagonix: Dynamically Neutralizing Malware with a HypervisorH. Andrs Lagar-Cavilla - andreslc@cs.toronto.edu Lionel Litty - llitty@cs.toronto.eduIntroductionIn most operating systems widely in use today, it is possible
East Los Angeles College - GEOG - 5565
Geog5561M Introduction to Java Programming Unit 2 NotesObjects and the Object Orientated ApproachThe aims of this unit are to: define objects and their methods introduce the object orientated approach explain how Java implements this approach
Toledo - ECE - 1776
Vladan DjericOctober 17, 2006Midterm Update: Correlating Multi-Session Attacks with Replay1 IntroductionNon-deterministic application replay has the potential to be a powerful tool in intrusion analysis and recovery. Unlike deterministic repla
East Los Angeles College - GEOG - 5565
Geog5561M Introduction to Java Programming Unit 1 NotesGetting StartedThe aims of this unit are to: provide an overview of the module provide some background to Java explain why we would want to use it introduce you to the core Java language
Toledo - ECE - 1776
ECE1776:ProjectMidtermUpdateKiranGollu(994392787) WormDetectionandEradicationinBluetoothEnvironments Ourinitialgoalforthefinalprojectistodevelopamodelforanalyzingandmodeling humanencounters.Ournextgoalsaretoincorporatethisanalysisintowormpropagation
East Los Angeles College - GEOG - 5565
Geog5565 Introduction to Java Programming Unit 1 PracticalGetting Started This practical will introduce you to a range of relevant online resources, get you to download and install Suns Java Development Kit and compile and run your first Java progra
Toledo - ECE - 1776
Isolated Program Execution:An Application Transparent Approach for Executing Untrusted ProgramsAuthors: Z Liang, V Venkatakrishnan, R Sekar Computer Security Applications Conference, 2003 Presenters: Renee Warriner, Bernice Chan, Fareha Shafique E
East Los Angeles College - GEOG - 5565
Geog5565 Introduction to Java Programming Unit 2 PracticalUsing the BlueJ IDE In this practical you will download and install the Integrated Development Environment (IDE) called BlueJ. You will then work through selected sections of the BlueJ tutori
Toledo - ECE - 1776
Detecting Past and Present Intrusions through Vulnerability-Specific PredicatesA. Joshi, S. King, G. Dunlap, P. Chen SOSP 05Motivation How do I know if my systems were affected by a 0-day exploit before a patch was released? I need time to test
East Los Angeles College - GEOG - 5565
Geog5565 Introduction to Java Programming Unit 5 PracticalGraphical User Interfaces and Event-based Programming 1 Introduction In this practical we are going to use what weve learnt about building Graphical User Interfaces and Events to build oursel
Toledo - ECE - 1776
Vulnerabilities We define a vulnerability as: A program flaw (or bug) that when exercised has a security implication Notice that two things need to be true. There has to be a flaw or a bug, that an attacker can exploit to weaken the security of a
East Los Angeles College - GEOG - 5565
Geog5561M Introduction to Java Programming Unit 3 PracticalBuilding a GIS In this practical we are going to build our first GIS using BlueJ. We will build it in parts so that we can test it at each stage. Testing a program whenever you complete a sm
Toledo - ECE - 1776
ECE1776 Project Update: Detecting Buer Overows by Model-CheckingKelvin Ku1IntroductionThe objective of this project is to enable the software model-checker, YASM [1], to eciently detect potential buer overows in C programs. YASM currently prov