public void FromBinaryValue(int binaryValue) { int groupNumber; int day; int clusterPrefix; BinaryMemory.SplitNumbers(binaryValue, out groupNumber, out day, out clusterPrefix); this.GroupNumber = groupNumber; this.Day = day; this.ClusterPrefix = clusterPrefix; }
public void FromBinaryValue(int binaryValue) { int groupNumber; int day; int value; BinaryMemory.SplitNumbers(binaryValue, out groupNumber, out day, out value); this.GroupNumber = groupNumber; this.Day = day; this.Ratio = value; }
public int ToBinaryValue() { return(BinaryMemory.ConcatNumbers(GroupNumber, Day, Ratio)); }
public int ToBinaryValue() { return(BinaryMemory.ConcatNumbers(GroupNumber, Day, ClusterPrefix)); }