function InputAnalysis(){
	this.action = null;
	this.maxAbsTime = null;
	this.conflictLevel = null;
	this.numRelTime = null;
	this.absTimePts = null;
	this.currentState = "0";
	this.initialAssignedEpoch = "0";
	this.initialValueTimePoints = "0";
	this.elementList = null;
}

function getAnalysisValues(analysisInterface){
	//Data required for 1. Simulate Single Path 
	analysisInterface.maxAbsTime = $('#max-abs-time').val();
	analysisInterface.conflictLevel = $('#conflict-level').val();
	analysisInterface.numRelTime = $('#num-rel-time').val();
	if($('#abs-time-pts').val()){
		analysisInterface.absTimePts = $('#abs-time-pts').val();		
	}
	analysisInterface.elementList = getElementList();
	
	//Data required for 2. Explore Possible Next States
	if($('#finalAssigneEpoch').val()){
		analysisInterface.initialAssignedEpoch = $('#finalAssigneEpoch').val();		
	}
	if($('#finalValueTimePoints').val()){
		analysisInterface.initialValueTimePoints = $('#finalValueTimePoints').val();		
	}
	if($('#sliderValue').text()){
		analysisInterface.currentState = $('#sliderValue').text();		
	}
	analysisInterface.numRelTime = $('#num-rel-time').val();

	return analysisInterface;
}

function getElementList(){
	var elementList = [];
	var intentionsCount = 0;
	for(var i = 0; i < this.graph.getElements().length; i++){
		var element= {};
		/**
		 * INITIAL VALUE
		 */
		var satValueDict = {
				"unknown": "0000",
				"satisfied": "0011",
				"partiallysatisfied": "0010",
				"partiallydenied": "0100",
				"denied": "1100",
				"none": "0000"
			}

		var currentValue = (this.graph.getElements()[i].attr(".satvalue/value")||"none");
		//Making currentValue to numeric values like 0000, 0001, 0011...
		if(!$.isNumeric(currentValue))
			currentValue = satValueDict[currentValue];
		
		//Making that the elementId has 4 digits
		var elementID = intentionsCount.toString();
		while (elementID.length < 4){ 
			elementID = "0" + elementID;
			}
		//Adding the new id to the UI graph element
		this.graph.getElements()[i].prop("elementid", elementID);
		
		element.id = elementID;
		element.status = [];
		element.status.push(currentValue);
		
		intentionsCount++;
		elementList.push(element);
	}
	return elementList;
}

@@ -746,118 +746,414 @@
 es%0A%09
-if($('#finalAssigneEpoch').val())%7B%0A%09%09analysisInterface.initialAssignedEpoch = $('#finalAssigneEpoch').val();%09%09
+//Erase old initialAssignedEpoch data%0A%09if(analysisInterface.initialAssignedEpoch.length %3E 0)%7B%0A%09%09analysisInterface.initialAssignedEpoch = %22%22;%0A%09%7D%0A%09if($('#finalAssigneEpoch').val())%7B%0A%09%09analysisInterface.initialAssignedEpoch = $('#finalAssigneEpoch').val();%09%09%0A%09%7D%0A%09%0A%09//Erase old initialAssignedEpoch data%0A%09if(analysisInterface.initialValueTimePoints.length %3E 0)%7B%0A%09%09analysisInterface.initialValueTimePoints = %22%22;
 %0A%09%7D%0A
@@ -1271,24 +1271,26 @@
 val();%09%09%0A%09%7D%0A
+%09%0A
 %09if($('#slid

Clear old analysis data when switching between Modeling and Analysis