blob: d4dc8d6f4a4b814ae78c6eb57c55b2efbe248a1b [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
<properties>
<title>SysML - Norm Requirements Extraction</title>
</properties>
<body>
<section name="Pre-requisit">
<p>install pdfminer <a href="http://www.unixuser.org/~euske/python/pdfminer/">http://www.unixuser.org/~euske/python/pdfminer/</a></p>
</section>
<section name="Extract the TOC">
<subsection
name="Extract the toc from the pdf with pdfminer">
<source>dumppdf.py -T foo.pdf</source>
</subsection>
<subsection
name="Extract basic data from the generated toc file">
<source><![CDATA[ cat toc.xml | egrep "<outline|pageno" | tr '\012' "@" | sed s'/\/pageno/\n/g' | awk '{FS="\""; print "REQ-SYSML14-"$4$5}' | awk '{FS=">"; print $1"["$3"]"}' | sed 's/<//' | egrep -v "^REQ-SYSML14-Description|^REQ-SYSML14-Properties|^REQ-SYSML14-Constraints|^REQ-SYSML14-Operations|^REQ-SYSML14-Package|^REQ-SYSML14-Attributes" > req.csv]]></source>
</subsection>
<subsection
name="Layout the data">
<p>Generate the elements for each requirements</p>
<p>Create a basic maven java project with the follwoing dependencies</p>
<source><![CDATA[<dependency>
<groupId>org.eclipse.emf</groupId>
<artifactId>org.eclipse.emf.ecore</artifactId>
<version>2.11.0-v20150123-0347</version>
</dependency>
<dependency>
<groupId>org.eclipse.emf</groupId>
<artifactId>org.eclipse.emf.common</artifactId>
<version>2.11.0-v20150123-0347</version>
</dependency> ]]></source>
<p>Make a main class based upon the following code: <a href="code/RequirementGenerator.java">RequirementGenerator.java</a></p>
</subsection>
<subsection name="Create a sysml model with the requirements">
<p>Create a sysml project and add the requirement data in it</p>
<p>Reference this new model/library from your MDE model project</p>
</subsection>
</section>
</body>
</document>