mirror of https://github.com/FOME-Tech/fome-fw.git
not really https://en.wikipedia.org/wiki/Test-driven_development but somewhere around
This commit is contained in:
parent
f7c13a71ae
commit
e3d4704e35
|
@ -27,6 +27,7 @@ public class Field {
|
||||||
private final int bitOffset;
|
private final int bitOffset;
|
||||||
private final String[] options;
|
private final String[] options;
|
||||||
private double scale = 1;
|
private double scale = 1;
|
||||||
|
private int baseOffset;
|
||||||
|
|
||||||
public Field(String name, int offset, FieldType type) {
|
public Field(String name, int offset, FieldType type) {
|
||||||
this(name, offset, type, NO_BIT_OFFSET);
|
this(name, offset, type, NO_BIT_OFFSET);
|
||||||
|
@ -269,6 +270,11 @@ public class Field {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Field setBaseOffset(int baseOffset) {
|
||||||
|
this.baseOffset = baseOffset;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public double getScale() {
|
public double getScale() {
|
||||||
return scale;
|
return scale;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue