Skip to content

Commit 5dd58d1

Browse files
chore: add manager provider interface and simple implementation
1 parent 01754ec commit 5dd58d1

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright (c) 2023. Smart Operating Block
3+
*
4+
* Use of this source code is governed by an MIT-style
5+
* license that can be found in the LICENSE file or at
6+
* https://opensource.org/licenses/MIT.
7+
*/
8+
9+
package infrastructure.provider
10+
11+
import application.controller.manager.RoomDigitalTwinManager
12+
13+
/**
14+
* Provider of managers.
15+
*/
16+
interface ManagerProvider {
17+
/** The manager of the Digital Twin of the room. */
18+
val roomDigitalTwinManager: RoomDigitalTwinManager
19+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Copyright (c) 2023. Smart Operating Block
3+
*
4+
* Use of this source code is governed by an MIT-style
5+
* license that can be found in the LICENSE file or at
6+
* https://opensource.org/licenses/MIT.
7+
*/
8+
9+
package infrastructure.provider
10+
11+
import infrastructure.digitaltwins.DigitalTwinManager
12+
13+
/**
14+
* Provider that creates the different managers.
15+
*/
16+
class ManagerProviderImpl : ManagerProvider {
17+
override val roomDigitalTwinManager = DigitalTwinManager()
18+
}

0 commit comments

Comments
 (0)