Skip to content

Commit f1cab98

Browse files
feat: implement basic surgical light artifact
1 parent dbee694 commit f1cab98

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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 artifact.environment.roomartifact;
10+
11+
import cartago.OPERATION;
12+
13+
import java.util.logging.Logger;
14+
15+
/**
16+
* CArtAgO artifact that is responsible for the communication with a surgical light inside an operating room of the
17+
* Operating Block.
18+
*/
19+
public class SurgicalLight extends AbstractRoomArtifact implements DimmableArtifact {
20+
@Override
21+
@OPERATION
22+
public final void setIntensity(final int luxToSet) {
23+
Logger.getLogger(SurgicalLight.class.toString())
24+
.info("[" + this.getRoomId() + "]" + " Set " + luxToSet + " LUX");
25+
}
26+
}

0 commit comments

Comments
 (0)