3 Pages

Project3F02

Course: ECE 3, Fall 2009
School: U. Houston
Rating:
 
 
 
 
 

Word Count: 1352

Document Preview

2, version 11/15/02 ECE 3332 - Project 3 Fall 2002 Overview. In this project you will convert your Project 2 solution to a client-server network solution. The details are below. NOTE: This design in no way resembles the way a real auction client and server would be designed! This is a programming exercise, not a design exercise. 1. GUI. In general, the GUI for this project can be the same as that for Project 2,...

Register Now

Unformatted Document Excerpt

Coursehero >> Texas >> U. Houston >> ECE 3

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.
2, version 11/15/02 ECE 3332 - Project 3 Fall 2002 Overview. In this project you will convert your Project 2 solution to a client-server network solution. The details are below. NOTE: This design in no way resembles the way a real auction client and server would be designed! This is a programming exercise, not a design exercise. 1. GUI. In general, the GUI for this project can be the same as that for Project 2, unless I have indicated shortcomings in your GUI when I graded Project 2. The GUI front-end portion of Project 2 was supposed to communicate with your UHBay object. The same will be true for this project (except as described below), so the GUI need not change unless you need to make corrections and/or improvements. 2. When your Main object looks for an image file, it must look for it in two places: First, look for it in the current working directory (which will be your project directory when the program is run). If it is not found there, then look for it in \\laser\dropfolders\Ece3332pool\classes . 3. You will split up the functions of your current UHBay class between two new classes, UHBayClient and Server (both in the auction package). a. UHBayClient. This class will provide the client side of the auction. The client is the portion of the auction that runs on the user machine. s ? The API for this class can be the same as your current UHBay class, but the client ? does not actually contain the inventory of the auction; the auction server will do that. ? The client communicates with the auction server over the network. When the client ? is asked by the GUI to sell an item, provide a list of items, or perform any other operation, it will forward that request to the auction server for execution. In other words, to the GUI, the new UHBayClient looks like the old UHBay; but the UHBayClient is actually just a communications conduit to the Server using the Network Auction Protocol (NAP). ? The NAP is designed such that your current AuctionItem and Auctionable ? objects can write and read themselves the same way they do in Project 2; but this time the PrintWriter to which they write, and the BufferedReader from which they read, will be connected to a network stream. ? Your new UHBayClient class will have no use for UHBay ? s saveInventory() and loadInventory() methods, so you may remove them and also remove that capability from the GUI. However, you should retain the clear inventory capability, as we will want to use that for the purpose of testing the server. ? On the GUI, add a JComboBox that allows the user to select Remote or Local ? for the auction server. Also add a Connect but that initiates the connection to the server on port 3332. If Local is selected, connect to 127.0.0.1, the machine you are running on. If Remote is selected, connect to my office computer, 129.7.206.72. Of course, the server, listening on port 3332, must be started up before any client attempts a connection. Also add a Disconnect button that closes the connection to the server. b. Server. The auction server is that portion of the auction that runs on the remote computer. It receives commands over the network from the auction client and responds back to the client over the network. version 2, 11/15/02 ? The auction server maintains the inventory of auction items in much the same way ? as the UHBay did in Project 2. However, there is one main difference: the server does not actually store instances of AuctionItem, but instead simply stores the strings representing the items received from the client via the NAP. To repeat, the server does not ever actually deal with the AuctionItem class, just strings. ? For each item it is asked to sell, the server (not UHBayClient) will assign an item ? number and store the item number along with all of the other strings representing that item. ? The auction server must be designed as a multithreaded server so that it can handle ? multiple simultaneous auction clients. It listens on port 3332 and passes connections off to separate handler threads. Keep in mind that the server has inventory one shared by all clients that may connect to it. ? The server can be stopped only by entering ctl-C. The server must catch all ? exceptions and simply print error messages to the screen, but never exit. 4. Network Auction Protocol. You must use the Network Auction Protocol (NAP). Using NAP, the auction client will open a connection to the auction server to communicate the user requests: sell an item, list all items, list a particular item, clear all items. The protocol s will be session-oriented, such that the client maintains the open connection to the server until the client disconnects using the bye command. You must implement NAP faithfully so that any client can communicate with any server in our class. 5. Design Points. ? Be sure to synchronize those methods on the server that need to be synchronized in the ? multithreaded environment. Do not synchronize methods that do not need to be. Analyze the situation! ? You should set a timeout on the sockets (see API docs) on both client and server at ? appropriate times so that your client or server does not get hung when communicating with a faulty server or client. 6. Project 2 Corrections. Be certain to implement all corrections/suggestions described in the grading comments provided to you on Project 2. Suggestions not implemented will count off this time; corrections not made will count double this time. 7. Network Connection. During your development, you will probably not be able to place the auction server on a remote machine, so the server will have to be on the same machine as the client. Therefore, simply use 127.0.0.1 as the IP address of the server, and connect to port 3332. Your server, listening on port 3332, will have to be started up before any client attempts a connection. 8. Testing. You can test the multithreaded capability of your server by connecting two of your clients to it at the same time. I will certainly have fun doing that! 9. Style. Use Java Code Conventions style for your coding, with comments for every class, method, instance variable, and important sections/lines of code. See the link on the course home page. 10. Documentation. Use full Javadoc comments for the public and protected methods in ALL classes in the auction package. Create a docs subdirectory in your auction directory. In the auction directory, run Javadoc to create the corresponding html documents: javadoc d docs *.java version 2, 11/15/02 ...

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:

U. Houston - ECE - 3332
version 2, 11/15/02ECE 3332 - Project 3 Fall 2002 Overview. In this project you will convert your Project 2 solution to a client-server network solution. The details are below. NOTE: This design in no way resembles the way a real auction client an
U. Houston - ECE - 3332
9/17/02ECE 3332 - Project 1 Fall 2002 In this project, you will design a set of objects that represent items that can be bid on at an online auction. 1. auction package Name your project directory lastnameP1, where lastname is your last name. For
U. Houston - ECE - 2
10/12/02ECE 3332 - Project 2 Fall 2002 The goal of Project 2 is to put a GUI frontend on your Project 1 program and to save the contents of UHBay to a file from which it can be reloaded. You will have a fair amount of leeway in choosing the "look
U. Houston - ECE - 3332
10/12/02ECE 3332 - Project 2 Fall 2002 The goal of Project 2 is to put a GUI frontend on your Project 1 program and to save the contents of UHBay to a file from which it can be reloaded. You will have a fair amount of leeway in choosing the "look
U. Houston - ECE - 6
ECE 3331 Applications Programming in ECEPROJECT:Solution of Laplaces Equation by Finite Differences in FortranDate assigned: November 19th, 2008 To be completed by: December 5th, 2008.Background Many problems in electrostatics involve boundarie
U. Houston - ECE - 3331
ELEE 3331 SAMPLE QUIZ 1I.Indicate whether each of the following is true or false by circling your choice: A. The step that converts a C source code into object code is called execution. TRUE FALSE B. All C programs must have a function named main. T
U. Houston - ECE - 3331
page 1 of 10SOLUTIONDO NOT OPEN THIS BOOKLET UNTIL YOU ARE INSTRUCTED TO DO SOECE 3331 - Exam 1 Fall 2002I agree to abide by the provisions of the University of Houston Academic Honesty Policy while taking this exam. Signature:__ Date:_INSTR
U. Houston - ECE - 3331
Page 1 of 7DO NOT OPEN THIS BOOKLET UNTIL YOU ARE INSTRUCTED TO DO SOECE 3331 - Exam 1 Spring 2003I agree to abide by the provisions of the University of Houston Academic Honesty Policy while taking this exam. Signature:__ Date:_INSTRUCTIONS:
U. Houston - ECE - 3331
Fortran Example - Newton's Methodcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc c Description: This program performs Newton's iterative method to solve c the equation f(x) = 0 where f(x) = a(0) + a(1)*x + a(2)*x^2 c
U. Houston - ECE - 3331
Array & Pointer Pop Quiz!1. Trace the execution of: main( ) {char blocks[3]={'B','I','G'}; char *ptr = &blocks[0]; char temp; temp = blocks[0]; temp= *(blocks+2); temp = *(ptr+1); temp = *ptr; ptr = blocks+1; temp=*ptr; temp = *(ptr+1); ptr=blocks;
U. Houston - ECE - 3331
page 1 of 8SolutionDO NOT OPEN THIS BOOKLET UNTIL YOU ARE INSTRUCTED TO DO SOECE 3331 - Exam 2 Fall 2002I agree to abide by the provisions of the University of Houston Academic Honesty Policy while taking this exam. Signature:__ Date:_INSTRU
U. Houston - ECE - 3331
Conversion Code g for OutputThe g (or G) conversion code may be used to perform signed, decimal floating point (float or double) conversion as an alternative to the f or e. The basic idea with the g code is to output the value in either decimal or e
U. Houston - ECE - 2
3 201.47 1.4399.5 8.000.51 0.4855.0 52.095.0 98.01 251.692 1.5439.831 8.6120.542 0.47161.0 59.098.0 100.0
U. Houston - ECE - 3331
3 201.47 1.4399.5 8.000.51 0.4855.0 52.095.0 98.01 251.692 1.5439.831 8.6120.542 0.47161.0 59.098.0 100.0
U. Houston - ECE - 3331
insert Fudd,Elmer210 El DoradoSmackover, AK 623528704549733insert Bunny,Buggs1515 Carrot Blvd.San Diego, CA 930144087821921insert Mouse,Mickey287 Mousetrap LaneHouston, TX 770237138460396print wholeupdate Fudd,Elmer9325162147insert Bir
U. Houston - ECE - 5
insert Fudd,Elmer210 El DoradoSmackover, AK 623528704549733insert Bunny,Buggs1515 Carrot Blvd.San Diego, CA 930144087821921insert Mouse,Mickey287 Mousetrap LaneHouston, TX 770237138460396print wholeupdate Fudd,Elmer9325162147insert Bir
U. Houston - ECE - 2300
ECE 2300 - Questions and Comments from 3x5 cards, March 8, 1999Q: How do we know when to use Voc vs Isc (when finding a Thevenin or Norton equivalent)?A: Good question, but there is no simple answer. I think this is one of those things that you
U. Houston - ECE - 2300
ECE 2300 - Questions and Comments from 3x5 cards, March 1, 1999Comment: I wish you proceeded slower on the board. I feel like I'm on a writing marathon.Comment on comment: This is the kind of comment that really needs to be made in class. I can
U. Houston - ECE - 1331
"Becker""Boris"67504107366448067586186836175858859717571"Clinton""Hillary"888890938991969999928997909490969998889786"Close""Glenn"89867775940687493897564575690846475598987"Clown""B
U. Houston - ECE - 1331
43-33115-6
U. Houston - ECE - 2300
ECE 2300 - Questions and Comments from Homework #1Q: If I took AC/DC Theory and Solid State Electronics at College of the Mainland (when I was thinking of going back to school for a 2nd degree and wanted to see if I would like EE) will those cours
U. Houston - ECE - 2300
ECE 2300 - Questions and Comments from 3x5 cards, February 3, 1999Comment: (Many versions) I am unclear on the Wheastone (sic) Wheatston (sic) bridge.Comment on comment: Try the homework, and see it doesn't help. Check the spelling also.Comm
U. Houston - ECE - 2300
ECE 2300 - Questions and Comments from 3x5 cards, February 8, 1999Comment: I am unclear about problem 2.19.Comment on comment: This is an important problem. Feel free to ask me to solve it at the beginning of class.Comment: Please do a probl
U. Houston - INDE - 6332
INDE 6332 ENGINEERING PROJECT MANAGEMENT CHAPTER 3 Part 2University of Houston Dept. of Industrial Engineering Houston, TX 77204-4812 (713) 743-4195AGENDAHomework/Project q Critical Chain q Continue with chapter 3 q Sections 3.4, 5, 6qsINDE
U. Houston - INDE - 6332
How do we win the race for success?Ranvir Biki Mohindra Vice President Technical Services Riviana Foods Inc. 1. How do I find a job?Most resumes look the same Focus on accomplishments & skillsNeed to accentuate differences Not by trying
U. Houston - CIVE - 4312
Geographic Information Systems CIVE 1188Hanadi Rifai, PhD, PE Civil and Environmental Engineering University of HoustonWhere did GIS come from? GIS is built upon knowledge from geography, cartography, computer science and mathematics Geographic
U. Houston - CIVE - 7332
CIVE 7332 Fall 2007 Modeling Hill Air Force Base Using BIOSCREEN Due Date: November 27, 2007 Download the BIOSCREEN model from http:/www.epa.gov/ada/csmos/models.html and download the manual for it. Set-up the model and familiarize yourself with the
U. Houston - CIVE - 7397
CIVE 7332 Fall 2007 Modeling Hill Air Force Base Using BIOSCREEN Due Date: November 27, 2007 Download the BIOSCREEN model from http:/www.epa.gov/ada/csmos/models.html and download the manual for it. Set-up the model and familiarize yourself with the
U. Houston - CIVE - 4312
LegendSims Bayou Sims Bayou Watershed-Bacteria TNAME 1007D 1007N 1007Q MetroWWTPs_Sims FLOW_MGD+ $0.00 - 0.10 0.11 - 1.30 1.31 - 4.00 4.01 - 7.05 7.06 - 28.00+ $$ +$ +$ +$ ++ $1007N$ +1007Q$ +$ +7D 100+ $$ +$ +$ + $ +
U. Houston - CIVE - 4312
LegendBrays Bayou BraysMUIDTX163 TX248 TX276100 7P1007B1007L0 1.5 3100 7C10 07 EMiles 6Figure 7. Soil types in Brays Bayou Watershed
U. Houston - CIVE - 4312
LegendSims Bayou Sims Bayou Watershed-Bacteria TNAME 1007D 1007N 1007Q ECGeomean_Sims Geomean (MPN/dL)! ( ! ( ! ( ! (513 514 - 1013 1014 - 1181 1182 - 16611007N! ( ! ( ! (1007Q! ( ! (7D 100 ! (0 1 2 Miles 4Figure 10. E.coli Geomean
U. Houston - CIVE - 4312
Legend! Water Quality Stations (Sims BayouSims Bayou Watershed-Bacteria TNAME1007D 1007N 1007Q! ( ! (1665511133! (15877! (11136! ( ! ( ! (17976 166561113415875! (! (111350 1 2 Miles 4Figure 3. Water Quality Stations
U. Houston - CIVE - 4312
Updated 1/15/2008CIVE 4312 - Civil Engineering Design Project Schedule - Spring 2008Instructor: Office Hrs: Location: Textbook: Teach. Asst.: Web Access: Week Of 1/15 1/22 1/29 2/5 2/12 2/19 2/26 3/4 3/11 3/18 3/25 4/1 4/8 4/15 4/22 Hanadi Rifai (
U. Houston - CIVE - 4312
CIVE 4312 Spring 2008 Project Research Paper Watershed Background Due: February 21, 2008 The Texas Commission on Environmental Quality (TCEQ) is concerned about water quality in Houston bayous. Virtually all bayous in Houston are on the state 303 li
U. Houston - CIVE - 4312
CIVE 4312 Spring 2008 Project Research Paper Total Maximum Daily Loads Due: February 21, 2008 The Clean Water Act has aimed to restore the nations surface water resources (streams, bayous, lakes, estuaries) to their fishable, swimmable state. While
U. Houston - CIVE - 4312
CIVE 4312 - CIVIL ENGINEERING DESIGN PROJECT (WATER RESOURCES AND ENVIRONMENTAL SECTION) ABET 2007 Syllabus1 2005 Catalog Data: CIVE 4312: Civil Engineering Design Project Cr. 3. (3-0). Prerequisites: CIVE 4311; and CIVE 4331, 4332 and 4333. Design o
U. Houston - CIVE - 4312
Engineers' Creed As a Professional Engineer, I dedicate my professional knowledge and skill to the advancement and betterment of human welfare. I pledge: To give the utmost of performance; To participate in none but honest enterprise; To live and wor
U. Houston - CIVE - 4312
CIVE 4312 Spring 2008 Project Research Paper BMPs Due: February 21, 2008 Stormwater is a significant carrier of pollutants that result in negative impacts to water quality in streams and bayous. In urban areas, pollutants entrained in runoff include
U. Houston - CIVE - 4312
CIVE 4312 ArcMap Exercise April 1, 2008 This exercise will demonstrate how to create a map using ESRI ArcMap. Copy the "4312_gis" folder (located in the CIVE4312 folder on Fish) save it to your H: driveOpen the program ArcMap (go to All Programs A
U. Houston - CIVE - 4312
CIVE 4312 Spring 2008 Project Research Paper Pathogens in Bayous Due: February 21, 2008 One of the concerns in surface water is the presence of pathogens or harmful bacteria that are a health hazard for recreational activities in bayous, streams, la
U. Houston - CIVE - 4312
LegendSims Bayou Sims Bayou Watershed-Bacteria TNAME 1007D 1007N 1007Q rastert_hgaclcm2_Simslu GRIDCODE Low Intensity Developed High Intensity Developed Cultivated land Grassland Woodyland Open Water Woody Wetland Bare/Transitional Non-Woody Wetland
U. Houston - CIVE - 4312
LegendBrays BayouBraysBayou_ECGeomeanMPN/dL! ( ! ( ! ( ! ( ! (708 - 1581 1582 - 2369 2370 - 3906 3907 - 4862 4863 - 6832100 7P! (15848! (158491007B !15850 (15851 11139 ! ( 15859 11309 ! ( 11138! (! (15852 15855! (! (!
U. Houston - CIVE - 4312
LegendBrays BayouBraysBayou_FCGoemeanMPN/dL! ( ! ( ! ( ! ( ! (910 - 2046 2047 - 3648 3649 - 6149 6150 - 11620 11621 - 16422100 71007BP! (! ( ! (! ( ! ( ! ( ! ( ! (100 7C! ( ! (! (! (1007L! (! (10 07 E! (! (! (Fi
U. Houston - CIVE - 4312
LegendSims BayouSims Bayou Watershed-BacteriaTNAME1007D 1007N 1007Q1007Q7D 1000 1 2 Miles 4 Figure 1. Water Quality Segments in Sims Bayou Watershed1007N
U. Houston - CIVE - 4312
LegendBrays BayouWWTPs_BraysFLOW_MGD$0.00 - 0.60$ 0.61 - 2.50$2.51 - 7.20$$ 7.21 - 23.10$23.11 - 60.00$ $ $ $100 7$P$$ $ $$$ $$$$$1007L$B 100710 07 E$ $$$100 7C$$$$ $ $ $ $ $ $0 1.5 3Mile
U. Houston - CIVE - 4312
LegendBrays Bayou_ [Brays_RainGagesBrays Bayou Watershed- Bacteria TNAME1007B 1007C 1007E 1007L 1007P_ [485_ [470_ [475_ [465_ [ _ [490 480430_ _ [ [ 420 _ [ 1020 _ [3990 400_ [3010_ [ _ [460_ [440_ [43
U. Houston - CIVE - 4312
Fecal Pathogens in Houston BayousCIVE4312 Hanadi RifaiPathogensDisease-causing bacteria and viruses associated with the presence of fecal matter cause: Health problems; and May require stream, beach, and shellfish bed closures.Present Standar
U. Houston - CIVE - 4312
Engineering DesignCIVE 4312 Hanadi RifaiWhat is an Engineer?ineers apply science and technology to elop solutions to practical problemsproblem t need to be solved for the benefit of humaniABET Definitionngineering is the profession in which
U. Houston - CIVE - 4312
Each folder contains the following shape files (.shp) files:1.Streams2.Watershed Boundaries (e.g. Brays Bayou)3.Water Quality Stations (e.g. stations_Brays)4.USGS (Flow) Gages (e.g. USGS_Brays)5.Rain Gages (e.g. Raingages_Sims)6.Wastewate
U. Houston - CIVE - 4312
Sheet1 illicit 2.shpLeaking Storm Sewer Data model ps.shpWWTP Data new subbasin.shpSubwatersheds for Buffalo and Whiteoak Bayous stations-tx83 latlong.shpWater Quality Stations for Buffalo and Whiteoak Bayou (does not have 11296) all tnrcc stations.s
U. Houston - CIVE - 4312
"FID_","ID","GRIDCODE","AREA","PERIMETER","ACRES","HECTARES","NEWID",1684.00,3.00,4603.75,309.37,0.10,0.04,2,1884.00,2.00,7270.63,1032.27,0.16,0.06,2,1885.00,3.00,13089.29,482.60,0.30,0.12,2,1975.00,2.00,21345.94,768.60,0.49,0.19,2,1976.00,2.00,
U. Houston - CIVE - 7332
CIVE 7332 - Groundwater Transport Fall 2007 Syllabus Instructor: Hanadi Rifai, Ph. D., P.E. x34271, rifai@uh.edu, Rm 138 Cullen Engineering Bldg D Office hrs: Tues/Thurs 8:30 - 12:00 and 1 - 3 TA: Textbook: (optional) Fouad Khan x30751, fouad.khan@ma
U. Houston - CIVE - 7397
CIVE 7332 - Groundwater Transport Fall 2007 Syllabus Instructor: Hanadi Rifai, Ph. D., P.E. x34271, rifai@uh.edu, Rm 138 Cullen Engineering Bldg D Office hrs: Tues/Thurs 8:30 - 12:00 and 1 - 3 TA: Textbook: (optional) Fouad Khan x30751, fouad.khan@ma
U. Houston - CIVE - 7332
Biodegradation and Natural AttenuationCive 7332 Lect 5Natural AttenuationThe biodegradation, dispersion, dilution, sorption, volatilization, and/or chemical and biochemical stabilization of contaminants to effectively reduce contaminant toxicity,
U. Houston - CIVE - 7397
Biodegradation and Natural AttenuationCive 7332 Lect 5Natural AttenuationThe biodegradation, dispersion, dilution, sorption, volatilization, and/or chemical and biochemical stabilization of contaminants to effectively reduce contaminant toxicity,
U. Houston - CIVE - 7332
Contaminant Fate and Transport ProcessesCIVE 7332 Lecture 4bFate and Transport Advection and Dispersion Covered in Days 1, 2 Sorption and Retardation Chemical/Abiotic processes Volatilization BiodegradationSorption and Retardation Sorptio
U. Houston - CIVE - 7397
Contaminant Fate and Transport ProcessesCIVE 7332 Lecture 4bFate and Transport Advection and Dispersion Covered in Days 1, 2 Sorption and Retardation Chemical/Abiotic processes Volatilization BiodegradationSorption and Retardation Sorptio
U. Houston - CIVE - 7332
ASTM User Trainingin Risk-Based Corrective Action for Chemical Releases (Provisional ASTM Standard Guide) Day 1Course ObjectivesxxxProvide an understanding of the risk-based decision process. Discuss the importance of Technical Policy Decis
U. Houston - CIVE - 7397
ASTM User Trainingin Risk-Based Corrective Action for Chemical Releases (Provisional ASTM Standard Guide) Day 1Course ObjectivesxxxProvide an understanding of the risk-based decision process. Discuss the importance of Technical Policy Decis
U. Houston - CIVE - 6361
Theodore G ClevelandPage 1 CIVE 6361 Engineering Hydrology8/1/2004CIVE 6361 ENGINEERING HYDROLOGY Fall 2004 Disciplines.. 2 Water Uses . 2 Water Problems .. 5 Drainage and Flooding. 5 Low quality for specific use.. 8 Erosion .. 8 Sedimentation
U. Houston - CIVE - 005
CIVE 7332 Modeling for Environmental Engineers Spring 1999CIVE 3331 COMPUTING FOR ENGINEERS Fall 2003Purpose: Algorithms and ProgrammingProblem Solving.. 1 Arithmetic Mean. 2 Newtons Method.. 5 Iteration. . 11 Numerical Integration Methods ..