init
13
.classpath
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<classpath>
|
||||||
|
<classpathentry kind="src" path="src"/>
|
||||||
|
<classpathentry kind="lib" path="jars/cloudsim-3.0.3-sources.jar"/>
|
||||||
|
<classpathentry kind="lib" path="jars/cloudsim-3.0.3.jar"/>
|
||||||
|
<classpathentry kind="lib" path="jars/cloudsim-examples-3.0.3-sources.jar"/>
|
||||||
|
<classpathentry kind="lib" path="jars/cloudsim-examples-3.0.3.jar"/>
|
||||||
|
<classpathentry kind="lib" path="jars/commons-math3-3.5.jar"/>
|
||||||
|
<classpathentry kind="lib" path="jars/guava-18.0.jar"/>
|
||||||
|
<classpathentry kind="lib" path="jars/json-simple-1.1.1.jar"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||||
|
<classpathentry kind="output" path="bin"/>
|
||||||
|
</classpath>
|
8
.idea/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/../../../../../../:\Users\tormakris\Downloads\iFogSimTest\.idea/dataSources/
|
||||||
|
/dataSources.local.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
7
.idea/codeStyles/Project.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<component name="ProjectCodeStyleConfiguration">
|
||||||
|
<code_scheme name="Project" version="173">
|
||||||
|
<ScalaCodeStyleSettings>
|
||||||
|
<option name="MULTILINE_STRING_CLOSING_QUOTES_ON_NEW_LINE" value="true" />
|
||||||
|
</ScalaCodeStyleSettings>
|
||||||
|
</code_scheme>
|
||||||
|
</component>
|
5
.idea/codeStyles/codeStyleConfig.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<component name="ProjectCodeStyleConfiguration">
|
||||||
|
<state>
|
||||||
|
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
|
||||||
|
</state>
|
||||||
|
</component>
|
6
.idea/misc.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK">
|
||||||
|
<output url="file://$PROJECT_DIR$/classes" />
|
||||||
|
</component>
|
||||||
|
</project>
|
8
.idea/modules.xml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/iFogSimTest.iml" filepath="$PROJECT_DIR$/iFogSimTest.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
17
.project
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>iFogSimTest</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
23
README.md
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# fogsim
|
||||||
|
A Toolkit for Modeling and Simulation of Resource Management Techniques in Internet of Things, Edge and Fog Computing Environments
|
||||||
|
|
||||||
|
## IMPORTANT
|
||||||
|
Please check the `improv` branch for latest changes. Master branch has been left intact until complete testing.
|
||||||
|
|
||||||
|
## How to run iFogSim ?
|
||||||
|
|
||||||
|
* Create a Java project in Eclipse.
|
||||||
|
* Inside the project directory, initialize an empty Git repository with the following command
|
||||||
|
```
|
||||||
|
git init
|
||||||
|
```
|
||||||
|
* Add the Git repository of iFogSim as the `origin` remote.
|
||||||
|
```
|
||||||
|
git remote add origin https://github.com/harshitgupta1337/fogsim
|
||||||
|
```
|
||||||
|
* Pull the contents of the repository to your machine.
|
||||||
|
```
|
||||||
|
git pull origin master
|
||||||
|
```
|
||||||
|
* Include the JARs (except the CloudSim ones) to your Eclipse project.
|
||||||
|
* Run the example files (e.g. VRGame.java) to get started.
|
BIN
bin/executeTuple.png
Normal file
After Width: | Height: | Size: 6.2 KiB |
50
bin/executeTuple.useq
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<sequence-diagram version="1.1.9" icons="true" automaticImage="PNG">
|
||||||
|
<object id="1" language="java" name="org.fog.entities.Sensor" project="FogSim"
|
||||||
|
file="/FogSim/src/org/fog/entities/Sensor.java" binary="false" label="sensor" type="class" autoSize="true">
|
||||||
|
<position height="-1" width="-1" x="305" y="0"/>
|
||||||
|
<execution id="2">
|
||||||
|
<position height="285" width="70" x="5" y="114"/>
|
||||||
|
</execution>
|
||||||
|
<execution id="4">
|
||||||
|
<position height="222" width="70" x="5" y="156"/>
|
||||||
|
</execution>
|
||||||
|
</object>
|
||||||
|
<object id="7" language="java" name="org.fog.entities.FogDevice" project="FogSim"
|
||||||
|
file="/FogSim/src/org/fog/entities/FogDevice.java" binary="false" label="fogDevice" type="class" autoSize="true">
|
||||||
|
<position height="0" width="0" x="0" y="0"/>
|
||||||
|
<execution id="6">
|
||||||
|
<position height="180" width="81" x="79" y="177"/>
|
||||||
|
</execution>
|
||||||
|
<execution id="9">
|
||||||
|
<position height="84" width="7" x="116" y="219"/>
|
||||||
|
</execution>
|
||||||
|
<execution id="13">
|
||||||
|
<position height="21" width="7" x="119" y="261"/>
|
||||||
|
</execution>
|
||||||
|
<execution id="11">
|
||||||
|
<position height="21" width="7" x="116" y="315"/>
|
||||||
|
</execution>
|
||||||
|
</object>
|
||||||
|
<message id="3" operation="transmit():void" asynchronous="false">
|
||||||
|
<end type="SOURCE" refId="2"/>
|
||||||
|
<end type="TARGET" refId="4"/>
|
||||||
|
</message>
|
||||||
|
<message id="5" asynchronous="false">
|
||||||
|
<end type="SOURCE" refId="4"/>
|
||||||
|
<end type="TARGET" refId="6"/>
|
||||||
|
</message>
|
||||||
|
<message id="8" operation="processTupleArrival(org.cloudbus.cloudsim.core.SimEvent):void" asynchronous="false">
|
||||||
|
<end type="SOURCE" refId="6"/>
|
||||||
|
<end type="TARGET" refId="9"/>
|
||||||
|
</message>
|
||||||
|
<message id="10" asynchronous="false">
|
||||||
|
<end type="SOURCE" refId="6"/>
|
||||||
|
<end type="TARGET" refId="11"/>
|
||||||
|
</message>
|
||||||
|
<message id="12" operation="executeTuple(org.cloudbus.cloudsim.core.SimEvent,java.lang.String):void"
|
||||||
|
asynchronous="false">
|
||||||
|
<end type="SOURCE" refId="9"/>
|
||||||
|
<end type="TARGET" refId="13"/>
|
||||||
|
</message>
|
||||||
|
</sequence-diagram>
|
BIN
bin/images/1.gif
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
bin/images/actuator.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
bin/images/actuatorModule.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
bin/images/dc.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
bin/images/disk.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
bin/images/edge.png
Normal file
After Width: | Height: | Size: 467 B |
BIN
bin/images/exit.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
bin/images/hline.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
bin/images/hline2.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
bin/images/host.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
bin/images/logo.png
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
bin/images/module.png
Normal file
After Width: | Height: | Size: 877 B |
BIN
bin/images/openPhyTop.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
bin/images/openVirTop.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
bin/images/play.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
bin/images/savePhyTop.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
bin/images/saveVirTop.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
bin/images/sensor.png
Normal file
After Width: | Height: | Size: 1013 B |
BIN
bin/images/sensorModule.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
bin/images/switch.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
bin/images/upload1.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
bin/images/upload2.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
bin/images/upload3.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
bin/images/upload4.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
bin/images/vline.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
bin/images/vline2.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
bin/images/vline3.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
bin/images/vline4.png
Normal file
After Width: | Height: | Size: 394 B |
BIN
bin/images/vm1.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
bin/images/vm2.png
Normal file
After Width: | Height: | Size: 3.9 KiB |