| Safe Haskell | Safe-Inferred | 
|---|---|
| Language | Haskell2010 | 
Theory.Drasil.Theory
Contents
Description
Defines types and functions for Theoretical Models.
Synopsis
- class Theory t where
- valid_context :: Lens' t [TheoryModel]
 - spaces :: Lens' t [SpaceDefn]
 - quantities :: Lens' t [DefinedQuantityDict]
 - operations :: Lens' t [ConceptChunk]
 - defined_quant :: Lens' t [ModelQDef]
 - invariants :: Lens' t [ModelExpr]
 - defined_fun :: Lens' t [ModelQDef]
 
 - data TheoryModel
 - tm :: (Quantity q, MayHaveUnit q, Concept q, Concept c) => ModelKind ModelExpr -> [q] -> [c] -> [ModelQDef] -> [ModelExpr] -> [ModelQDef] -> [DecRef] -> String -> [Sentence] -> TheoryModel
 - tmNoRefs :: (Quantity q, MayHaveUnit q, Concept q, Concept c) => ModelKind ModelExpr -> [q] -> [c] -> [ModelQDef] -> [ModelExpr] -> [ModelQDef] -> String -> [Sentence] -> TheoryModel
 
Class
Theories are the basis for building models with context, spaces, quantities, operations, invariants, etc.
Methods
valid_context :: Lens' t [TheoryModel] Source #
spaces :: Lens' t [SpaceDefn] Source #
quantities :: Lens' t [DefinedQuantityDict] Source #
operations :: Lens' t [ConceptChunk] Source #
defined_quant :: Lens' t [ModelQDef] Source #
invariants :: Lens' t [ModelExpr] Source #
defined_fun :: Lens' t [ModelQDef] Source #
Instances
| Theory TheoryModel Source # | Finds the aspects of the   | 
Defined in Theory.Drasil.Theory Methods valid_context :: Lens' TheoryModel [TheoryModel] Source # spaces :: Lens' TheoryModel [SpaceDefn] Source # quantities :: Lens' TheoryModel [DefinedQuantityDict] Source # operations :: Lens' TheoryModel [ConceptChunk] Source # defined_quant :: Lens' TheoryModel [ModelQDef] Source # invariants :: Lens' TheoryModel [ModelExpr] Source # defined_fun :: Lens' TheoryModel [ModelQDef] Source #  | |
Type
data TheoryModel Source #
A TheoryModel is a collection of:
- tUid - a UID,
 - con - a ConceptChunk,
 - vctx - definition context (
TheoryModels), - spc - type definitions (
SpaceDefns), - quan - quantities (
DefinedQuantityDicts), - ops - operations (
ConceptChunks), - defq - definitions (
QDefinitions), - invs - invariants (
ModelExprs), - dfun - defined functions (
QDefinitions), - ref - accompanying references (
DecRefs), - lb - a label (
SpaceDefn), - ra - reference address (
SpaceDefn), - notes - additional notes (
Sentences). 
Right now, neither the definition context (vctx) nor the spaces (spc) are ever defined.