-
Notifications
You must be signed in to change notification settings - Fork 0
quentinms/IA-HW1-Rabbit-Simulation
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Please under no circumstances change the file Manifest.txt. If you do then I will not be able to run your program without additional tweaking. If your directory structure is not the same as mine then you will not be able to run the jar file. This is perfectly normal behaviour. The most straightforward approach is to implement code in the subdirectory of the src directory. Please note there are some skeleton files already there. If you want to run your program on your system which has a different directory structure then classpath variable should point to repast.jar file in a directory RepastJ. Compilation Example : javac -sourcepath src -cp ../../../../Repast-3.1/RepastJ/repast.jar src/RabbitsGrassSimulationModel.java javac -sourcepath src: -cp ../../../../Repast-3.1/RepastJ/repast.jar MainRabbit.java Note : repast.jar uses internally jar files from RepastJ directory, copying repast to other directory (.e.g. LogistPlatform/lib/) and attempting to set the classpath to the file there will cause problems as it will not be able to find some of its own external jar files. Run Example : java -cp ../../../../Repast-3.1/RepastJ/repast.jar:.:src MainRabbit Note : Please notice that CLASSPATH (cp) is also augmented with path "." as it needs to find precompiled MainReactive.class file. Directory structure to make your jar file work (given fixed! manifest) : CourseIntelligentAgents/Repast-3.1 - with Repast CourseIntelligentAgents/LogistPlatform/LogistPlatform - with LogistPlatform, which will be made available for the second exercise. CourseIntelligentAgents/LogistPlatform/Assignments/rabbits/lastname/ - with the files you have received for rabbits exercise plus your own code. In order to submit the solution, simply run the script pack.sh (or execute the command as given in a script) with your lastnames (e.g. Boi-Szymanek) while being in the same directory as script pack.sh . MainRabbit : This is an entry point for the jar file. Please check the content of this file and change accordingly to make sure it executes the main function of your implementation. Tips for Eclipse users : Choose path to Assignments/rabbits as your workspace. Create a project named lastname. Add all neccessary jar files, repast.jar, colt.jar, trove.jar, logist.jar, jdom.jar, commons-math-1.1.jar, and log4j-1.2.15.jar to your build path as external jar files. Now, you should be able change skeleton files in src directory and run your code by executing the MainRabbit.java program.
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published