Commit 4b2ca8d1 authored by Andreas Zwinkau's avatar Andreas Zwinkau

Use commands for prefixes

Enables changing them without changing the sty file.
parent 53de0b65
......@@ -17,6 +17,13 @@
{ \GetProperty{#1}{pfl:crtid} }}
\newcommand\marginid[1]{\marginpar{\centering\textbf{#1}}}
\newcommand\PrefixMussKriterium{M}
\newcommand\PrefixKannKriterium{K}
\newcommand\PrefixAbgrenzungsKriterium{A}
\newcommand\PrefixFunktional{F}
\newcommand\PrefixNichtFunktional{N}
\newcommand\PrefixTest{T}
\newcounter{criterium}
\newcounter{criteriumOpt}
\newcounter{criteriumNot}
......@@ -29,9 +36,9 @@
\newcommand\criterium[2]{
\stepcounter{criterium}
\par\textbf{#1}\rdflabel{#2}
\marginid{M\arabic{criterium}}
\marginid{\PrefixMussKriterium\arabic{criterium}}
\AddPropertyEx{pfl:crtname}{#1}
\AddPropertyEx{pfl:crtid}{M\arabic{criterium}}
\AddPropertyEx{pfl:crtid}{\PrefixMussKriterium\arabic{criterium}}
\IfProperty{#2}{pfl:is-fulfilled}{%
\\ Implementiert durch: \Bind{?f}{pfl:fulfills}{#2}{ \functionalitylink{\GetVal{?f}} }
}{{\color{red}{NICHT IMPLEMENTIERT}}}
......@@ -40,9 +47,9 @@
\newcommand\criteriumOptional[2]{
\stepcounter{criteriumOpt}
\par\textbf{#1}\rdflabel{#2}
\marginid{K\arabic{criteriumOpt}}
\marginid{\PrefixKannKriterium\arabic{criteriumOpt}}
\AddPropertyEx{pfl:crtname}{#1}
\AddPropertyEx{pfl:crtid}{K\arabic{criteriumOpt}}
\AddPropertyEx{pfl:crtid}{\PrefixKannKriterium\arabic{criteriumOpt}}
\IfProperty{#2}{pfl:is-fulfilled}{%
\\ Implementiert durch: \Bind{?f}{pfl:fulfills}{#2}{ \functionalitylink{\GetVal{?f}} }
}{{\color{red} keine entsprechende Anforderung}}
......@@ -51,17 +58,17 @@
\newcommand\criteriumNot[2]{
\stepcounter{criteriumNot}
\par\textbf{#1}\rdflabel{#2}
\marginid{A\arabic{criteriumNot}}
\marginid{\PrefixAbgrenzungsKriterium\arabic{criteriumNot}}
\AddPropertyEx{pfl:crtname}{#1}
\AddPropertyEx{pfl:crtid}{A\arabic{criteriumNot}}
\AddPropertyEx{pfl:crtid}{\PrefixAbgrenzungsKriterium\arabic{criteriumNot}}
\par}
\newcommand\functionality[2]{
\stepcounter{functionality}
\par\textbf{#1}\rdflabel{#2}
\marginid{F\arabic{functionality}}
\marginid{\PrefixFunktional\arabic{functionality}}
\AddPropertyEx{pfl:fncname}{#1}
\AddPropertyEx{pfl:fncid}{F\arabic{functionality}}
\AddPropertyEx{pfl:fncid}{\PrefixFunktional\arabic{functionality}}
\IfProperty{#2}{pfl:is-tested}{%
\\ Getestet durch: \Bind{?t}{pfl:tests}{#2}{ \testlink{\GetVal{?t}} }
}{{\color{red}{NICHT GETESTET}}\\}
......@@ -71,22 +78,22 @@
\newcommand\nonFunctionality[2]{
\stepcounter{nonfunctionality}
\par\textbf{#1}\rdflabel{#2}
\marginid{N\arabic{nonfunctionality}}
\marginid{\PrefixNichtFunktional\arabic{nonfunctionality}}
\AddPropertyEx{pfl:fncname}{#1}
\AddPropertyEx{pfl:fncid}{N\arabic{nonfunctionality}}
\AddPropertyEx{pfl:fncid}{\PrefixNichtFunktional\arabic{nonfunctionality}}
\par}
\newcommand\test[2]{
\stepcounter{test}
\par\textbf{#1}\rdflabel{#2}
\marginid{T\arabic{test}}
\marginid{\PrefixTest\arabic{test}}
\AddPropertyEx{pfl:tstname}{#1}
\AddPropertyEx{pfl:tstid}{T\arabic{test}}
\AddPropertyEx{pfl:tstid}{\PrefixTest\arabic{test}}
\\ Testing: \Bind{#2}{pfl:tests}{?f}{ \functionalitylink{\GetVal{?f}} }
\par}
\newcommand\teststep[3]{\stepcounter{teststep}
{T\arabic{test}.\arabic{teststep}}
{\PrefixTest\arabic{test}.\arabic{teststep}}
\begin{minipage}[t]{0.8\textwidth}\raggedright
\textbf{Stand:} #1\par
\textbf{Aktion:} #2\par
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment