📄 readme
字号:
Marine Biology SimulationThis file contains information on compiling and running the MarineBiology Simulation program under UNIX, including Linux and OS X,either with a makefile or without one.Compiling and running with a makefile:If you have the make command on your system, you can use the makefilein this directory. First copy it to the JavaMBS/Code directory.Then, in that directory, run one of the following commands: make Compiles all the Java source files that need it make MBSGUI Compiles necessary source files and runs full GUI version make SimpleMBSDemo1 Compiles necessary source files and runs first demo make SimpleMBSDemo2 Compiles necessary source files and runs second demoWhen you go to open an environment data file, the file chooserwindow should come up in the Code directory, where the program isrunning. You will need to go up to the JavaMBS directory and thendown to the DataFiles directory to find the initial configurationfiles.For Chapter 3 (and later chapters), if you are using the Fish.javafile from the DynamicPopulation directory rather than modifyingthe file in the Code directory (see FishModsForChap3.txt in theCode directory for more details), edit the makefile to switchwhich Fish.java file is being used as the sourcefile for the Fishclass. To do this, switch which definition of FISHSOURCE iscommented out in the makefile; the comment symbol is the pound sign(#). Then remove Fish.class from the Code directory and run makeas described above.Compiling and running without a makefile:To compile all the necessary files for the Marine Biology Simulation,run the following command within the Code directory: javac -classpath .:./mbsbb.jar:./mbsgui.jar *.javaTo run the Marine Biology Simulation, run the followingcommand from within the Code directory: java -classpath .:./mbsbb.jar:./mbsgui.jar [target]where [target] should be replaced by one of the following: MBSGUI program with full graphical user interface (from beginning of Chapter 1) SimpleMBSDemo1 simple demo program (end of Chapter 1) SimpleMBSDemo2 second demo program (end of Chapter 1)When you go to open an environment data file, the file chooserwindow should come up in the Code directory, where the program isrunning. You will need to go up to the JavaMBS directory and thendown to the DataFiles directory to find the initial configurationfiles.For Chapter 3 (and later chapters), if you are using the Fish.javafile from the DynamicPopulation directory rather than modifyingthe file in the Code directory (see FishModsForChap3.txt in theCode directory for more details), you will also need to executethe following command in the DynamicPopulation directory: javac -classpath ..:../mbsbb.jar:../mbsgui.jar Fish.javaThen copy the Fish.class file from the DynamicPopulation directoryto the Code directory before running the java command above toactually run the simulation.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -