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