package Rotapanel.mockers; import Mocker.IDeviceMocker; import Rotapanel.RotapanelCommands; import art.library.model.devices.vms.general.VmsGeneralCommands; import art.library.model.devices.vms.rotapanel.VmsRotapanel; import art.library.model.devices.vms.rotapanel.VmsRotapanelCommands; import svgdevicestest.mock.*; public class RotapanelActionMocker extends DeviceMocker implements IDeviceMocker { public RotapanelActionMocker() { super(new VmsRotapanel("rotapanel"),new VmsRotapanelCommands()); } public RotapanelActionMocker getMocker() { return this; } @Override public void updateDevice(boolean active) { VmsRotapanelCommands panelCommands = (VmsRotapanelCommands) commands; panelCommands.hourOfDay = -2; panelCommands.face = 0; panelCommands.interval = 15; } @Override public String getFilePath() { return "C:\\Users\\Konstantin\\Documents\\LocalBackup\\Obras\\Reszow\\rotapanelServer\\02-06-2021 (3) - Forbidden face fix\\data\\art.servers.rotapanelserver\\svgs\\rotapanel-vmsc01\\action.svg"; } @Override public boolean isStatusMode() { return false; } @Override public Class getScriptClass() { return RotapanelCommands.class; } }