// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
import dk.vajhoej.record.Alignment;
import dk.vajhoej.record.Endian;
import dk.vajhoej.record.FieldType;
import dk.vajhoej.record.Struct;
import dk.vajhoej.record.StructField;

@Struct(endianess=Endian.LITTLE, alignment=Alignment.ALIGN1)
public class TruckAssetISAM extends AssetISAM {
    @StructField(n=3, type=FieldType.FIXSTR, length=16)
    private String model;
    @StructField(n=4, type=FieldType.FIXSTR, length=8)
    private String license;
    @StructField(n=5, type=FieldType.INT4)
    private int towcapacity;
    public TruckAssetISAM() {
        this(0, "", "", "", 0);
    }
    public TruckAssetISAM(int id, String description, String model, String license, int towcapacity) {
        super(id, description, 1);
        this.model = model;
        this.license = license;
        this.towcapacity = towcapacity;
    }
    public String getModel() {
        return model;
    }
    public void setModel(String model) {
        this.model = model;
    }
    public String getLicense() {
        return license;
    }
    public void setLicense(String license) {
        this.license = license;
    }
    public int getTowcapacity() {
        return towcapacity;
    }
    public void setTowcapacity(int towcapacity) {
        this.towcapacity = towcapacity;
    }
}
