Example #1
0
 public PIDLimitEvent(BowlerDatagram data) {
   if (!data.getRPC().contains("pidl")) throw new RuntimeException("Datagram is not a PID event");
   setGroup(data.getData().getByte(0));
   setLimitType(PIDLimitEventType.get(data.getData().getBytes(1, 1)[0]));
   setValue(ByteList.convertToInt(data.getData().getBytes(2, 4), true));
   setTimeStamp(ByteList.convertToInt(data.getData().getBytes(6, 4), false));
 }