Commit f24d3b4b authored by Anton Beloglazov's avatar Anton Beloglazov

Updated readme.txt and examples.txt with a description of how to install Michael…

Updated readme.txt and examples.txt with a description of how to install Michael Thomas Flanagan's library, and compile and run the examples from the power package that use this library
parent 67a33d1e
...@@ -44,6 +44,27 @@ In Unix/Linux: ...@@ -44,6 +44,27 @@ In Unix/Linux:
3. java -classpath jars/cloudsim-<VERSION>.jar:examples org.cloudbus.cloudsim.examples.CloudSimExample1 3. java -classpath jars/cloudsim-<VERSION>.jar:examples org.cloudbus.cloudsim.examples.CloudSimExample1
Compiling and running examples from the power package
-----------------------------------------------------
To compile and run an example (let's say org.cloudbus.cloudsim.examples.power.planetlab.LrMc) you need to do the following steps:
In Windows:
1. Download Michael Thomas Flanagan's Java Scientific Library from http://www.ee.ucl.ac.uk/~mflanaga/java/
2. Copy flanagan.jar to <PATH TO CLOUDSIM PACKAGE>/jars/
3. cd <PATH TO CLOUDSIM PACKAGE>
4. javac -classpath jars\cloudsim-<VERSION>.jar;jars\flanagan.jar;examples examples\org\cloudbus\cloudsim\examples\CloudSimExample1.java
5. java -classpath jars\cloudsim-<VERSION>.jar;jars\flanagan.jar;examples org.cloudbus.cloudsim.examples.CloudSimExample1
In Unix/Linux:
1. cd <PATH TO CLOUDSIM PACKAGE>
2. ./install-flanagan.jar
2. javac -classpath jars/cloudsim-<VERSION>.jar:jars/flanagan.jar:examples examples/org/cloudbus/cloudsim/examples/CloudSimExample1.java
3. java -classpath jars/cloudsim-<VERSION>.jar:jars/flanagan.jar:examples org.cloudbus.cloudsim.examples.CloudSimExample1
Description of the CloudSim examples Description of the CloudSim examples
------------------------------------ ------------------------------------
......
#!/bin/sh
wget -P jars http://www.ee.ucl.ac.uk/~mflanaga/java/flanagan.jar
...@@ -82,11 +82,15 @@ Note: ...@@ -82,11 +82,15 @@ Note:
7. Downloading and using external jars 7. Downloading and using external jars
--------------------------------------- ---------------------------------------
Utilization of the power package (for energy modelling) requires the Michael Thomas Some of the algorithms in the power package require Michael Thomas Flanagan's
Flanagan's Java Scientific Library. This library can be downloaded from Java Scientific Library. This library can be downloaded from
http://www.ee.ucl.ac.uk/~mflanaga/java/ http://www.ee.ucl.ac.uk/~mflanaga/java/
Once the library is downloaded, copy it to the jars/ directory. If you are running
Linux, you can just run the ./install-flanagan.sh script, that will download the
library and place it in the jars/ directory.
Please, make sure that, by using such library, you are respecting the terms of use Please, make sure that, by using such library, you are respecting the terms of use
defined by the software's author. defined by the software's author.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment