Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Defines helper functions for creating subsections within the Solution Characteristics Specification. Namely, for theory models, general definitions, data definitions, and instance models.
Synopsis
- data Field
- type Fields = [Field]
- data InclUnits
- data Verbosity
- ddefn :: Fields -> SystemInformation -> DataDefinition -> LabelledContent
- derivation :: (MayHaveDerivation c, HasShortName c, Referable c) => c -> Maybe Contents
- gdefn :: Fields -> SystemInformation -> GenDefn -> LabelledContent
- instanceModel :: Fields -> SystemInformation -> InstanceModel -> LabelledContent
- tmodel :: Fields -> SystemInformation -> TheoryModel -> LabelledContent
- helperRefs :: HasUID t => t -> SystemInformation -> Sentence
- helpToRefField :: UID -> SystemInformation -> Sentence
Types
Fields that should be displayed in definitions.
Determines whether to include or ignore units.
IncludeUnits | In description field (for other symbols). |
IgnoreUnits |
Refers to the verbosity of statements.
Constructors
ddefn :: Fields -> SystemInformation -> DataDefinition -> LabelledContent Source #
Create a data definition using a list of fields, a database of symbols, and a
QDefinition
(called automatically by SCSSub
program).
derivation :: (MayHaveDerivation c, HasShortName c, Referable c) => c -> Maybe Contents Source #
Create a derivation from a chunk's attributes. This follows the TM, DD, GD,
or IM definition automatically (called automatically by SCSSub
program).
gdefn :: Fields -> SystemInformation -> GenDefn -> LabelledContent Source #
Create a general definition using a list of fields, database of symbols,
and a GenDefn
(general definition) chunk (called automatically by SCSSub
program).
instanceModel :: Fields -> SystemInformation -> InstanceModel -> LabelledContent Source #
Create an instance model using a list of fields, database of symbols,
and an InstanceModel
chunk (called automatically by SCSSub
program).
tmodel :: Fields -> SystemInformation -> TheoryModel -> LabelledContent Source #
Create a theoretical model using a list of fields to be displayed, a database of symbols,
and a RelationConcept
(called automatically by SCSSub
program).
Helpers
helperRefs :: HasUID t => t -> SystemInformation -> Sentence Source #
helpToRefField :: UID -> SystemInformation -> Sentence Source #
Creates a reference as a Sentence
by finding if the UID
is in one of the possible data sets contained in the SystemInformation
database.