@Override
    public void deserialize(Buffer buf) {
        obstacleCellId = buf.readShort();
        if (obstacleCellId < 0 || obstacleCellId > 559)
            throw new RuntimeException("Forbidden value on obstacleCellId = " + obstacleCellId + ", it doesn't respect the following condition : obstacleCellId < 0 || obstacleCellId > 559");
        state = buf.readByte();
        if (state < 0)
            throw new RuntimeException("Forbidden value on state = " + state + ", it doesn't respect the following condition : state < 0");
    }