1. Bye-bye Processing. Hello Objects

Lecture
08.45 - 10.30, Tuesday Feb. 9, HG 4.24
Presentation

processing2Java1.pdf

Help
11:30-12.30, Friday Feb. 12, HG4.24.
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.

  • before 5pm, Monday February 22.

    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. 23, HG 4.24
    Presentation

    processing2Java2.pdf

    Example code

    Boids example.zip

    Help
    11:30-12.30, Friday Feb. 26, HG4.24.
    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 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.

  • 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 March 2, HG 4.24
    Presentation

    processing2Java3.pdf

    Example code

    Robot.rar

    Help
    11:30-12.30, Friday March 5 , 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 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 9, HG 4.24
    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.
  • Help
    11:30-12.30, Friday March 12 , ID Cafe.

    5. Distributed computing

    Lecture
    08.45 - 10.30, Tuesday March 16, HG 4.24
    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 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, Friday March 19 , ID Cafe.

    6. Steps further

    Lecture
    08.45 - 10.30, Tuesday March 23, HG 4.24
    Presentation

    processing2Java6.pdf

    Homework
  • A report (no more than 2 pages of A4) 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.