From leavens@larch.cs.iastate.edu Wed Feb 12 23:37:26 2003 Date: Wed, 12 Feb 2003 23:36:47 -0600 (CST) From: Gary T. Leavens To: Carl Subject: Re: ComS 362 Hw4 Hi Carl, On Wed, 12 Feb 2003, Carl wrote: > I am having some trouble incorperating Junit into my project. I have the .jar > file on my machine, but i cannot seem to make the project accept the file. > Eclipse reads it as a jar, but I just cant seem to incorperate it. Because of > this I am getting all kinds of errors in the tests package "junit cannot be > resolved" any help would be greatly appreciated. In your Eclipse session, right click on the project's icon, at the bottom of the pop-up menu, click on Properties. Then select the middle item from the left "Java Build Path". On the right a panel with 4 tabs shows. Select the third tab from the left labeled "Libraries". From the second button on the right, select "Add External Jars", and then browse for and select the jar file for junit (e.g., c:\junit\junit.jar). Once you've done that, click okay at the bottom. Look in the Eclipse documentation or at the web page http://www.3plus4software.de/eclipse/index_en.html for more help on Eclipse. Or see me or Tongjie if that doesn't help. -- Gary T. Leavens Department of Computer Science, Iowa State University 229 Atanasoff Hall, Ames, Iowa 50011-1041 USA http://www.cs.iastate.edu/~leavens phone: +1-515-294-1580 --------------------------------------------- From leavens@cs.iastate.edu Thu Feb 13 17:23:04 2003 Date: Thu, 13 Feb 2003 17:19:12 -0600 (CST) From: Gary T. Leavens To: Chris Miller Cc: cs362s@cs.iastate.edu Subject: Re: HW4 - Reset button clarification Hi Chris, Sorry for taking so long to respond... On Thu, 13 Feb 2003, Chris Miller wrote: > The use of the reset button is a little confusing to me.. could you please > expand on the requirements of this button? Maybe a use-case? > > > At any point they can press the reset button to undo partial selection in > > this section. I changed that to the following. "At any point they can press the reset button to undo all the unsaved work in this section." Is that clearer? The idea is that you might want to undo selection of the two registers and the operators, and also typing done int the textbox in the formula composition section. You could redo all the selections, but this is (perhaps) a bit easier for the user than that as a way to not save the work, but to start over. (Some users like to not leave clutter in what they have done, even if it has no logical effect.) The idea of writing a use case for this is a good one, and I'll try to do that when I have a bit of time. Thanks! -- Gary T. Leavens Department of Computer Science, Iowa State University 229 Atanasoff Hall, Ames, Iowa 50011-1041 USA http://www.cs.iastate.edu/~leavens phone: +1-515-294-1580 --------------------------------------------------- From leavens@cs.iastate.edu Fri Feb 14 18:37:35 2003 Date: Fri, 14 Feb 2003 18:02:05 -0600 (CST) From: Gary T. Leavens To: Chris Miller Cc: cs362s@cs.iastate.edu Subject: Re: HW4 - Reset button clarification Hi Chris, On Thu, 13 Feb 2003, Gary T. Leavens wrote: > The idea of writing a use case for this is a good one, and I'll try to > do that when I have a bit of time. Thanks! I have now made some use cases available in the /home/course/cs362/public/homework/hw4/ directory. The file ui-use-cases.txt has the ones that relate directly to the user interface in this homework. -- Gary T. Leavens Department of Computer Science, Iowa State University 229 Atanasoff Hall, Ames, Iowa 50011-1041 USA http://www.cs.iastate.edu/~leavens phone: +1-515-294-1580 ----------------------------------------------- From leavens@cs.iastate.edu Sat Feb 22 21:35:31 2003 Date: Sat, 22 Feb 2003 21:35:16 -0600 (CST) From: Gary T. Leavens To: Emily Ericson Cc: cs362s@cs.iastate.edu Subject: Re: Hw4 Hi Emily, On Sat, 22 Feb 2003, Emily Ericson wrote: > I have a question about the Combo Box used for formula selection. At the > begining of the program should this have anything in it? Or is it empty and > the user populates it by creating formulas? Good question. At the beginning of the program I think the combo box list for formula selection should be empty. Users should populate it by creating formulas in the formula composition section. -- Gary T. Leavens Department of Computer Science, Iowa State University 229 Atanasoff Hall, Ames, Iowa 50011-1041 USA http://www.cs.iastate.edu/~leavens phone: +1-515-294-1580 ------------------------------------------------------- From leavens@cs.iastate.edu Sun Feb 23 15:12:45 2003 Date: Sun, 23 Feb 2003 15:09:31 -0600 (CST) From: Gary T. Leavens To: An HoGeun Cc: Staff for Com S 362 Subject: Re: cs362 hw#4 - jar file Hi HoGeun, On Sun, 23 Feb 2003, An HoGeun wrote: > I finally finished hw#4 on the Eclipse, but I don't know how to make > jar file. > So, I can not send the jar file to the TA. > could you help me..? In Eclipse, in the Java perspective, click on the File menu (top left), and from the File menu select the Export menu item. Then follow the prompts. -- Gary T. Leavens Department of Computer Science, Iowa State University 229 Atanasoff Hall, Ames, Iowa 50011-1041 USA http://www.cs.iastate.edu/~leavens phone: +1-515-294-1580 ---------------------------------------------------------- From leavens@cs.iastate.edu Sun Feb 23 15:14:47 2003 Date: Sun, 23 Feb 2003 15:14:30 -0600 (CST) From: Gary T. Leavens To: Emily Ericson Cc: Com S 362 students and staff -- Brian Thola , com_s_362@cs.iastate.edu, David Avila , Derek James Light , Gaurav Dhiman , Kevin J Gaul , Les Miller , Olatunde Olatunji , Ritesh Desai , Tongjie Chen Subject: COMS 362: Re: Hw4 questions, and how to make a jar file Hi Emily, On Sun, 23 Feb 2003, Emily Ericson wrote: > I was wondering if we need to check the newly saved formulas for > duplication or if it is up to the user to make sure they don't name > two formulas the same thing? We didn't ask you to worry aobut this, so you can just leave it to the user. (If you have time and interest, it sounds like it would be good to avoid the duplication or tell the user that it's an error.) > Also how do I create the JAR file that we are supposed to hand in with the > homework? In Eclipse, in the Java perspective, click on the File menu (top left), and from the File menu select the Export menu item. Then follow the prompts. -- Gary T. Leavens Department of Computer Science, Iowa State University 229 Atanasoff Hall, Ames, Iowa 50011-1041 USA http://www.cs.iastate.edu/~leavens phone: +1-515-294-1580 ------------------------------------------------------------- From leavens@cs.iastate.edu Sun Feb 23 16:21:00 2003 Date: Sun, 23 Feb 2003 16:20:35 -0600 (CST) From: Gary T. Leavens To: David A. Avila Cc: Staff for Com S 362 Subject: Re: hw4, creating FormulaType objects David, On Sun, 23 Feb 2003, David A. Avila wrote: > I am having trouble figuring out how to save the fomula once the > user selects the registers and operation from the comboboxes. I know > I must use the FormulaMap.put fuction, but the part that confuses me > is the second parameter since FormulaType is just an interface > implemented by BinaryFormula. Could you help me. Thank you Recall that the classes Diff, Sum, and Mult implement the interface FormulaType. You will have to create an instance of one of those types and pass it to FormulaMap.put. See, for examples, the tests.TestCalc class, for how to create objects of these types. In essence, you have to use polymorphism. -- Gary T. Leavens Department of Computer Science, Iowa State University 229 Atanasoff Hall, Ames, Iowa 50011-1041 USA http://www.cs.iastate.edu/~leavens phone: +1-515-294-1580 ----------------------------------------------------- From leavens@cs.iastate.edu Sun Feb 23 21:06:23 2003 Date: Sun, 23 Feb 2003 21:05:45 -0600 (CST) From: Gary T. Leavens To: Carl Cc: Staff for Com S 362 Subject: Re: HW4 jar file Carl, On Sun, 23 Feb 2003, Carl wrote: > Your instructions to "follow the prompts" when creating a jar file is somewhat > ambigious. There are several options that I am not sure what to do on. For > example, should I be exporting the .project file and the .classpath file. > Also, do I need to check the box that says export source files? Thank you for > your time. Yes, sorry about that. You don't need to export the .project and the .classpath files. It's probabaly best if you include the source files, but you're handing them in anyway, so it doesn't matter too much. -- Gary T. Leavens Department of Computer Science, Iowa State University 229 Atanasoff Hall, Ames, Iowa 50011-1041 USA http://www.cs.iastate.edu/~leavens phone: +1-515-294-1580 -------------------------------------------------------- From leavens@cs.iastate.edu Tue Mar 4 17:37:08 2003 Date: Tue, 4 Mar 2003 17:36:35 -0600 (CST) From: Gary T. Leavens To: Joe Lahart Cc: Staff for Com S 362 Subject: Re: java and databases Hi Joe, On Tue, 4 Mar 2003, Joe Lahart wrote: > I am working on the inventory project and we are probably going to have to > implement some sort of database type system to keep track of our inventory. I > am somewhat aware of the existinace of both XML and JDBC but I have never > actually used either one and really don't know that much about them. are these > what we will want to use to build our database? would you be able to point us > in the direction we should go with this? Or do you know of any good > documentation that we could look at? I would be interested in any input that > you have. On the course resources page there is information about using DBMS systems from Java, which I got from Shashi Gadia. See if that helps. Also look at Sun's web site for more information. I have some books that may help if those don't... -- Gary T. Leavens Department of Computer Science, Iowa State University 229 Atanasoff Hall, Ames, Iowa 50011-1041 USA http://www.cs.iastate.edu/~leavens phone: +1-515-294-1580 --------------------------------------------------------- From leavens@cs.iastate.edu Fri Mar 7 18:25:16 2003 Date: Fri, 7 Mar 2003 18:24:51 -0600 (CST) From: Gary T. Leavens To: Com S 362 students and staff -- Brian Thola , com_s_362@cs.iastate.edu, David Avila , Derek James Light , Gaurav Dhiman , Kevin J Gaul , Les Miller , Olatunde Olatunji , Ritesh Desai , Tongjie Chen Subject: COMS 362: Grading of homework 4, points for empty formula name Hi all, We mentioned this in class today, but I'm not sure that everyone knows about it. On homework for, if we took off 5 points for not checking that the formula name was non-empty, then you can bring your homework back to Tongjie and he'll give you the points for that back. Sorry for the extra effort involved in this. -- Gary T. Leavens Department of Computer Science, Iowa State University 229 Atanasoff Hall, Ames, Iowa 50011-1041 USA http://www.cs.iastate.edu/~leavens phone: +1-515-294-1580