Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Defines types and functions for Instance Models.
Synopsis
- data InstanceModel
- im :: ModelKind Expr -> Inputs -> Output -> OutputConstraints -> [DecRef] -> Maybe Derivation -> String -> [Sentence] -> InstanceModel
- imNoDeriv :: ModelKind Expr -> Inputs -> Output -> OutputConstraints -> [DecRef] -> String -> [Sentence] -> InstanceModel
- imNoRefs :: ModelKind Expr -> Inputs -> Output -> OutputConstraints -> Maybe Derivation -> String -> [Sentence] -> InstanceModel
- imNoDerivNoRefs :: ModelKind Expr -> Inputs -> Output -> OutputConstraints -> String -> [Sentence] -> InstanceModel
- getEqModQdsFromIm :: [InstanceModel] -> [SimpleQDef]
- qwUC :: (Quantity q, MayHaveUnit q) => q -> Input
- qwC :: (Quantity q, MayHaveUnit q) => q -> RealInterval Expr Expr -> Input
Type
data InstanceModel Source #
An instance model is a ModelKind that may have specific inputs, outputs,
and output constraints. It also has attributes like references, derivation,
labels (ShortName
), reference address, and notes.
Instances
Constructors
im :: ModelKind Expr -> Inputs -> Output -> OutputConstraints -> [DecRef] -> Maybe Derivation -> String -> [Sentence] -> InstanceModel Source #
Smart constructor for instance models with everything defined.
imNoDeriv :: ModelKind Expr -> Inputs -> Output -> OutputConstraints -> [DecRef] -> String -> [Sentence] -> InstanceModel Source #
Smart constructor for instance models with a custom term, and no derivation.
imNoRefs :: ModelKind Expr -> Inputs -> Output -> OutputConstraints -> Maybe Derivation -> String -> [Sentence] -> InstanceModel Source #
Smart constructor for instance models with a custom term, and no references.
imNoDerivNoRefs :: ModelKind Expr -> Inputs -> Output -> OutputConstraints -> String -> [Sentence] -> InstanceModel Source #
Smart constructor for instance models with a custom term, and no derivations or references.
Functions
getEqModQdsFromIm :: [InstanceModel] -> [SimpleQDef] Source #
Grab all related QDefinition
s from a list of instance models.
qwUC :: (Quantity q, MayHaveUnit q) => q -> Input Source #
For building a quantity with no constraint.
qwC :: (Quantity q, MayHaveUnit q) => q -> RealInterval Expr Expr -> Input Source #
For building a quantity with a constraint.