lab5
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
lab5 [2017/02/02 02:48] – franck | lab5 [2020/01/19 20:51] (current) – franck | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Lab 5 ====== | + | ====== Lab 2 ====== |
- | Create | + | Write a listener, named LongestPath, that keeps track of the length of a longest |
+ | |||
+ | To compile your listener, use | ||
< | < | ||
- | Random! | + | javac -cp / |
+ | </ | ||
+ | or add / | ||
+ | |||
+ | Also write an app, named Path, to test your listener. | ||
+ | |||
+ | |||
+ | To receive feedback, submit your listener, your app, and your application properties file using the submit command **before** Tuesday January 28:\\ | ||
+ | < | ||
+ | submit 4315 lab2 LongestPath.java Path.java Path.jpf | ||
+ | </ | ||
+ | |||
+ | Sample output: | ||
+ | < | ||
+ | JavaPathfinder core system v8.0 (rev d772dfa80ea692f916aa6718d04c4f7bfb2a746b) - | ||
+ | (C) 2005-2014 United States Government. All rights reserved. | ||
+ | |||
+ | |||
+ | ====================================================== system under test | ||
+ | Path.main() | ||
+ | |||
+ | ====================================================== search started: 1/19/20 4:08 PM | ||
+ | 0 | ||
+ | 1 | ||
+ | 3 | ||
+ | 5 | ||
+ | 6 | ||
+ | 4 | ||
+ | 2 | ||
+ | Longest path has length 4 | ||
+ | |||
+ | ====================================================== results | ||
+ | no errors detected | ||
+ | |||
+ | ====================================================== statistics | ||
+ | elapsed time: | ||
+ | states: | ||
+ | search: | ||
+ | choice generators: | ||
+ | heap: | ||
+ | instructions: | ||
+ | max memory: | ||
+ | loaded code: classes=62, | ||
+ | |||
+ | ====================================================== search finished: 1/19/20 4:08 PM | ||
</ | </ | ||
- | whenever a Random object is created. | ||
- | submit 4315 lab5 <name of the listener> | ||
lab5.1486003738.txt.gz · Last modified: 2017/02/02 02:48 by franck