***************************************************************************************************************
* author: Sixuan Wang
* data: 2012/Dec/19
* title: Occupancy Analysis Using BIM and Cell-DEVS Simulation with RISE Remote Simulation 
****************************************************************************************************************

Please unzip the file firstly, anywhere.

1. "Doc" folder contains final report, model form, and readme

2. "Model_RISE-lopez" folder contains model of lopez, using RISE WS. 
    To modify the model:
	1) go to "Model_RISE-lopez" folder
	2) Edit "occupancy.ma" to change the size of the cell space and other interesting parameters
	3) Edit "occupancy.val" to change the initial values, 
                4) Edit "occupancy.inc" to change the macro parameters
	5) compress model files into "occupancy.zip"
	6) Edit "occupancy.xml" to change configuraiton for using lopez in RISE
	
     To test the model:
	Step 1) Create your workspace, DCD++ service and a framework. This can be done in one request:
	>> java -jar RESTful_CDppTest.jar PutXMLFile sixuan sixuan sixuan/lopez/occupancy occupancy.xml
	Then see http://134.117.53.66:8080/cdpp/sim/workspaces/sixuan/lopez/occupancy

	Step 2) Submit the life model files to your framework URI, as follows:
	>> java -jar RESTful_CDppTest.jar PostZipFile sixuan sixuan sixuan/lopez/occupancy?zdir=occupancy occupancy.zip
	Then see http://134.117.53.66:8080/cdpp/sim/workspaces/sixuan/lopez/occupancy

	Step 3) Run/Re-run Simulation, as follows:
	>> java -jar RESTful_CDppTest.jar PutFramework sixuan sixuan sixuan/lopez/occupancy/simulation
	Then see http://134.117.53.66:8080/cdpp/sim/workspaces/sixuan/lopez/occupancy/simulation

	Step 4) Retrieve Simulation results, click ¡°Download Last Simulation Results¡± or 
	http://134.117.53.66:8080/cdpp/sim/workspaces/test/lopez/LifeModel/results

3. "Model_Standalone-CD++" folder contains model of standalone, using CD++ 
    To test the model:	
	1) go to "Model_RISE-lopez" folder
	2) Edit "occupancy.ma" to change the size of the cell space and other interesting parameters
	3) Edit "occupancy.val" to change the initial values, 
                4) Edit "occupancy.inc" to change the macro parameters
 	5) Run occupancy.bat to generate the log file
 	6) Run occupancy_drw.bat to generate the drw file

4. The six tests described in the report for lopez version can be found in the "Test/RISE_Lopez" 
    The six tests described in the report for CD++ version can be found in the "Test/Standalone_CD++" 
    You can copy and modify them, same operations as mentioned in above part 2 or part 3.

