Story Driven Modeling with Fujaba
The Ludo Game
Mens erger je niet!
Let's summarize... instructor discusses Slides from Albert Zuendorf.
Pay special attention to section 6b where the story diagram for Counter.move is animated.
- Consider the use case "throw dice" from exercise 1 in the guide from Kassel. How would you visualize this scenario?
- Write a story board
- Derive a class diagram
- Do the same for "move" use case.
- 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/).
- Open ICSETutorialDemoMoveImplementedV2.cxr.gz.
- Go through activity diagram "Usual" (with the instructor).
- Go through activity diagram "UsualTest.setUp" (with the instructor).
- Go through activity diagram "UsualTest.testUsual".
- Go through activity diagram "UsualTest.assertStep1".
- Go through activity diagram "UsualTest.assertStep2".
- Go through activity diagram "UsualTest.assertStep3".
- Inspect the "Main" class diagram. Does it match yours?
- How would you implement Counter.move?
- 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.
Refactoring and Examples