as
Alejandro Acuña
2025-01-21 61cdfc6ee7f013c4533add51d797c1886b312883
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package Pvv.mockers;
 
import Mocker.IDeviceMocker;
import Pvv.PvvCommandsAspect;
import art.library.model.devices.DeviceCommands;
import art.library.model.devices.vms.pvv.Pvv;
import art.library.model.devices.vms.pvv.PvvCommands;
import art.library.model.devices.vms.pvv.commands.PvvCommandsMessage;
import art.library.model.devices.vms.pvv.commands.PvvCommandsMessageVisibilities;
import svgdevicestest.mock.*;
 
public class PvvMockerAspectCommands extends DeviceMocker implements IDeviceMocker
{
 
    public PvvMockerAspectCommands() 
    {
        super(new Pvv("pvv"), new PvvCommands());
    }
 
    public PvvMockerAspectCommands getMocker() 
    {
        return this;
    }
 
    @Override
    public void updateDevice(boolean active)
    {
        PvvCommands pvvCommands = (PvvCommands) commands;
 
        pvvCommands.reset = DeviceCommands.CONDITION_YES;
        pvvCommands.priority = 256;
        
        pvvCommands.message = new PvvCommandsMessage();
        {
            pvvCommands.message.speed = 120;
        }
      
        pvvCommands.message.visibilities = new PvvCommandsMessageVisibilities();
        {
            pvvCommands.message.visibilities.visibilityCircle = true;
            pvvCommands.message.visibilities.visibilitySpeed = true;
            pvvCommands.message.visibilities.visibilityFlashes = false;
        }
    }
 
    @Override
    public String getFilePath()
    {
        return "C:\\Users\\Konstantin\\Documents\\LocalBackup\\Obras\\Vigicat\\art.servers.vms.pvv.pvvserver\\pvv\\svgs\\action.svg";
    }
 
    @Override
    public boolean isStatusMode()
    {
        return false;
    }
 
    @Override
    public Class getScriptClass()
    {
        return PvvCommandsAspect.class;
    }
}