-
Notifications
You must be signed in to change notification settings - Fork 74
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
Add composed device model storage and everest device model storage. #846
Add composed device model storage and everest device model storage. #846
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good!
I would like to see at least some parts of this documented here as part of the OCPP201 module documentation:
- Class diagram + explaination
- Variable attributes and variable characteristics for externally managed variables
- Sequence of variable access for internally and externally managed variables
ok, in doc.rst? Or where else? |
Yep 👍 |
Ok, added! |
fa45d41
to
15e70bf
Compare
Is there still a change requested? |
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
…ariables will throw. Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
… some further explainations Signed-off-by: pietfried <[email protected]>
Signed-off-by: Piet Gömpel <[email protected]>
9eff3af
to
473c2b8
Compare
…leton-for-device-model-storage
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
…leton-for-device-model-storage
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! Requested some documentation changes partially caused by the renaming to DeviceModelStorageInterface
ComposedDeviceModelStorage::get_variable_attribute(const ocpp::v201::Component& component_id, | ||
const ocpp::v201::Variable& variable_id, | ||
const ocpp::v201::AttributeEnum& attribute_enum) { | ||
if (get_variable_source(component_id, variable_id) == "OCPP") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"OCPP" can be defined as a constant
} | ||
|
||
class DeviceModel { | ||
- device_model: DeviceModelInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now became DeviceModelStorageInterface
right? Must therefore be changed at these places.
modules/OCPP201/doc.rst
Outdated
Note that the EVerest config service is not yet implemented. Currently all components and variables are controlled | ||
by the libocpp device model storage implementation. | ||
|
||
Device Model Implementation this module |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Device Model Implementation this module | |
Device Model Implementation of this module |
modules/OCPP201/doc.rst
Outdated
* Contains device model representation and business logic to prevalidate requests to the device model variables | ||
* Contains reference to device model interface implementation | ||
|
||
* DeviceModelInterface: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DeviceModelStorageInterface
database InternalStorage order 40 | ||
database ExternalStorage order 50 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like
database InternalStorage order 40 | |
database ExternalStorage order 50 | |
database DeviceModelStorageSqlite order 40 | |
database EverestDeviceModelStorage order 50 |
would be more appropriate
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
…leton-for-device-model-storage
@@ -3,6 +3,8 @@ | |||
|
|||
#include <device_model/composed_device_model_storage.hpp> | |||
|
|||
#define VARIABLE_SOURCE_OCPP "OCPP" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#define VARIABLE_SOURCE_OCPP "OCPP" | |
static constexpr auto VARIABLE_SOURCE_OCPP = "OCPP"; |
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
…leton-for-device-model-storage
…leton-for-device-model-storage
👍 please merge EVerest/libocpp#768 and update the |
…leton-for-device-model-storage
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Describe your changes
Created composed device model storage and everest device model storage like stated in https://github.com/EVerest/everest-core/tree/doc/config-service/doc/config_service#next-steps-to-adjust-ocpp201-and-libocpp
Issue ticket number and link
#844
Checklist before requesting a review