Ap CS 2008
Ap CS 2008
Ap CS 2008
i
Appendix A AB Java Quick Reference
-A1-
Appendix A AB Java Quick Reference
-A2-
Appendix A AB Java Quick Reference
-A3-
Appendix A AB Java Quick Reference
-A4-
Appendix B Testable API
class ( )
Precondition:
-B1-
Appendix B Testable API
interface
Precondition:
Precondition:
Precondition:
Precondition:
Precondition:
Precondition:
Precondition:
Precondition:
-B2-
Appendix B Testable API
class
Precondition:
Precondition:
Precondition:
-B3-
Appendix B Testable API
class ( )
class ( )
-B4-
Appendix C Bug.java
-C1-
Appendix C Bug.java
-C2-
Appendix C BoxBug.java
-C3-
Appendix C Critter.java
Postcondition
-C4-
Appendix C Critter.java
Postcondition
Postcondition
Postcondition
-C5-
Appendix C Critter.java
Postcondition
-C6-
Appendix D AbstractGrid.java
-D1-
Appendix D AbstractGrid.java
-D2-
Appendix D BoundedGrid.java
-D3-
Appendix D BoundedGrid.java
-D4-
Appendix D UnboundedGrid.java
-D5-
Appendix D UnboundedGrid.java
-D6-
Appendix E GridWorld Quick Reference A/AB
-E1-
Appendix E GridWorld Quick Reference A/AB
-E2-
Appendix F GridWorld Quick Reference AB
-F1-
Appendix G Source Code Index
Bug.java
Bug C1
Bug C1
act C1
turn C1
move C2
canMove C2
BoxBug.java
BoxBug C3
act C3
Critter.java
act C4
getActors C4
processActors C5
getMoveLocations C5
selectMoveLocation C5
makeMove C6
ChameleonCritter.java
processActors C6
makeMove C6
-G1-
Appendix G Source Code Index
AbstractGrid.java
getNeighbors(Location loc) D1
getValidAdjacentLocations(Location loc) D1
getEmptyAdjacentLocations(Location loc) D1
getOccupiedAdjacentLocations(Location loc) D2
toString() D2
BoundedGrid.java
BoundedGrid(int rows, int cols) D3
getNumRows() D3
getNumCols() D3
isValid(Location loc) D3
getOccupiedLocations() D4
get(Location loc) D4
put(Location loc, E obj) D4
remove(Location loc) D4
UnboundedGrid.java
UnboundedGrid() D5
getNumRows() D5
getNumCols() D5
isValid(Location loc) D5
getOccupiedLocations() D5
get(Location loc) D5
put(Location loc, E obj) D6
remove(Location loc) D6
-G2-