lab5
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
lab5 [2016/02/03 13:02] – created franck | lab5 [2020/01/19 20:51] (current) – franck | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Create a Listener, named MnemonicPrinter, | + | ====== Lab 2 ====== |
- | < | + | Write a listener, named LongestPath, |
- | < | + | |
- | public class HelloWorld | + | |
- | { | + | |
- | public static void main(String[] args) | + | |
- | { | + | |
- | System.out.println(" | + | |
- | } | + | |
- | } | + | |
- | </ | + | |
- | </ | + | |
+ | To compile your listener, use | ||
+ | < | ||
+ | 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 | ||
+ | </ | ||
lab5.1454504536.txt.gz · Last modified: 2016/02/03 13:02 by franck