# workflowsim **Repository Path**: CodeTan/workflowsim ## Basic Information - **Project Name**: workflowsim - **Description**: 学习workflowsim - **Primary Language**: Java - **License**: LGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-10-25 - **Last Updated**: 2024-05-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Table of Contents 目录 ----------------- 1. Directory structure of the WorkflowSim Toolkit WorkflowSim工具包的目录结构 2. Software requirements: Java version 1.6 or newer 软件需求:Java 1.6或更新版本 3. Installation and running the WorkflowSim Toolkit 安装和运行WorkflowSim工具包 1. Directory structure of the WorkflowSim Toolkit WorkflowSim工具包的目录结构 ---------------------------------------------- workflowsim/ -- top level WorkflowSim directory 顶级WorkflowSim目录 docs/ -- WorkflowSim API Documentation WorkflowSim API文档 examples/ -- WorkflowSim examples WorkflowSim例子 lib/ -- WorkflowSim jar archives WorkflowSim jar档案 sources/ -- WorkflowSim source code WorkflowSim源代码 2. Software requirements: Java version 1.6 or newer 软件需求:Java 1.6或更新版本 --------------------------------------------------- WorkflowSim has been tested and ran on Sun's Java version 1.8.0 or newer. If you have non-Sun Java version, such as gcj or J++, they may not be compatible. You can use Eclipse, NetBeans, or Ant to compile and run WorkflowSim WorkflowSim已经测试和Sun的Java版本1.8.0或更新。 如果你没有sun的Java版本,如gcj或J + +,他们可能不兼容的。 您可以使用Eclipse、NetBeans或Ant编译并运行WorkflowSim 3. Installation and running the WorkflowSim Toolkit 安装和运行WorkflowSim工具包 ### Welcome to WorkflowSim Pages.欢迎来到WorkflowSim页面 WorkflowSim is a workflow simulator to support large-scale scheduling, clustering and provisioning studies. It is developed by Weiwei Chen, a Phd student from University of Southern California under the Apache License version 2.0. WorkflowSim is not yet fully completed and we welcome your contribution to this project. WorkflowSim工作流模拟器支持大规模调度、聚类和配置研究。 它是由Weiwei Chen开发的 南加州大学的一个博士生在Apache License 2.0版 WorkflowSim还没有完全完成,我们欢迎您对这个项目的贡献。 This page introduces the basic features of WorkflowSim and how to install and run it with Eclipse or NetBeans. 这个页面介绍了WorkflowSim的基本特征以及如何用Eclipse和NetBeans安装和运行它。 ### 1. Use WorkflowSim with GitHub/Eclipse 使用GitHub WorkflowSim / Eclipse ( It is suggested to use WorkflowSim if you are going to contribute back to this project, otherwise it is not required. ) 建议使用WorkflowSim如果你要贡献回到这个项目,否则它不是必需的 1.1 Register a GitHub account and fork your own branch 自己注册一个GitHub账户和叉分支 Go to the repository page (https://github.com/WorkflowSim/WorkflowSim-1.0) and click 'Fork' on the top-right corner next to 'Star'. Then you will have your own branch of WorkflowSim and you can maintain your codes under this branch and commit your changes to it. In this example, we use 'chenww05' as an example and you will see a new repo called chenww05/WorkflowSim-1.0. Go to your repo, and copy the path. In this case, it is "https://github.com/chenww05/WorkflowSim-1.0.git". 去库页面(https://github.com/workflowsim/workflowsim)并单击“叉”右上角的下一个“分支Fork”。 WorkflowSim的你就会有自己的分支,你可以保持你的代码在这个分支,并提交您的更改。 在这个例子中,我们使用“chenww05”作为一个例子,你会看到一个新的回购叫做chenww05 / workflowsim - 1.0。 去你的回购,并复制路径。在本例中,它是“https://github.com/chenww05/WorkflowSim-1.0.git”。 1.2 Install EGit 安装EGit Open your Eclipse, go to 'Help'->'Install New Software', in 'Work with', choose '--All Available Sites', make sure you have EGit listed, otherwise click the item and install it. 打开您的Eclipse,去“帮助”- >“安装新软件”,在“工作”,选择“——所有可用的网站”, 确保你有EGit上市,否则单击条目并安装它。 1.3 Check out your source codes 看看你的源代码 First, create a new java project called 'WorkflowSim' (it doesn't have to be 'WorkflowSim'). Right click your project, choose 'Import'. Click 'Git'->'Projects from Git'. Set the URL to be "https://github.com/chenww05/WorkflowSim-1.0.git". And then you will see a branch called 'master', tick it and continue. And you don't need import projects again so just cancel. 首先,创建一个新的java项目称为“WorkflowSim”(之前没有创建过“WorkflowSim”)。 右键单击您的项目,选择“导入”。点击“Git”- >“项目从Git”。 将URL设置为“https://github.com/chenww05/WorkflowSim-1.0.git”。 然后你会看到一个分支叫做‘master’,点它并继续。 和你不需要再次导入项目所以就取消吧 1.4 Import Source Files and Libraries 导入的源文件和库 Right click the project again and choose 'Properties'. Go to 'Java Build Path'. Link two source directories (your_repo_root/examples, your_repo_root/sources)to the source folders. Add two external JARs (your_repo_root/lib/flanagan.jar and your_repo_root/lib/jdom-2.0.0.jar) to the Libraries. 再次右键单击该项目并选择“属性”。 去“Java构建路径”。 链接两个源目录(your_repo_root/examples, your_repo_root/sources)源文件夹。 添加两个外部jar(your_repo_root/lib/flanagan.jar and your_repo_root/lib/jdom-2.0.0.jar)库。 1.5 Run an Example 运行一个例子 Run an example i.e., org.workflowsim.examples.WorkflowSimBasicExample1.java. Open WorkflowSimBasicExample1.java, replace the String daxPath = "/Users/chenweiwei/Work/WorkflowSim-1.0/config/dax/Montage_100.xml"; with your real physical file path. Right click on WorkflowSimBasicExample1.java and choose 'Run File'. You should be able to see some output: 运行一个例子:org.workflowsim.examples.WorkflowSimBasicExample1.java。 打开WorkflowSimBasicExample1,根据你的真实物理路径更改下边的daxPath String daxPath = "/Users/chenweiwei/Work/WorkflowSim-1.0/config/dax/Montage_100.xml"; 右键单击WorkflowSimBasicExample1.java并选择“运行文件”。您应该能够看到一些输出: 98 SUCCESS 2 0 6.91 263.78 270.69 8 99 SUCCESS 2 0 0.83 270.69 271.52 9 ### 2. Use WorkflowSim with GitHub/NetBeans 使用GitHub WorkflowSim / NetBeans 2.1 Register a GitHub account and fork your own branch 自己注册一个GitHub账户和叉分支 It is the same to 1.1. 1.1都是一样的。 2.2 Install Git 安装Git Go to 'Teams'->'Available Plugins'. Search for 'Git' and install it. 去“团队”- >“可用插件”。搜索“Git”和安装它。 2.3 Check out your source codes 看看你的源代码 First, create a new java project with Existing Sources called 'WorkflowSim' (it doesn't have to be 'WorkflowSim'). Right click this project and choose 'Set as Main Project' for convenience. Right click this project again and choose 'Versioning'->'Initialize Git Repository'. You don't need to change the root path, just click 'OK'. 首先,创建一个新的java项目与现有的资源称为“WorkflowSim”(它没有“WorkflowSim”)。 为了方便,右键单击该项目并选择“设置为主要项目”。 再次右键单击该项目并选择“版本管理”- >“初始化Git存储库”。 你不需要改变根路径,点击“OK”。 Right click the project and choose 'Git'->'Remote'->'Pull', set the 'Repository URL' to be 'https://github.com/chenww05/WorkflowSim-1.0.git' and the 'Remote name' to be 'master'. Click 'OK' and you will see a branch called 'master', tick it and continue. 右键单击该项目并选择“Git”- >“Remote”- >“Pull拉取”, 设置“存储库URL”为“https://github.com/chenww05/WorkflowSim-1.0.git”和“远程名称Remote name”“master”。 点击“OK”,您将看到一个分支叫做‘master’,点击并继续。 2.4 Import Source Files and Libraries 导入的源文件和库 After a while the download is down, right click the project again and choose 'Project Properties'. Go to 'Sources', click 'Add Folder' and choose two folders (your_repo_root/examples and your_repo_root/sources). Go to 'Libraries', add all jars (your_repo_root/lib/*.jar). 一段时间后下载下来,再次右键单击该项目并选择“项目属性”。 去“Sources”,点击“添加文件夹”,然后选择两个文件夹(your_repo_root/examples and your_repo_root/sources)。 去Libraries,将所有jar添加(your_repo_root / lib / * . jar)。 2.5 Run an Example The same to 1.5. 运行一个例子 ### 3. Use WorkflowSim with Eclipse but without GitHub 使用Eclipse WorkflowSim但没有GitHub ( If you don't want to contribute back to WorkflowSim with your codes, you can use WorkflowSim without GitHub. ) 如果你不想回WorkflowSim贡献代码,您可以使用WorkflowSim没有GitHub。 3.1 Download Source Files. 下载源文件 Skip 1.1 and 1.2. Different to 1.3, we download source files directly from https://github.com/WorkflowSim/WorkflowSim-1.0/archive/master.zip and unzip it to your_repo_root. 跳过1.1和1.2。不同的1.3, 我们直接从https://github.com/workflowsim/workflowsim下载源文件并将其解压缩。 3.2 Switch to 1.4 and continue with the rest steps (1.5). 切换到1.4,继续与其他步骤(1.5)。 ### 4. Use WorkflowSim with NetBeans but without GitHub 使用NetBeans WorkflowSim但没有GitHub 4.1 Download Source Files The same to 3.1. 4.2 Switch to 2.4 and continue with the rest steps (2.5). ### Authors and Contributors This page is written by Weiwei Chen @chenww05. For details or bug reports, please contact the author. ### Support or Contact 支持或联系 Please send an email to support@workflowsim.org. We appreciate your contribution to this project and please go to github to submit your bug report. Many of the questions may have been answered in our wiki pages: https://github.com/WorkflowSim/WorkflowSim-1.0/wiki/_pages 请发送电子邮件至support@workflowsim.org。 我们感谢您对这个项目的贡献,请到github提交错误报告。 可能已经回答很多问题在我们的wiki页面: https://github.com/WorkflowSim/WorkflowSim-1.0/wiki/_pages ### Mailing Lists 邮件列表 WorkflowSim Announce Message about new release or updates workflowsim-announce@googlegroups.com WorkflowSim Users Messages about WorkflowSim related questions/reports workflowsim-user@googlegroups.com WorkflowSim用户 发送WorkflowSim相关问题/报告到: workflowsim-user@googlegroups.com WorkflowSim Developers Messages about WorkflowSim development workflowsim-dev@googlegroups.com WorkflowSim开发者 发送WorkflowSim相关问题/报告到: workflowsim-dev@googlegroups.com