Background for the header
     

Print This Page

 

Story Driven Modeling with Fujaba

The Ludo Game

Mens erger je niet!
  1. Consider the use case "throw dice" from exercise 1 in the guide from Kassel. How would you visualize this scenario?
  2. Write a story board
  3. Derive a class diagram
  4. Do the same for "move" use case.
  5. Start Fujaba (make sure the Java2 SDK is installed), either
    • Quickly with Java Web Start. On Linux: pvgorp@lore:~$ export PATH=$PATH:/usr/java/j2sdk1.4.2_06/bin/ pvgorp@lore:~$ export JAVAWS_HOME=/usr/java/j2sdk1.4.2_06/jre/javaws/ pvgorp@lore:~$ /usr/java/j2sdk1.4.2_06/jre/javaws/javawsbin Fujaba4.3.cs.jnlp
    • or manually with a Fujaba download for your OS. If necessary, check out the Fujaba getting started manual. Tip: install Fujaba in a path without spaces (e.g., /home/pvgorp/fujaba/).
  6. Open ICSETutorialDemoMoveImplementedV2.cxr.gz.
  7. Go through activity diagram "Usual" (with the instructor).
    1. Go through activity diagram "UsualTest.setUp" (with the instructor).
    2. Go through activity diagram "UsualTest.testUsual".
    3. Go through activity diagram "UsualTest.assertStep1".
    4. Go through activity diagram "UsualTest.assertStep2".
    5. Go through activity diagram "UsualTest.assertStep3".
  8. Inspect the "Main" class diagram. Does it match yours?
  9. How would you implement Counter.move?
  10. To compile and execute with a Java Webstart installation, you need to add the jars from the Fujaba libs folder to the javac and java commands... On Windows, the manual installation allows seemless compilation and use of DOBS.
Let's summarize... instructor discusses Slides from Albert Zuendorf. Pay special attention to section 6b where the story diagram for Counter.move is animated.

Elevator Example

See elevator.fpr.gz.

Refactoring and Examples

 

FOTS - Universiteit Antwerpen - 2006