﻿<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="design.xslt"?>
<design manifest="BehaviorDocEditDesign.1.xml" version="1.0">
	<def>Supports Addition and Editing of Behavior Documents</def>
	<text>Behavior module allows addition of a new behaviorial document or editing
		  a existing behaviorial document.It accepts the directory and filename to
		  edit and display the document to the user for editing.This module consist
		  of three main modules 1.behavior 2.Xml 3.XmlNode
	</text>
	
	<architecture>
		<activities>
			<diagram>
				<ref>Behavior_Activity.gif</ref>
			</diagram>
			<def>Activity Diagram for Behavior Module</def>
			<text>Activity diagram for the behavior editing process is simple and 
				  straight forward.It takes in the filename and directory as input.
				  If create new behavior document is requested then it gets the input 
				  from user and creates the file.If editing a file is requested then
				  file is read and displayed for the user to edit.Once data is changed
				  it is written back to the file.
			</text>
		</activities>
		
		<structure>
			<diagram>
				<ref>Behavior_Structure.gif</ref>
			</diagram>
			<def>Structure Charts for the Behavior module</def>
			<text>There are thre structure charts for this module.Behavior_Structure.vsd
				  explains the behavior display process, XML_Structure.vsd explains the 
				  XML parsing of the given behaviorial documents and XMLNode_structure is
				  used to change any particular node in the document.
			</text>
		</structure>
		<classes>
			<diagram>
				<ref>Class Diagram-Behavior.gif</ref>
			</diagram>
			<def>Class Diagram for the Behavior documents Editing module</def>
			<text>
				Behavior module consist of four classes.1.behavior 2.Xml 3.XmlNode 4.data
				behavior class is the main display class and it creates the user display
				for the user to add or edit a behavior document.Xml class is the XML parser
				used to parse the entire behaviorial document.It is used to read the XML file
				and also to write to the file.XmlNode class is also a parser but is used
				to extract any particular node in the document and to write a particular node
				in the document.data class is the data structure for this module and it is
				used to store the data.
			</text>
			<class ref="BehaviorDocEditDesign.1.xml">
				<def>behavior.cs</def>
				<text>
					  behavior class is the main display class and it creates the user 
					  display for the user to add or edit a behavior document.
				</text>
			</class>
			
			<class ref="data.cs">
				<def>data.cs</def>
				<text>
					data class is the data structure for this module and it is used to 
					store the data.
				</text>
			</class>
		</classes>
	</architecture>
	<modules>
		<diagram>
			<ref>Module_Behavior.gif</ref>
		</diagram>
		<def>Module Diagram for behavior module</def>
		<text>
			Behavior modules consist of two main modules 1.Xml 2.XmlNode
			Xml module is used for parsing the manifest given as the input.It reads the input,output,requirement
			nodes and store them in a data structure and sends back to the behavior module for display.XmlNode 
			module is used to read any particular node data.If the user wants to edit a particular diagram name
			then that node data is extracted and given back to the behavior module for editing.
		</text>
		
		
	</modules>
	<CriticalIssues>
	</CriticalIssues>
</design>
