drasil-theory-0.1.0.0: A framework for code and document generation for scientific software - Theory SubPackage
Safe HaskellNone
LanguageGHC2024

Theory.Drasil.RelationConcept

Description

For adding a relation (expression) to a concept.

Synopsis

Chunk Type

data RelationConcept Source #

For a concept (ConceptChunk) that also has a Relation (ModelExpr) attached.

Ex. We can describe a pendulum arm and then apply an associated equation so that we know its behaviour.

Instances

Instances details
HasChunkRefs RelationConcept Source # 
Instance details

Defined in Theory.Drasil.RelationConcept

HasUID RelationConcept Source #

Finds the UID of the ConceptChunk used to make the RelationConcept.

Instance details

Defined in Theory.Drasil.RelationConcept

Methods

uid :: Getter RelationConcept UID #

Idea RelationConcept Source #

Finds the idea contained in the ConceptChunk used to make the RelationConcept.

Instance details

Defined in Theory.Drasil.RelationConcept

NamedIdea RelationConcept Source #

Finds the term (NP) of the ConceptChunk used to make the RelationConcept.

Instance details

Defined in Theory.Drasil.RelationConcept

Methods

term :: Lens' RelationConcept NP #

Definition RelationConcept Source #

Finds the definition contained in the ConceptChunk used to make the RelationConcept.

Instance details

Defined in Theory.Drasil.RelationConcept

Methods

defn :: Lens' RelationConcept Sentence #

Express RelationConcept Source #

Convert the RelationConcept into the model expression language.

Instance details

Defined in Theory.Drasil.RelationConcept

Eq RelationConcept Source #

Equal if UIDs are equal.

Instance details

Defined in Theory.Drasil.RelationConcept

Constructors

makeRC :: Express e => String -> NP -> Sentence -> e -> RelationConcept Source #

Create a RelationConcept from a given UID, term (NP), definition (Sentence), and Relation.