-
Notifications
You must be signed in to change notification settings - Fork 48
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
Rename DeviceModelStorage
to DeviceModelInterface
#768
Rename DeviceModelStorage
to DeviceModelInterface
#768
Conversation
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
…ues. Currently only the 'OCPP' source is accepted. Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
…icemodelinterface
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
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 👍
include/ocpp/v201/device_model.hpp
Outdated
/// functionality to support the use cases defined in the functional block Provisioning | ||
class DeviceModel { | ||
|
||
private: | ||
DeviceModelMap device_model; | ||
std::unique_ptr<DeviceModelStorage> storage; | ||
std::unique_ptr<DeviceModelInterface> interface; |
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.
nit: I would rather call this device_model_interface
or just device_model
and rename the
DeviceModelMap device_model to device_model_map
…tion instead of constructor. Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
…icemodelinterface
…icemodelinterface
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
…icemodelinterface
…icemodelinterface
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
I am actually implementing some tests that make use of the device model at the moment. That made me think if |
DeviceModelMock? It is an interface isn't it? So what is your proposal then? |
Well the pattern we are using is |
Because it does not have to be a storage, if the implementer does not want to make it a storage (which is strange, I admit, but it might be runtime something). |
…icemodelinterface
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
325713a
to
1c8ef1d
Compare
@@ -6,6 +6,7 @@ | |||
"properties": { | |||
"AlignedDataCtrlrEnabled": { | |||
"variable_name": "Enabled", | |||
"source": "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.
Is there a reason why we only have that im some of the files? To have an example?
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.
I am not sure anymore (it's a long time ago already), but I think so indeed.
I also don't know exactly which values should be for ocpp and which internal, from some I know but for the others we have to walk through them?
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.
For now, all should be 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.
Id suggest to remove the "source" here. It will be useful later when we add externally managed variables.
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
Describe your changes
Rename 'DeviceModelStorage' to 'DeviceModelInterface'
Issue ticket number and link
#766
Checklist before requesting a review