File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed
src/env/entity/actuator/invoker Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments