GithubHelp home page GithubHelp logo

cadmium-start_airlift's Introduction

This folder contains the Strategic Airlift DEVS model implemented in Cadmium

/**************************/
/****FILES ORGANIZATION****/
/**************************/

README.txt	
StrategicAirlift.docx
StratAirlift.xml
makefile

atomics [This folder contains atomic models implemented in Cadmium]
	\atomics\Aircraft.hpp
	\atomics\AircraftLoader.hpp
	\atomics\Destination.hpp
	\atomics\LoadPacking.hpp
	\atomics\PalletGenerator.hpp
bin [Where the executables are stored after make.  It will be auto created]
build [Auto created for the make build]
data_structures [Used to define the messages to be passed in the model]
	\data_structures\message.cpp
	\data_structures\message.hpp
input_data [Used to run the tests and experiments]
	\input_data\AircraftLoaderTest_AC.txt
	\input_data\AircraftLoaderTest_Load.txt
	\input_data\AircraftLoaderTest_Options.txt
	\input_data\AircraftTest_Load.txt
	\input_data\AircraftTest_Options.txt
	\input_data\DestinationTest_Load.txt
	\input_data\DestinationTest_Options.txt
	\input_data\LoadingProcessTest_Options.txt
	\input_data\LoadingProcessTest_Pallets.txt
	\input_data\LoadPackingTest_AC.txt
	\input_data\LoadPackingTest_Options.txt
	\input_data\LoadPackingTest_Pallet.txt
	\input_data\PalletGenTest_Options.txt
	\input_data\StratAirlift_Options.txt
models [The model]
	\models\StratAirlift.cpp
simulation_results [Auto created to store the simulation and test results]
test [The atomic and coupled tests]
	\test\AircraftLoader_Test.cpp
	\test\Aircraft_Test.cpp
	\test\Destination_Test.cpp
	\test\LoadingProcess_Test.cpp
	\test\LoadPacking_Test.cpp
	\test\PalletGen_Test.cpp
usrlib [Functions to support the simulation and tests]
	\usrlib\EIRational.hpp
	\usrlib\StratAirliftUtils.cpp
	\usrlib\StratAirliftUtils.hpp

/*************/
/****STEPS****/
/*************/

0 - StrategicAirliftModel.docx contains the explanation of this model.

1 - Update include path in the makefile in this folder and subfolders. You need to update the following lines:
	INCLUDECADMIUM=-I ../../cadmium/include
	INCLUDEDESTIMES=-I ../../DESTimes/include
    Update the relative path to cadmium/include from the folder where the makefile is. You need to take into account where you copied the folder during the installation process
	Example: INCLUDECADMIUM=-I ../../cadmium/include
	Do the same for the DESTimes library
	
2 - Compile the project and the tests
	1 - Open the terminal (Ubuntu terminal for Linux and Cygwin for Windows) in the StratAirflift folder
	3 - To compile the project and the tests, type in the terminal:
			make clean; make all

3 - Run tests:
	1 - To execute all tests you can use "make runalltests".
	2 - If you would like to excute tests individually please use the steps below:
		1 - Open the terminal in the bin folder. 
		2 - To run the test, type in the terminal "./NAME_OF_THE_COMPILED_FILE" (For windows, "./NAME_OF_THE_COMPILED_FILE.exe").  Each test has an optional ability to specify an options file as the first command line parameter.  This allows the user to redirect the output files and change parameters if required.  The test execulables in the bin directory are:
			a.	PalletGen_Test.exe
			b.	LoadPacking_Test.exe
			c.	AircraftLoader_Test.exe
			d.	Aircraft_Test.exe
			e.	Destination_Test.exe
			f.	LoadingProcess_Test.exe
		3 - To check the output of the test, go to the folder simulation_results and open  the appropriate output_state and output_messages file (i.e. PalletGen_Test_output_messages.txt).

4 - Run the top model
	1 - To execute all documented experiments at once you can use "make runexperiments"
	2 - If you would like to excute your own experiments please use the steps below:
		1 - Open the terminal in the bin folder. 
		2 - To run the model, type in the terminal "./StratAirlift {Log file prefix name}" (For windows, "./StratAirlift.exe {Log file prefix name}").  To change the parameters of the model you can include an options file as a parameter.  An example file is included in the input_data folder and labelled StratAirlift_Options.txt.  You would run the options file with "./StratAirlift StratAirlift_Test ../input_data/StratAirlift_Options.txt".
		3 - To check the output of the model, go to the folder simulation_results and open  {Log file prefix name}_state.txt and {Log file prefix name}_messages.txt file.

cadmium-start_airlift's People

Contributors

chasebad8 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.