-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SWHS Intro Revision #1570
Comments
Agreed. What do you propose? |
Maybe "The main purpose of this document is to describe the modelling of a solar water heating system." |
It seems like the original text was intending to refer to the program by name, but the capitalization was incorrect. Like it was intended to be "... describe the modelling of Solar Water Heating System". |
@bmaclach's advice makes sense. This section is the purpose of the document, not the purpose of the software. The purpose of the document is to describe SWHS. Do we use the acronym SWHS in the SRS for SWHS? I actually think we could take out the word "modelling." The high level view of the purpose of the document is "to describe SWHS." We aren't giving a model of the software; the software itself is a model of the real-world, but our document is the requirements for the software, not a model of the requirements. |
So should we go with "The main purpose of this document is to describe Solar Water Heating System."? Or something like "The main purpose of this document is to describe the Solar Water Heating System program."? |
@danscime, I like the second one, since we want to make it clear that we are talking about software. I think we should change the word program to software. I also took out the word "main"; it feels redundant. So the sentence would be: "The purpose of this document is to describe the Solar Water Heating System software." |
Sounds good to me! |
Describing the Issue:
purpDoc :: Sentence -> CI -> Sentence
purpDoc spSent pro = foldlSent [S "The main", phrase purpose, S "of this",
phrase document, S "is to describe the modelling of" +:+.
spSent, S "The", plural goalStmt `sAnd` plural thModel,
S "used in the", short pro, S "code are provided, with an emphasis",
S "on explicitly identifying", plural assumption `sAnd` S "unambiguous" +:+.
plural definition, S "This", phrase document,
S "is intended to be used as a", phrase reference,
S "to provide ad hoc access to all", phrase information,
S "necessary to understand and verify the" +:+. phrase model, S "The",
short Doc.srs, S "is abstract because the", plural content, S "say what",
phrase problem, S "is being solved, but do not say how to solve it"]
[IPurpose $ purpDoc (phrase swhsPCM) progName ...
Solving the Issue: purpDoc :: Sentence -> CI -> Sentence
purpDoc spSent pro = foldlSent [S "The main", phrase purpose, S "of this",
phrase document, S "is to describe the modelling of" +:+.
spSent, ............. This problem is fairly easy to fix, except for the spSent parameter, which at line 130 we know that So the part of interest becomes: purpDoc :: Sentence -> CI -> Sentence
purpDoc spSent pro = foldlSent [S "The ", phrase purpose, S "of this",
phrase document, S "is to describe the",
spSent +:+. S "software", ....... The whole function becomes purpDoc :: Sentence -> CI -> Sentence
purpDoc spSent pro = foldlSent [S "The ", phrase purpose, S "of this",
phrase document, S "is to describe the",
spSent +:+. S "software", S "The", plural goalStmt `sAnd` plural thModel,
S "used in the", short pro, S "code are provided, with an emphasis",
S "on explicitly identifying", plural assumption `sAnd` S "unambiguous" +:+.
plural definition, S "This", phrase document,
S "is intended to be used as a", phrase reference,
S "to provide ad hoc access to all", phrase information,
S "necessary to understand and verify the" +:+. phrase model, S "The",
short Doc.srs, S "is abstract because the", plural content, S "say what",
phrase problem, S "is being solved, but do not say how to solve it"] While line 130 becomes: [IPurpose $ purpDoc (S "Solar Water Heating System") progName ... And the SWHS_SRS latex file shows "The purpose of this document is to describe the Solar Water Heating System software. " :). I have pushed my changes up to my branch muhammad_data_table, you will see the only change I have made is to the Body.hs file. As soon as @smiths looks over my pull request this issue can be closed. |
You have traced the symptom correctly. However, I am less sure about the solution. What is the meaning of |
spSent is just the placeholder name given to the first parameter, so it is locally defined. For example, in the following code spSent plays the same role as num1. add_two_num :: Int -> Int-> Int
add_two_num num1 num2 = num1+num2 However I did not change the name of spSent to something else, I changed the arguments with which purpDoc was called. The function purpDoc was originally called once with parameters |
See my comments on the actual code. Your code is 'correct' (in the sense that the results print as wanted), but your fix is not, in that it is not the correct Drasil way to do things. The string "Solar Water Heating System" should occur only once in the whole codebase of SWHS. |
@JacquesCarette quick question. I wanted to know how I would access the ni field in the CI datatype (the second field) import Control.Lens (makeLenses, (^.), view)
data CI = CI { _cid :: UID, _ni :: NP, _ab :: String, cdom' :: [UID]}
makeLenses ''CI
instance HasUID CI where uid = cid
instance NamedIdea CI where term = ni
instance Idea CI where getA = Just . view ab
instance CommonIdea CI where abrv = view ab
instance ConceptDomain CI where cdom = cdom'
|
|
Here are the changes I have made in my muhammad_swhs_edits branch, to actually understand them I recommend you go to the code itself.
I have made a pull request @JacquesCarette |
I feel like the grammar in this sentence should be revised.
The text was updated successfully, but these errors were encountered: