electric activity
AbandonedPublic

Authored by dekumar on Apr 4 2019, 8:09 AM.

Details

Summary

components files added

resources added

terminals point set

Diff Detail

Repository
R2 GCompris
Branch
analog
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 10743
Build 10761: arc lint + arc unit
dekumar created this revision.Apr 4 2019, 8:09 AM
Restricted Application added a project: KDE Edu. · View Herald TranscriptApr 4 2019, 8:09 AM
Restricted Application added a subscriber: kde-edu. · View Herald Transcript
dekumar requested review of this revision.Apr 4 2019, 8:09 AM
dekumar retitled this revision from canvas board created to electric activity.
dekumar added a comment.EditedApr 4 2019, 8:23 AM

I have done the following piece of work:

  1. Created the whole activity base.
  2. Checked whether the way of loading the dataset file can be kept similar to digital_electricity or not. The same dataset format used was same as one in the digital electricity and there is no issue.
  3. The ListWidget.qml, terminalpoint.qml and DragListItem.qml files were used from the digital elctricity and it works fine.
  4. Level was created using bulb and battery which is not fully working, still needs to be integrated with the external library.
  5. Function to zoomin, zoomout the components were used and it works fine.
  6. Taken few resources from the Gtk+ version.

I will work on the next part of this activity now, the work of integrating the external library. The external library code needs to remodeled, mainly the schematic part so I will need some time to complete this one:)
Thanks!

dekumar updated this revision to Diff 55407.Apr 4 2019, 10:03 AM
  • typo fixed

I have done the following piece of work:

  1. Created the whole activity base.
  2. Checked whether the way of loading the dataset file can be kept similar to digital_electricity or not. The same dataset format used was same as one in the digital electricity and there is no issue.
  3. The ListWidget.qml, terminalpoint.qml and DragListItem.qml files were used from the digital elctricity and it works fine.
  4. Level was created using bulb and battery which is not fully working, still needs to be integrated with the external library.
  5. Function to zoomin, zoomout the components were used and it works fine.
  6. Taken few resources from the Gtk+ version.

    I will work on the next part of this activity now, the work of integrating the external library. The external library code needs to remodeled, mainly the schematic part so I will need some time to complete this one:) Thanks!

Thank you for the hard work. I'm not sure on how to phrase it because, for sure, you've worked a lot, but what we would like to see is a small example of the integration of the library. For the layout and reusable items for digital activity, we have no doubts on its feasibility.

@jjazeix Thanks for the review :)

Yes, I will try to show a small example of how the external library can be used.

dekumar updated this revision to Diff 55785.Apr 8 2019, 9:41 PM
  • Concept to be used for the integration of library added
dekumar added a comment.EditedApr 8 2019, 9:46 PM

I have added the concept to be used for the integration process in the code at the last of analog.js file which is commented. I have also tested the external library with a small integration to check whether it would work fine or not. There were no issues with the integration of the library as tested with a small example. The sample code and some description for the integration process is added at the beginning in the analog.js files too.

Thanks!

With reference to @echarruau question on irc. This is how the json strucuture will be maintained and loaded to the cktsim() library https://pastebin.com/JkmhVR9x

Here 'g' : ground, 'w': wire, 'r', resistor of the components is also stored in form of json with them. I ran the cktsim library with this json and gives the output "The json strucuture loaded is valid". The result will be computed in the same way, as there is a result dictionary maintain for every node in cktsim() of the library.

Thanks!

With reference to @echarruau question on irc. This is how the json strucuture will be maintained and loaded to the cktsim() library https://pastebin.com/JkmhVR9x

Here 'g' : ground, 'w': wire, 'r', resistor of the components is also stored in form of json with them. I ran the cktsim library with this json and gives the output "The json strucuture loaded is valid". The result will be computed in the same way, as there is a result dictionary maintain for every node in cktsim() of the library.

Thanks!

Hi,

Thank you. Why is it in a separate file and not having it integrated directly in the activity?

dekumar added a comment.EditedApr 11 2019, 6:24 PM

With reference to @echarruau question on irc. This is how the json strucuture will be maintained and loaded to the cktsim() library https://pastebin.com/JkmhVR9x

Here 'g' : ground, 'w': wire, 'r', resistor of the components is also stored in form of json with them. I ran the cktsim library with this json and gives the output "The json strucuture loaded is valid". The result will be computed in the same way, as there is a result dictionary maintain for every node in cktsim() of the library.

Thanks!

Hi,

Thank you. Why is it in a separate file and not having it integrated directly in the activity?

Hi, there is some work around more to be done to capture and maintain the json structure for the canvas board. This was just an example to show the json structure which will be maintained for the canvas board. I have integrated this sample code too in the analog.js file and it works fine with no issues. Just, I haven't updated the diff with this test which I did later.

Thanks!

dekumar updated this revision to Diff 56010.Apr 11 2019, 7:24 PM
  • json structure code added to the analog.js file
dekumar abandoned this revision.Fri, May 10, 8:08 PM