Differences between revisions 29 and 30
Revision 29 as of 2011-02-28 23:34:20
Size: 5416
Editor: JunHu
Comment:
Revision 30 as of 2011-03-09 10:49:02
Size: 5419
Editor: PeterPeters
Comment:
Deletions are marked like this. Additions are marked like this.
Line 34: Line 34:
 Send the classes of the 2 exercises (JAVA source code) and screen copies of the result (running program within Eclipse with output) in a zip file to <<MailTo(p.j.f.peters@tue.nl)>>, before 5pm of the Monday preceding the next lecture.  Send the classes of the 2 exercises (JAVA source code) and screen copies of the result (running program within Eclipse with output) in a zip file to <<MailTo(p.j.f.peters at tue.nl)>>, before 5pm of the Monday preceding the next lecture.

1. Bye-bye Processing. Hello Objects

Lecture
08.45 - 10.30, Tuesday Feb. 8, HG 3.21
Presentation

processing2Java1.pdf

Help
11:30-12.30, Monday Feb. 14, ID Cafe.
Homework
  • Read Chapter 1 and 2 in TIJ.
  • Do exercises 1-6 and 12 in pages 130-131, TIJ. Do everything within the Eclipse environment. Notice that Eclipse has build-in javadoc. Do exercise 12 within Eclipse, instead of command line.
  • Send screen copies of the results (running program with output within Eclipse) to <j.hu@tue.nl>, before 5pm of the Monday preceding the next lecture.

  • Preparation for the next lecture
  • Rent again your AdMoVeo robot.

  • InstallArduinoSoftware

  • Upload the IDuino firmware to the Arduino board

  • Read the tutorial Processing in Eclipse

  • Try to modify the example from http://wiki.id.tue.nl/creapro/AdMoVeoInProcessing, make it a Java Program, and get it running with Eclipse.

  • 2. Sharing, Hiding, Inheritance and Composition.

    Lecture
    08.45 - 10.30, Tuesday Feb. 15, HG 3.21
    Presentation

    processing2Java2.pdf

    Example code

    Boids example.zip

    Help
    11:30-12.30, Friday Feb. 21, ID Cafe.
    Homework
  • Read Chapter 5 and 6 in TIJ.
  • Do exercise 13 on page 308, TIJ. Do everything within the Eclipse environment.
  • Use the "Boids" example code and create a new class Myboid that displays neither a square nor a triangle.

    Send the classes of the 2 exercises (JAVA source code) and screen copies of the result (running program within Eclipse with output) in a zip file to <p.j.f.peters at tue.nl>, before 5pm of the Monday preceding the next lecture.

  • Preparation for the next lecture
    (same as last time)
  • Rent again your AdMoVeo robot.

  • InstallArduinoSoftware

  • Upload the IDuino firmware to the Arduino board

  • Read the tutorial Processing in Eclipse

  • Try to modify the example from http://wiki.id.tue.nl/creapro/AdMoVeoInProcessing, make it a Java Program, and get it running with Eclipse.

  • To enable the serial communication between the robot and the java program, not only the creapro.jar should be included in the build path, but also the serial.jar from processing (in <your processing directory>/libraries/serial/library). You will also need to copy rxtxSerial.dll from <your processing directory>/libraries/serial/library into your java project directory (find it out by right clicking on the project name in the package explorer in eclipse, select "properties" then check out "Resources").

  • 3. Polymorphism.

    Lecture
    08.45 - 10.30, Tuesday Feb 22, HG 3.21
    Presentation

    processing2Java3.pdf

    Example code

    Robot.rar

    Help
    11:30-12.30, Monday Feb 28 , ID Cafe.
    Homework
  • Read Chapter 7 in TIJ.
  • Do exercises as presented on the last sheet of this weeks lecture (see pdf mentioned before).

    Send the classes of the exercises (JAVA source code) and screen copies of the result (running program within Eclipse with output) in a zip file to <p.j.f.peters@tue.nl>, before 5pm of the Monday preceding the next lecture.

  • 4. Swing to GUI

    Lecture
    08.45 - 10.30, Tuesday March 1, HG 3.21
    Presentation
    Hands-on workshop.No presentation slides
    Homework
  • Read chapter 13 in TIJ.
  • In Eclipse, try out the exercise at the end of chapter 13, as many as possible, but at least 5. Deliver the screenshots of the results to <j.hu@tue.nl>.

  • References
  • Developing Java classes with the visual editor, or if you only want to know about layouts:

  • Laying out components using the visual editor

  • Help

    11:30-12.30, /!\ Friday March 4, ID Cafe.

    5. Distributed computing

    Lecture
    08.45 - 10.30, Tuesday March 15, HG 3.21
    Presentation

    procesing2JavaNetworking.pdf

    Example code
  • whois.zip

  • Quote.zip

  • RobotTemplate.zip

  • Homework
  • Read chapter 15 in TIJ upto and including page 926.
  • Create your own Client/Server combo to let the robot perform some actions...

    Send the classes of the exercises (JAVA source code) in a zip file to <p.j.f.peters@tue.nl>, before 5pm of the Monday preceding the next lecture.

  • Help
    11:30-12.30, Monday March 21 , ID Cafe.

    6. Steps further

    Lecture
    08.45 - 10.30, Tuesday March 22, HG 3.21
    Presentation

    processing2Java6.pdf

    Homework
  • A report (no more than 2 pages of A4, send to <j.hu@tue.nl>) on

    1. What you have learned.
    2. How you would apply it in your design projects.
    3. An overview on your homework: For every task, whether it was done or to what extent it was done. if not, why.
    4. Suggestions on how to improve this assignment.
  • Processing2Java: AssignmentSchedule20102011Block3 (last edited 2011-03-09 10:50:05 by PeterPeters)