-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
75 changed files
with
1,354 additions
and
552 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
edge/lib/brittany-concrete/src/digital-light/hw/DigitalLightHw.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
edge/lib/brittany-mock/src/mock-humidity-actuator/modules/MockDehumidifierModule.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#ifndef BRITTANY_MOCK_DEHUMIDIFIER_MODULE_H | ||
#define BRITTANY_MOCK_DEHUMIDIFIER_MODULE_H | ||
|
||
#include <list> | ||
#include "operation-handler/interfaces/components/TurnOffSwitchableHandler.h" | ||
#include "operation-handler/interfaces/components/TurnOnSwitchableHandler.h" | ||
#include "operation-handler/interfaces/components/IsOnSwitchableHandler.h" | ||
#include "mock-switchable/hw/MockSwitchableHw.h" | ||
#include "modules/ComponentModule.h" | ||
#include "modules/ModuleNames.h" | ||
|
||
class MockDehumidifierModule : public ComponentModule<MockSwitchableHw> { | ||
|
||
public: | ||
|
||
MockDehumidifierModule(std::list<MockSwitchableHw*> components) | ||
: ComponentModule<MockSwitchableHw>(module_as_string(ModuleNames::Humidity), components) { | ||
_handlers.push_back( | ||
new TurnOnSwitchableHandler<MockSwitchableHw>( | ||
"dehumidifyOn", | ||
components | ||
) | ||
); | ||
_handlers.push_back( | ||
new TurnOffSwitchableHandler<MockSwitchableHw>( | ||
"dehumidifyOff", | ||
components | ||
) | ||
); | ||
_handlers.push_back( | ||
new IsOnSwitchableHandler<MockSwitchableHw>( | ||
"isDehumidifyOn", | ||
components | ||
) | ||
); | ||
}; | ||
|
||
}; | ||
|
||
#endif //BRITTANY_MOCK_DEHUMIDIFIER_MODULE_H |
Oops, something went wrong.