Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Defines functions to create traceability matrices in SRS documents.
Synopsis
- type TraceViewCat = [UID] -> ChunkDB -> [UID]
- traceMIntro :: [LabelledContent] -> [Sentence] -> Contents
- generateTraceTableView :: UID -> Sentence -> [TraceViewCat] -> [TraceViewCat] -> SystemInformation -> LabelledContent
- traceMReferees :: ([UID] -> [UID]) -> ChunkDB -> [UID]
- traceMReferrers :: ([UID] -> [UID]) -> ChunkDB -> [UID]
- traceMHeader :: (ChunkDB -> [UID]) -> SystemInformation -> [Sentence]
- traceMColHeader :: ([UID] -> [UID]) -> SystemInformation -> [Sentence]
- traceMRowHeader :: ([UID] -> [UID]) -> SystemInformation -> [Sentence]
- traceMColumns :: ([UID] -> [UID]) -> ([UID] -> [UID]) -> ChunkDB -> [[UID]]
- tableShows :: (Referable a, HasShortName a) => a -> Sentence -> Sentence
- layoutUIDs :: [TraceViewCat] -> ChunkDB -> [UID] -> [UID]
- traceViewFilt :: HasUID a => (a -> Bool) -> Getting (UMap a) ChunkDB (UMap a) -> TraceViewCat
- traceView :: HasUID a => Getting (UMap a) ChunkDB (UMap a) -> TraceViewCat
- traceViewCC :: Concept c => c -> TraceViewCat
Types
Main Functions
traceMIntro :: [LabelledContent] -> [Sentence] -> Contents Source #
generateTraceTableView :: UID -> Sentence -> [TraceViewCat] -> [TraceViewCat] -> SystemInformation -> LabelledContent Source #
Generates a traceability table. Takes a UID
for the table, a description (Sentence
), columns (TraceViewCat
), rows (TraceViewCat
), and SystemInformation
.
Helper Functions
traceMReferees :: ([UID] -> [UID]) -> ChunkDB -> [UID] Source #
Helper that finds the traceability matrix references (things being referenced).
traceMReferrers :: ([UID] -> [UID]) -> ChunkDB -> [UID] Source #
Helper that finds the traceability matrix references (things that are referring to other things).
traceMHeader :: (ChunkDB -> [UID]) -> SystemInformation -> [Sentence] Source #
Helper that finds the header of a traceability matrix.
traceMColHeader :: ([UID] -> [UID]) -> SystemInformation -> [Sentence] Source #
Helper that finds the headers of the traceability matrix columns.
traceMRowHeader :: ([UID] -> [UID]) -> SystemInformation -> [Sentence] Source #
Helper that finds the headers of the traceability matrix rows.
traceMColumns :: ([UID] -> [UID]) -> ([UID] -> [UID]) -> ChunkDB -> [[UID]] Source #
Helper that makes the columns of a traceability matrix.
tableShows :: (Referable a, HasShortName a) => a -> Sentence -> Sentence Source #
Helper that makes references of the form "reference
shows the dependencies of something
".
layoutUIDs :: [TraceViewCat] -> ChunkDB -> [UID] -> [UID] Source #
Helper that finds the layout UID
s of a traceability matrix.
traceViewFilt :: HasUID a => (a -> Bool) -> Getting (UMap a) ChunkDB (UMap a) -> TraceViewCat Source #
Helper that filters a traceability matrix given a predicate and a ChunkDB
lens field.
traceView :: HasUID a => Getting (UMap a) ChunkDB (UMap a) -> TraceViewCat Source #
Helper that is similar to traceViewFilt
, but the filter is always True
.
traceViewCC :: Concept c => c -> TraceViewCat Source #
Turns a Concept
into a TraceViewCat
via its domain.