From: Thomas F. <tfo...@us...> - 2000-11-09 13:28:32
|
Update of /cvsroot/kuml/kuml/docs/developer/analysis/usecases In directory slayer.i.sourceforge.net:/tmp/cvs-serv23248 Modified Files: uc.dtd uc.xml uc2html.xsl Log Message: Added a status to actors and use cases Index: uc.dtd =================================================================== RCS file: /cvsroot/kuml/kuml/docs/developer/analysis/usecases/uc.dtd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** uc.dtd 2000/11/08 14:11:52 1.1 --- uc.dtd 2000/11/09 13:28:28 1.2 *************** *** 22,25 **** --- 22,26 ---- id CDATA #REQUIRED name CDATA #REQUIRED + status (proposed|accepted|deleted) #REQUIRED > *************** *** 35,38 **** --- 36,40 ---- name CDATA #REQUIRED extend CDATA "" + status (proposed|accepted|deleted) #REQUIRED > Index: uc.xml =================================================================== RCS file: /cvsroot/kuml/kuml/docs/developer/analysis/usecases/uc.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** uc.xml 2000/11/08 14:11:52 1.1 --- uc.xml 2000/11/09 13:28:28 1.2 *************** *** 8,12 **** <!--**********************--> ! <actor id="1" name="User"> <short>A user of the GUI program</short> <description>This is a general user of the GUI program. In a generalization hierarchy it would be the root element for actors which interact with the GUI --- 8,12 ---- <!--**********************--> ! <actor id="1" name="User" status="proposed"> <short>A user of the GUI program</short> <description>This is a general user of the GUI program. In a generalization hierarchy it would be the root element for actors which interact with the GUI *************** *** 14,18 **** </actor> ! <actor id="2" name="Project Administrator"> <short>A project administrator which uses the GUI</short> <description> --- 14,18 ---- </actor> ! <actor id="2" name="Project Administrator" status="proposed"> <short>A project administrator which uses the GUI</short> <description> *************** *** 22,34 **** </actor> ! <actor id="3" name="Developer"> <short>A Software Developer</short> </actor> ! <actor id="4" name="Analyst"> <short>An Analyst</short> </actor> ! <actor id="5" name="Designer"> <short>A Systems Designer</short> </actor> --- 22,34 ---- </actor> ! <actor id="3" name="Developer" status="proposed"> <short>A Software Developer</short> </actor> ! <actor id="4" name="Analyst" status="proposed"> <short>An Analyst</short> </actor> ! <actor id="5" name="Designer" status="proposed"> <short>A Systems Designer</short> </actor> *************** *** 38,42 **** <!--*******************--> ! <usecase id="uc1" name="New Project"> <actorref ref="2"/> <short>Create an empty project</short> --- 38,42 ---- <!--*******************--> ! <usecase id="uc1" name="New Project" status="proposed"> <actorref ref="2"/> <short>Create an empty project</short> *************** *** 45,49 **** </usecase> ! <usecase id="uc2" name="Load Project"> <actorref ref="1"/> <short>Load a project from file</short> --- 45,49 ---- </usecase> ! <usecase id="uc2" name="Load Project" status="proposed"> <actorref ref="1"/> <short>Load a project from file</short> *************** *** 54,58 **** </usecase> ! <usecase id="uc3" name="Save Project"> <actorref ref="1"/> <short>Save a project to file</short> --- 54,58 ---- </usecase> ! <usecase id="uc3" name="Save Project" status="proposed"> <actorref ref="1"/> <short>Save a project to file</short> *************** *** 62,66 **** </usecase> ! <usecase id="uc4" name="Save Project As"> <actorref ref="1"/> <short>Save a project under new name</short> --- 62,66 ---- </usecase> ! <usecase id="uc4" name="Save Project As" status="proposed"> <actorref ref="1"/> <short>Save a project under new name</short> *************** *** 70,74 **** </usecase> ! <usecase id="uc5" name="Close Project"> <actorref ref="1"/> <short>Close the current project</short> --- 70,74 ---- </usecase> ! <usecase id="uc5" name="Close Project" status="proposed"> <actorref ref="1"/> <short>Close the current project</short> *************** *** 78,82 **** </usecase> ! <usecase id="uc6" name="Close Modified Project" extend="xp3"> <short>Close a modified but not saved project</short> <step>systems warns user that project is not saved yet and provides yes/no decision to save the project</step> --- 78,82 ---- </usecase> ! <usecase id="uc6" name="Close Modified Project" extend="xp3" status="proposed"> <short>Close a modified but not saved project</short> <step>systems warns user that project is not saved yet and provides yes/no decision to save the project</step> *************** *** 84,88 **** </usecase> ! <usecase id="uc7" name="Exit Program"> <actorref ref="1"/> <short>Exit the GUI program</short> --- 84,88 ---- </usecase> ! <usecase id="uc7" name="Exit Program" status="proposed"> <actorref ref="1"/> <short>Exit the GUI program</short> *************** *** 92,96 **** </usecase> ! <usecase id="uc8" name="Add Diagram"> <actorref ref="1"/> <short>Add a new diagram to the model</short> --- 92,96 ---- </usecase> ! <usecase id="uc8" name="Add Diagram" status="proposed"> <actorref ref="1"/> <short>Add a new diagram to the model</short> Index: uc2html.xsl =================================================================== RCS file: /cvsroot/kuml/kuml/docs/developer/analysis/usecases/uc2html.xsl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** uc2html.xsl 2000/11/08 14:11:52 1.1 --- uc2html.xsl 2000/11/09 13:28:28 1.2 *************** *** 19,23 **** <table bgcolor="#cccccc" cellpadding="3" cellspacing="1" width="100%"> <tr bgcolor="#aaaaaa"> ! <th>id</th><th>name</th><th>description</th> </tr> <xsl:apply-templates select="//actor" mode="index"> --- 19,23 ---- <table bgcolor="#cccccc" cellpadding="3" cellspacing="1" width="100%"> <tr bgcolor="#aaaaaa"> ! <th>id</th><th>name</th><th>description</th><th>status</th> </tr> <xsl:apply-templates select="//actor" mode="index"> *************** *** 28,32 **** <table bgcolor="#cccccc" cellpadding="3" cellspacing="1" width="100%"> <tr bgcolor="#aaaaaa"> ! <th>id</th><th>name</th><th>description</th><th>type</th> </tr> <xsl:apply-templates select="//usecase" mode="index"> --- 28,32 ---- <table bgcolor="#cccccc" cellpadding="3" cellspacing="1" width="100%"> <tr bgcolor="#aaaaaa"> ! <th>id</th><th>name</th><th>description</th><th>type</th><th>status</th> </tr> <xsl:apply-templates select="//usecase" mode="index"> *************** *** 44,47 **** --- 44,48 ---- <xsl:template match="actor" mode="index"> + <xsl:if test="not(@status='deleted')"> <xsl:variable name="filename" select="concat('actor',@id,'.html')"/> <tr> *************** *** 49,56 **** --- 50,60 ---- <td><a href="{$filename}"><xsl:value-of select="@name"/></a></td> <td><xsl:apply-templates select="short"/></td> + <td><xsl:value-of select="@status"/></td> </tr> + </xsl:if> </xsl:template> <xsl:template match="actor" mode="file"> + <xsl:if test="not(@status='deleted')"> <xsl:variable name="filename" select="concat('actor',@id,'.html')"/> <xsl:message>Writing <xsl:value-of select="$filename"/></xsl:message> *************** *** 72,78 **** --- 76,84 ---- </xalan:write> <xsl:message>Done</xsl:message> + </xsl:if> </xsl:template> <xsl:template match="usecase" mode="index"> + <xsl:if test="not(@status='deleted')"> <xsl:variable name="filename" select="concat('uc',@id,'.html')"/> <tr> *************** *** 88,95 **** --- 94,104 ---- </xsl:otherwise> </xsl:choose> + <td><xsl:value-of select="@status"/></td> </tr> + </xsl:if> </xsl:template> <xsl:template match="usecase" mode="file"> + <xsl:if test="not(@status='deleted')"> <xsl:variable name="filename" select="concat('uc',@id,'.html')"/> <xsl:message>Writing <xsl:value-of select="$filename"/></xsl:message> *************** *** 123,126 **** --- 132,136 ---- </xalan:write> <xsl:message>Done</xsl:message> + </xsl:if> </xsl:template> |