package com.cisco.trex.stateless.model.vm;

public class WriteMaskFlowVar extends VMInstruction {

    private String type;
    private String name;
    private int pkt_offset;
    private int add_value;
    private int pkt_cast_size;
    private int mask;
    private int shift;
    private boolean is_big_endian;

    public WriteMaskFlowVar(String name, int pkt_offset, int add_value, int pkt_cast_size, int mask, int shift,
            boolean is_big_endian) {
        super();
        this.type = "write_mask_flow_var";
        this.name = name;
        this.pkt_offset = pkt_offset;
        this.add_value = add_value;
        this.pkt_cast_size = pkt_cast_size;
        this.mask = mask;
        this.shift = shift;
        this.is_big_endian = is_big_endian;
    }

    public String getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    public int getPkt_offset() {
        return pkt_offset;
    }

    public int getAdd_value() {
        return add_value;
    }

    public int getPkt_cast_size() {
        return pkt_cast_size;
    }

    public int getMask() {
        return mask;
    }

    public int getShift() {
        return shift;
    }

    public boolean getIs_big_endian() {
        return is_big_endian;
    }

}

@@ -240,19 +240,20 @@
 private 
-int
+long
  mask;%0A 
@@ -401,19 +401,20 @@
 t_size, 
-int
+long
  mask, i
@@ -1097,27 +1097,28 @@
 %0A    public 
-int
+long
  getMask() %7B

fix data type error for mask field in write_mask_flow_var