UI-DEN-1396_Log Handler

Activity

UI-DEN-1396-1 167

Keyboard shortcuts  
  • Summarize the review outcomes (optional)
     
    #permalink

    Details

    Warning: no files are visible, they have all been filtered.
    Participant Role Time Spent Comments Latest Comment
    Author & Moderator 1h 38m 57 Very good point. Regarding our discussion I understood. I...
    Reviewer - Complete 1h 46m    
    pmontazemi  (deleted user)
    Reviewer completed
    Reviewer - Complete 43m 104 RESOLVED.
    lbaloa  (deleted user)
    Reviewer completed
    Reviewer - Complete 26m 6 RESOLVED.
    Total   4h 36m 167  
    #permalink

    Objectives

    There are no specific objectives for this review.

    Branches in review

    #permalink

    Issues Raised From Comments

    Key Summary State Assignee
    #permalink

    General Comments

    lbaloa  (deleted user)

    We need to provide better description of each class at the beginning in order...

    We need to provide better description of each class at the beginning in order to make sense of the code.

      lbaloa  (deleted user) marked as Resolved 15 Jan 20

    Behrouz NematiPour

    I'll take an overall look. Could you please help me with a specific example?

    I'll take an overall look.
    Could you please help me with a specific example?

    Behrouz NematiPour

    You are absolutely right. I forgot the classes details description. Added det...

    You are absolutely right.
    I forgot the classes details description.
    Added details.

    Behrouz NematiPour

    Very good point. Regarding our discussion I understood. I don't timeout and d...

    Very good point.
    Regarding our discussion I understood.
    I don't timeout and don't wait for a response back.
    But I'm going to have that when I'm done with the ACK/BACK.

    lbaloa  (deleted user)

    RESOLVED.

    RESOLVED.

    lbaloa  (deleted user)

    I looked for time outs when a message is sent, not clear if it is implemented...

    I looked for time outs when a message is sent, not clear if it is implemented or not.

      lbaloa  (deleted user) marked as Resolved 15 Jan 20

    Behrouz NematiPour

    Could you please explain a little more which timeout and messages we are talk...

    Could you please explain a little more which timeout and messages we are talking about since it's in a general area I don't know which part you mean.

    lbaloa  (deleted user)

    RESOLVED.

    RESOLVED.

    lbaloa  (deleted user)

    Can you explain why are you using two threads? One in frame interface and ano...

    Can you explain why are you using two threads? One in frame interface and another one in can interface? I would think of a communication system as two threads, one sending information and another waiting to receive a response.

      lbaloa  (deleted user) marked as Resolved 15 Jan 20

    Behrouz NematiPour

    Very good question. I put the classes in threads by the producer consumer ide...

    Very good question.
    I put the classes in threads by the producer consumer idea.
    The class FrameInterface is a mediator between the two logics you explained.
    So we have three threads :

    CanInterface : Gets "Frames (QCanBusFrame)", directly from can device queue them and notify the FrameInterface.
    FrameInterface : Gets "Frames" from CanInterface convert them into "array of bytes (QByteArray)" for each channel.
    MessageDispatcher : Gets "Array of Bytes (QByteArray)" and [Build] them as "Messages" and wait for further data to make the Messages complete and then [Interpret/Validate] them and dispatch it to the responsible class.

    So I have three threads.
    It can be 2 but I preferred to put the mediator in its own thread.
    I hope it explains.

    lbaloa  (deleted user)

    RESOLVED.

    RESOLVED.

    /scripts/run.sh Changed 3
    Open in IDE #permalink
    /sources/abstract/singleton.h Added
    Open in IDE #permalink
    /sources/canbus/alarminterpreter.cpp Deleted
    Open in IDE #permalink
    /sources/canbus/alarminterpreter.h Deleted
    Open in IDE #permalink
    /sources/canbus/caninterface.cpp Changed
    /sources/canbus/caninterface.h Changed 3
    /sources/canbus/frameinterface.cpp Added
    /sources/canbus/frameinterface.h Added
    /sources/canbus/messagebuilder.cpp Added
    /sources/canbus/messagebuilder.h Added
    /sources/canbus/messagedispatcher.cpp Added
    /sources/canbus/messagedispatcher.h Added
    /sources/canbus/messageglobals.cpp Deleted
    Open in IDE #permalink
    /sources/canbus/messageglobals.h Added
    /sources/canbus/messagehandler.cpp Deleted
    Open in IDE #permalink
    /sources/canbus/messagehandler.h Deleted
    Open in IDE #permalink
    /sources/canbus/messageinterface.cpp Deleted
    Open in IDE #permalink
    /sources/canbus/messageinterface.h Deleted
    Open in IDE #permalink
    /sources/canbus/messageinterpreter.cpp Added 6
    /sources/canbus/messageinterpreter.h Added
    /sources/canbus/messagepartitioner.cpp Deleted
    Open in IDE #permalink
    /sources/canbus/messagepartitioner.h Deleted
    Open in IDE #permalink
    /sources/configuration/display.cpp Changed 3
    Open in IDE #permalink
    /sources/configuration/display.h Changed 3
    Open in IDE #permalink
    /sources/configuration/sound.cpp Changed 3
    Open in IDE #permalink
    /sources/configuration/sound.h Changed 3
    Open in IDE #permalink
    /sources/gui/qml/components/BackButton.qml Changed 3
    Open in IDE #permalink
    /sources/gui/.../components/ExportButton.qml Added
    /sources/gui/qml/components/LogoD.qml Changed 3
    Open in IDE #permalink
    /sources/gui/qml/components/MainMenu.qml Changed
    /sources/gui/.../components/ModalDialog.qml Changed 3
    /sources/gui/qml/components/ScreenItem.qml Changed 3
    Open in IDE #permalink
    /sources/gui/qml/components/StackItem.qml Changed 3
    Open in IDE #permalink
    /sources/gui/qml/components/TitleText.qml Changed 3
    Open in IDE #permalink
    /sources/gui/qml/components/TouchRect.qml Changed 3
    /sources/gui/qml/components/USBButton.qml Added
    /sources/gui/qml/dialogs/PowerOff.qml Changed 3
    Open in IDE #permalink
    /sources/gui/qml/globals/Colors.qml Changed
    /sources/gui/qml/globals/Fonts.qml Changed 3
    Open in IDE #permalink
    /sources/gui/qml/globals/Variables.qml Changed 3
    Open in IDE #permalink
    /sources/gui/qml/pages/ManagerHome.qml Changed 3
    Open in IDE #permalink
    /sources/gui/qml/pages/ManagerStack.qml Changed 3
    Open in IDE #permalink
    /sources/gui/qml/pages/SettingsHome.qml Changed 3
    /sources/gui/qml/pages/SettingsStack.qml Changed 3
    Open in IDE #permalink
    /sources/gui/qml/pages/TreatmentCreate.qml Changed 3
    Open in IDE #permalink
    /sources/gui/qml/pages/TreatmentHome.qml Changed
    /sources/gui/qml/pages/TreatmentStack.qml Changed 3
    Open in IDE #permalink
    /sources/gui/qml/pages/TreatmentStart.qml Changed 6
    /sources/gui/qml/main.qml Changed 6
    /sources/gui/guiactions.cpp Deleted
    Open in IDE #permalink
    /sources/gui/guiactions.h Deleted
    Open in IDE #permalink
    /sources/gui/guicontroller.cpp Changed 6
    /sources/gui/guicontroller.h Changed 3
    /sources/gui/guiglobals.cpp Changed 3
    /sources/gui/guiglobals.h Changed 3
    /sources/gui/guiview.cpp Changed 3
    /sources/gui/guiview.h Changed 3
    /sources/storage/filehandler.cpp Changed
    /sources/storage/filehandler.h Changed
    /sources/storage/logger.cpp Changed
    /sources/storage/logger.h Changed 3
    /sources/storage/settings.cpp Changed 3
    Open in IDE #permalink
    /sources/storage/settings.h Changed 3
    Open in IDE #permalink
    /sources/storage/storageglobals.cpp Added
    /sources/storage/storageglobals.h Added
    /sources/storage/usbwatcher.cpp Added
    /sources/storage/usbwatcher.h Added 3
    /sources/utility/crc.cpp Added 3
    /sources/utility/crc.h Added
    Open in IDE #permalink
    /sources/utility/format.cpp Added
    /sources/utility/format.h Added
    /sources/utility/types.cpp Added
    /sources/utility/types.h Added
    /sources/applicationcontroller.cpp Changed
    /sources/applicationcontroller.h Changed 3
    /sources/applicationpost.cpp Changed 3
    Open in IDE #permalink
    /sources/applicationpost.h Changed 3
    Open in IDE #permalink
    /sources/main.h Changed
    /sources/maintimer.cpp Changed 3
    /sources/maintimer.h Changed 3
    /sources/threads.cpp Added
    /sources/threads.h Added
    /unittests/tst_canbus.cpp Added 3
    /unittests/tst_canbus.h Added
    /unittests/tst_logging.cpp Added
    Open in IDE #permalink
    /unittests/tst_logging.h Added 6
    Open in IDE #permalink
    /unittests/tst_utilities.cpp Added 3
    Open in IDE #permalink
    /unittests/tst_utilities.h Added 3
    Open in IDE #permalink
    /unittests/unittests.cpp Deleted 3
    Open in IDE #permalink
    /unittests/unittests.h Deleted
    Open in IDE #permalink
    /.gitignore Changed
    /cppcheck.err Changed
    /cppcheck.log Changed
    /cppcheck.sh Changed
    /denali.pro Changed
    /denali.pro.user Added
    /denali.qrc Changed
    /main.cpp Changed 3

    Review updated: Reload | Ignore | Collapse

    You cannot reload the review while writing a comment.

    Log time