Skip to content

Commit 4a43ff9

Browse files
chore: create invokers in order to delegate to the infrastructure the behavior invocations
1 parent cf89206 commit 4a43ff9

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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 entity.actuator.invoker;
10+
11+
/**
12+
* Interface that models an actuator invoker that ca be turned on with an intensity.
13+
*/
14+
public interface DimmableInvoker {
15+
/**
16+
* Set the intensity of the actuator.
17+
* @param intensity the intensity to set in the actuator.
18+
*/
19+
void setIntensity(int intensity);
20+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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 entity.actuator.invoker;
10+
11+
/**
12+
* Interface that models an actuator invoker that can be turned on and off.
13+
*/
14+
public interface SwitchableInvoker {
15+
/**
16+
* Turn the actuator on.
17+
*/
18+
void turnOn();
19+
20+
/**
21+
* Turn the actuator off.
22+
*/
23+
void turnOff();
24+
}

0 commit comments

Comments
 (0)