Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
wangrongwei committed Dec 13, 2019
2 parents cda386b + a82b47f commit 5a27cbe
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
14 changes: 7 additions & 7 deletions Markdownbook/chapter_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

下面简单介绍一下几种常见的开源库。

### INET ###
- [1] INET

由Simucraft公司主持开发,用于仿真有线及无线网络。

Expand All @@ -39,7 +39,7 @@

- 官网:<http://inet.omnetpp.org>

### INETMANET ###
- [2] INETMANET

由 Simucraft 公司主持开发,用于仿真无线、有线网络,在INET的基础上增加了大量的MANET协议,INETMANET=INET+MANET,在INET的基础上增加:

Expand All @@ -57,19 +57,19 @@

- 官网:<http://inet.omnetpp.org>

### Mobility Framework ###
- [3] Mobility Framework

由 Simucraft 公司主持开发,是一个无线传感器仿真模型库.绝大多数协议已经被 INET 吸收

- 官网:<http://mobility-fw.sourceforge.net/hp/index.html>

### SensorSimulator ###
- [4] SensorSimulator

美国路易斯安娜州立大学开发,用于仿真无线传感器网络

- 官网:<http://csc.lsu.edu/sensor_web/>

### Castalia ###
- [5] Castalia

澳大利亚国家信息技术中心(NICTA)开发,是一个基于 OMNeT++ 的侧重于无线网络的仿真器。基于实测数据的高级 channel/radio 模型,Radio 详细的状态转移,允许多传输功率电平。

Expand All @@ -87,15 +87,15 @@

- 官网:<https://github.com/boulis/Castalia>

### OverSim ###
- [6] OverSim

德国卡尔斯鲁厄大学开发

- 用于仿真点对点(p-to-p)协议,如chard,GIA等

- 官网:<http://www.oversim.org>

### TTE4INET ###
- [7] TTE4INET

由Communication over Real-Time Ethernet Group开发的时间触发以太网仿真模型,包括对AS6802的仿真实现。现仿真模型已改名为CoRE4INET。

Expand Down
19 changes: 8 additions & 11 deletions Markdownbook/chapter_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

首先,安装**INET**库,需要到**inet**文件下看看有什么有用的文件没有,当然是先看看**README.md**了,这个文件提示我们安装请看:**INSTALL**,内容如下:

```C++
```bash
If you are building from command line:
--------------------------------------
1. Change to the INET directory.
Expand All @@ -69,7 +69,6 @@ If you are building from command line:
to build release version.

4. You can run specific examples by changing into the example's directory and executing "./run"

```
当然,你可以选择**mingwenv.cmd**命令窗口,输入以上指令进行编译安装。上面的英文安装较为简洁,下面是我使用命令窗口安装的过程:
Expand All @@ -95,29 +94,27 @@ If you are building from command line:
- 方法二:**OMNeT++**窗口安装
一样的,在**INSTALL**下命令行安装方式下面就是使用IDE的安装方式,这个**IDE**的使用方式就是将**INET**库使用**OMNeT++**打开,当然此时库文件**inet**已经在**samples**文件下,我们需要做的就是打开**OMNeT++ IDE** ,然后导入整个**inet**工程。
```C++
在**INSTALL**下命令行安装方式下面就是使用IDE的安装方式,这个**IDE**的使用方式就是首先将**inet**文件放置在**samples**目录下,并将**INET**库使用**OMNeT++**打开,我们需要做的就是打开**OMNeT++ IDE** ,然后导入整个**inet**工程。
```bash
If you are using the IDE:
-------------------------
3. Open the OMNeT++ IDE and choose the workspace where you have extracted the inet directory.
1. Open the OMNeT++ IDE and choose the workspace where you have extracted the inet directory.
The extracted directory must be a subdirectory of the workspace dir.
4. Import the project using: File | Import | General | Existing projects into Workspace.
2. Import the project using: File | Import | General | Existing projects into Workspace.
Then select the workspace dir as the root directory, and be sure NOT to check the
"Copy projects into workspace" box. Click Finish.
5. Open the project (if already not open) and wait until the indexer finishes.
3. Open the project (if already not open) and wait until the indexer finishes.
Now you can build the project by pressing CTRL-B (Project | Build all)
6. To run an example from the IDE open the example's directory in the Project Explorer view,
4. To run an example from the IDE open the example's directory in the Project Explorer view,
find the corresponding omnetpp.ini file. Right click on it and select Run As / Simulation.
This should create a Launch Configuration for this example.

If the build was successful, you may try running the demo simulations.
Change into examples/ and type "./rundemo".
```
根据上面的步骤,需要点击:**File | Import | General | Existing projects into Workspace** ,导入inet整个工程文件,对整个工程进行编译即可。
Expand All @@ -130,7 +127,7 @@ Change into examples/ and type "./rundemo".
### INETMANET安装 ###
在安装**INETMANET**库前,也许你可以在**OMNeT++**中,将**INET**工程关掉,接下来,你可以按照以下步骤进行
在安装**INETMANET**库前,安装可按照以下步骤进行
```bash
#!bin/bash
Expand Down
Binary file modified pdf/omnetpp_primer-zh.pdf
Binary file not shown.

0 comments on commit 5a27cbe

Please sign in to comment.