some code samples, various examples of simple modeling ideas and some minor algorithms.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. #BlueJ package file
  2. dependency1.from=Calendar1
  3. dependency1.to=CalendarGraphic
  4. dependency1.type=UsesDependency
  5. dependency2.from=Calendar1
  6. dependency2.to=DateException
  7. dependency2.type=UsesDependency
  8. dependency3.from=Account
  9. dependency3.to=AccountException
  10. dependency3.type=UsesDependency
  11. dependency4.from=Calendar
  12. dependency4.to=DateException
  13. dependency4.type=UsesDependency
  14. dependency5.from=Date
  15. dependency5.to=DateException
  16. dependency5.type=UsesDependency
  17. dependency6.from=DepositAccount
  18. dependency6.to=AccountException
  19. dependency6.type=UsesDependency
  20. editor.fx.0.height=976
  21. editor.fx.0.width=1274
  22. editor.fx.0.x=-311
  23. editor.fx.0.y=-1040
  24. objectbench.height=101
  25. objectbench.width=434
  26. package.divider.horizontal=0.6074380165289256
  27. package.divider.vertical=0.8007380073800738
  28. package.editor.height=427
  29. package.editor.width=620
  30. package.editor.x=842
  31. package.editor.y=-883
  32. package.frame.height=600
  33. package.frame.width=746
  34. package.numDependencies=6
  35. package.numTargets=13
  36. package.showExtends=true
  37. package.showUses=true
  38. project.charset=UTF-8
  39. readme.height=58
  40. readme.name=@README
  41. readme.width=47
  42. readme.x=10
  43. readme.y=10
  44. target1.height=50
  45. target1.name=CalendarGraphic
  46. target1.showInterface=false
  47. target1.type=ClassTarget
  48. target1.width=130
  49. target1.x=450
  50. target1.y=190
  51. target10.height=50
  52. target10.name=DepositAccount
  53. target10.showInterface=false
  54. target10.type=ClassTarget
  55. target10.width=120
  56. target10.x=170
  57. target10.y=120
  58. target11.height=50
  59. target11.name=TriangleTwo
  60. target11.showInterface=false
  61. target11.type=ClassTarget
  62. target11.width=100
  63. target11.x=120
  64. target11.y=310
  65. target12.height=50
  66. target12.name=AccountException
  67. target12.showInterface=false
  68. target12.type=ClassTarget
  69. target12.width=140
  70. target12.x=190
  71. target12.y=30
  72. target13.height=50
  73. target13.name=DateException
  74. target13.showInterface=false
  75. target13.type=ClassTarget
  76. target13.width=120
  77. target13.x=470
  78. target13.y=340
  79. target2.height=50
  80. target2.name=Calendar1
  81. target2.showInterface=false
  82. target2.type=ClassTarget
  83. target2.width=90
  84. target2.x=330
  85. target2.y=220
  86. target3.height=50
  87. target3.name=Account
  88. target3.showInterface=false
  89. target3.type=ClassTarget
  90. target3.width=80
  91. target3.x=50
  92. target3.y=110
  93. target4.height=50
  94. target4.name=Squares
  95. target4.showInterface=false
  96. target4.type=ClassTarget
  97. target4.width=80
  98. target4.x=100
  99. target4.y=250
  100. target5.height=50
  101. target5.name=Calendar
  102. target5.showInterface=false
  103. target5.type=ClassTarget
  104. target5.width=80
  105. target5.x=490
  106. target5.y=270
  107. target6.height=50
  108. target6.name=TriangleOne
  109. target6.showInterface=false
  110. target6.type=ClassTarget
  111. target6.width=100
  112. target6.x=10
  113. target6.y=310
  114. target7.height=50
  115. target7.name=TextIO
  116. target7.showInterface=false
  117. target7.type=ClassTarget
  118. target7.width=80
  119. target7.x=490
  120. target7.y=40
  121. target8.height=50
  122. target8.name=Date
  123. target8.showInterface=false
  124. target8.type=ClassTarget
  125. target8.width=80
  126. target8.x=350
  127. target8.y=290
  128. target9.height=50
  129. target9.name=Scrabble
  130. target9.showInterface=false
  131. target9.type=ClassTarget
  132. target9.width=80
  133. target9.x=10
  134. target9.y=250