Added V9D8Traz

This commit is contained in:
Willem Cazander 2022-01-31 20:13:41 +01:00
parent aab21dff67
commit 37175e0fee
24 changed files with 134 additions and 40 deletions

View file

@ -14,23 +14,23 @@ import love.distributedrebirth.numberxd.base2t.V009TyteBaseIterator;
*/
public class GroßGetậl6ˢᴰ implements BaseNumberTyte<GroßGetậl6ˢᴰ> {
public static int BIT_COUNT = GroßGetậl1ⁿᴰ.BIT_COUNT * T12PartUncial.LENGTH;
private GroßGetậl1ⁿᴰ[] values = new GroßGetậl1ⁿᴰ[T12PartUncial.LENGTH];
public static int BIT_COUNT = GroßGetậl1ⁿᴰ.BIT_COUNT * T12PartUncial.LENGTH();
private GroßGetậl1ⁿᴰ[] values = new GroßGetậl1ⁿᴰ[T12PartUncial.LENGTH()];
public GroßGetậl6ˢᴰ() {
for (int i=0;i<T12PartUncial.LENGTH;i++) {
for (int i=0;i<this.values.length;i++) {
this.values[i] = new GroßGetậl1ⁿᴰ();
}
}
public GroßGetậl6ˢᴰ(T08PartOctalBaseIterator values) {
for (int i=0;i<T12PartUncial.LENGTH;i++) {
for (int i=0;i<this.values.length;i++) {
this.values[i] = new GroßGetậl1ⁿᴰ(values);
}
}
public GroßGetậl6ˢᴰ(V009TyteBaseIterator values) {
for (int i=0;i<T12PartUncial.LENGTH;i++) {
for (int i=0;i<this.values.length;i++) {
this.values[i] = new GroßGetậl1ⁿᴰ(values);
}
}

View file

@ -18,17 +18,17 @@ import love.distributedrebirth.numberxd.base2t.VCA8Tath;
*/
public class KlompGetậl4ˢᴰ implements BaseNumberTyte<KlompGetậl4ˢᴰ> {
public static int BIT_COUNT = V654Triz.BIT_COUNT * T08PartOctal.LENGTH;
private final VCA8Tath[] values = new VCA8Tath[T08PartOctal.LENGTH];
public static int BIT_COUNT = V654Triz.BIT_COUNT * T08PartOctal.LENGTH();
private final VCA8Tath[] values = new VCA8Tath[T08PartOctal.LENGTH()];
public KlompGetậl4ˢᴰ() {
for (int i=0;i<T08PartOctal.LENGTH;i++) {
for (int i=0;i<this.values.length;i++) {
this.values[i] = new VCA8Tath();
}
}
public KlompGetậl4ˢᴰ(T08PartOctalBaseIterator values) {
for (int i=0;i<T08PartOctal.LENGTH;i++) {
for (int i=0;i<this.values.length;i++) {
this.values[i] = new VCA8Tath(values);
}
}

View file

@ -21,7 +21,7 @@ public enum T02PartBinary implements BasePart {
PART_2("","1", "", "high"),
;
public static int LENGTH = 2;
public static int LENGTH() { return values().length; };
private final Map<BaseFacetKey, Object> facetStore = new HashMap<>();
private static final Map<String, T02PartBinary> TONE_MAP = Collections.unmodifiableMap(
Arrays.asList(values()).stream().collect(Collectors.toMap(v -> v.getIdentifierTone(), v -> v)));

View file

@ -22,7 +22,7 @@ public enum T03PartTrit implements BasePart {
PART_3("˨","2","","3"),
;
public static int LENGTH = 3;
public static int LENGTH() { return values().length; };
private final Map<BaseFacetKey, Object> facetStore = new HashMap<>();
private static final Map<String, T03PartTrit> TONE_MAP = Collections.unmodifiableMap(
Arrays.asList(values()).stream().collect(Collectors.toMap(v -> v.getIdentifierTone(), v -> v)));

View file

@ -25,7 +25,7 @@ public enum T04PartQuad implements BasePart,BasePartAlt1,BasePartSplit4 {
PART_4("˩","3","","south","S"),
;
public static int LENGTH = 4;
public static int LENGTH() { return values().length; };
private final Map<BaseFacetKey, Object> facetStore = new HashMap<>();
private static final String ALT_1_NAME = "Cardinal direction";
private static final String ALT_1_WIKI = "https://simple.wikipedia.org/wiki/Cardinal_direction";

View file

@ -25,7 +25,7 @@ public enum T05PartPental implements BasePart,BasePartAlt2 {
PART_5("˩","4","","earth","G", "gaia"),
;
public static int LENGTH = 5;
public static int LENGTH() { return values().length; };
private static final String ALT_1_NAME = "Pentagram";
private static final String ALT_1_WIKI = "https://en.wikipedia.org/wiki/Pentagram";
private static final String ALT_2_NAME = "Pythagorean Interpretations";

View file

@ -29,7 +29,7 @@ public enum T06PartSeximal implements BasePart,BasePartAlt1,BasePartSplit6 {
PART_6("","5","","9","X"),
;
public static int LENGTH = 6;
public static int LENGTH() { return values().length; };
private final Map<BaseFacetKey, Object> facetStore = new HashMap<>();
private static final String ALT_1_NAME = "ADFGVX cipher";
private static final String ALT_1_WIKI = "https://en.wikipedia.org/wiki/ADFGVX_cipher";

View file

@ -27,7 +27,7 @@ public enum T07PartPlanIt implements BasePart,BasePartAlt1 {
PART_7("˩","7","♈︎","aries","白羊座"),
;
public static int LENGTH = 6;
public static int LENGTH() { return values().length; };
private final Map<BaseFacetKey, Object> facetStore = new HashMap<>();
private static final String ALT_1_NAME = "Fallen sign";
private static final String ALT_1_WIKI = "https://en.wikipedia.org/wiki/Classical_planet#Western_astrology";

View file

@ -29,7 +29,7 @@ public enum T08PartOctal implements BasePart,BasePartAlt2,BasePartSplit8 {
PART_8("","7","","feet", "˧˩˩","˩˩˧", 21),
;
public static int LENGTH = 8;
public static int LENGTH() { return values().length; };
public static int BIT_COUNT = 3;
private static final byte BITMASK = 0x07;
private final Map<BaseFacetKey, Object> facetStore = new HashMap<>();

View file

@ -32,7 +32,7 @@ public enum T12PartUncial implements BasePart,BasePartAlt1 {
PART_12("","B","","nozero","\u218b"), // TURNED DIGIT THREE
;
public static int LENGTH = 12;
public static int LENGTH() { return values().length; };
private final Map<BaseFacetKey, Object> facetStore = new HashMap<>();
private static final String ALT_1_NAME = "Transdecimal symbols";
private static final String ALT_1_WIKI = "https://en.wikipedia.org/wiki/Duodecimal#Transdecimal_symbols";

View file

@ -37,7 +37,7 @@ public enum T16PartHex implements BasePart,BasePartAlt1,BasePartSplit16 {
PART_16("","F","","sulfur","D"),
;
public static int LENGTH = 16;
public static int LENGTH() { return values().length; };
private final Map<BaseFacetKey, Object> facetStore = new HashMap<>();
private static final String ALT_1_NAME = "Dual-tone multi-frequency signaling";
private static final String ALT_1_WIKI = "https://en.wikipedia.org/wiki/Dual-tone_multi-frequency_signaling";

View file

@ -40,7 +40,7 @@ public enum T20PartScore implements BasePart,BasePartAlt3 {
PART_20("","y", "","yocto","J","K","X"),
;
public static int LENGTH = 20;
public static int LENGTH() { return values().length; };
private final Map<BaseFacetKey, Object> facetStore = new HashMap<>();
private static final String ALT_1_NAME = "Vigesimal";
private static final String ALT_1_WIKI = "https://en.wikipedia.org/wiki/Vigesimal#Places";

View file

@ -82,7 +82,7 @@ public enum T60Sexagesimal implements BasePart {
PART_60("꜑꜑꜏","οϚ","","apple"),
;
public static int LENGTH = 60;
public static int LENGTH() { return values().length; };
private final Map<BaseFacetKey, Object> facetStore = new HashMap<>();
private static final Map<String, T60Sexagesimal> TONE_MAP = Collections.unmodifiableMap(
Arrays.asList(values()).stream().collect(Collectors.toMap(v -> v.getIdentifierTone(), v -> v)));

View file

@ -7,8 +7,8 @@ package love.distributedrebirth.numberxd.base2t;
*/
public final class V006Tixte implements BaseNumber<V006Tixte> {
public static int BIT_COUNT = V003Timble.BIT_COUNT * T02PartBinary.LENGTH;
private V003Timble[] values = new V003Timble[T02PartBinary.LENGTH];
public static int BIT_COUNT = V003Timble.BIT_COUNT * T02PartBinary.LENGTH();
private V003Timble[] values = new V003Timble[T02PartBinary.LENGTH()];
public V006Tixte() {
this(new V003Timble(), new V003Timble());

View file

@ -7,8 +7,8 @@ package love.distributedrebirth.numberxd.base2t;
*/
public final class V009Tyte implements BaseNumberTyte<V009Tyte> {
public static int BIT_COUNT = V003Timble.BIT_COUNT * T03PartTrit.LENGTH;
private final V003Timble[] values = new V003Timble[T03PartTrit.LENGTH];
public static int BIT_COUNT = V003Timble.BIT_COUNT * T03PartTrit.LENGTH();
private final V003Timble[] values = new V003Timble[T03PartTrit.LENGTH()];
public V009Tyte() {
this(new V003Timble(), new V003Timble(), new V003Timble());

View file

@ -7,8 +7,8 @@ package love.distributedrebirth.numberxd.base2t;
*/
public final class V012Tord implements BaseNumberTyte<V012Tord> {
public static int BIT_COUNT = V009Tyte.BIT_COUNT * T02PartBinary.LENGTH;
private V009Tyte[] values = new V009Tyte[T02PartBinary.LENGTH];
public static int BIT_COUNT = V009Tyte.BIT_COUNT * T02PartBinary.LENGTH();
private V009Tyte[] values = new V009Tyte[T02PartBinary.LENGTH()];
public V012Tord() {
this(new V009Tyte(), new V009Tyte());

View file

@ -7,8 +7,8 @@ package love.distributedrebirth.numberxd.base2t;
*/
public final class V01BTemvig implements BaseNumberTyte<V01BTemvig> {
public static int BIT_COUNT = V009Tyte.BIT_COUNT * T03PartTrit.LENGTH;
private V009Tyte[] values = new V009Tyte[T03PartTrit.LENGTH];
public static int BIT_COUNT = V009Tyte.BIT_COUNT * T03PartTrit.LENGTH();
private V009Tyte[] values = new V009Tyte[T03PartTrit.LENGTH()];
public V01BTemvig() {
this(new V009Tyte(), new V009Tyte(), new V009Tyte());

View file

@ -7,8 +7,8 @@ package love.distributedrebirth.numberxd.base2t;
*/
public final class V024Teger implements BaseNumberTyte<V024Teger> {
public static int BIT_COUNT = V012Tord.BIT_COUNT * T02PartBinary.LENGTH;
private V012Tord[] values = new V012Tord[T02PartBinary.LENGTH];
public static int BIT_COUNT = V012Tord.BIT_COUNT * T02PartBinary.LENGTH();
private V012Tord[] values = new V012Tord[T02PartBinary.LENGTH()];
public V024Teger() {
this(new V012Tord(), new V012Tord());

View file

@ -0,0 +1,47 @@
package love.distributedrebirth.numberxd.base2t;
/**
* Holds an 42 bit value.
*
* @author willemtsade ©Δ 仙上主天
*/
public final class V02ATraw implements BaseNumber<V02ATraw> {
public static int BIT_COUNT = V006Tixte.BIT_COUNT * T07PartPlanIt.LENGTH();
private V006Tixte[] values = new V006Tixte[T07PartPlanIt.LENGTH()];
public V02ATraw() {
for (int i=0;i<values.length;i++) {
this.values[i] = new V006Tixte();
}
}
public V02ATraw(T08PartOctalBaseIterator values) {
for (int i=0;i<this.values.length;i++) {
this.values[i] = new V006Tixte(values);
}
}
public V006Tixte getValue(T07PartPlanIt part) {
return values[part.ordinal()];
}
public void setValue(T07PartPlanIt part, V006Tixte value) {
values[part.ordinal()] = value;
}
@Override
public int getBitCount() {
return BIT_COUNT;
}
@Override
public V02ATraw toClone() {
return new V02ATraw(iteratorOctalsByClone());
}
@Override
public void fillOctalsByClone(T08PartOctalBaseAppender appender) {
T07PartPlanIt.forEach(v -> getValue(v).fillOctalsByClone(appender));
}
}

View file

@ -7,8 +7,8 @@ package love.distributedrebirth.numberxd.base2t;
*/
public final class V048Tong implements BaseNumberTyte<V048Tong> {
public static int BIT_COUNT = V024Teger.BIT_COUNT * T02PartBinary.LENGTH;
private V024Teger[] values = new V024Teger[T02PartBinary.LENGTH];
public static int BIT_COUNT = V024Teger.BIT_COUNT * T02PartBinary.LENGTH();
private V024Teger[] values = new V024Teger[T02PartBinary.LENGTH()];
public V048Tong() {
this(new V024Teger(), new V024Teger());

View file

@ -7,8 +7,8 @@ package love.distributedrebirth.numberxd.base2t;
*/
public final class V090Tocta implements BaseNumberTyte<V090Tocta> {
public static int BIT_COUNT = V048Tong.BIT_COUNT * T02PartBinary.LENGTH;
private V048Tong[] values = new V048Tong[T02PartBinary.LENGTH];
public static int BIT_COUNT = V048Tong.BIT_COUNT * T02PartBinary.LENGTH();
private V048Tong[] values = new V048Tong[T02PartBinary.LENGTH()];
public V090Tocta() {
this(new V048Tong(), new V048Tong());

View file

@ -7,17 +7,17 @@ package love.distributedrebirth.numberxd.base2t;
*/
public class V654Triz implements BaseNumberTyte<V654Triz> {
public static int BIT_COUNT = V01BTemvig.BIT_COUNT * T60Sexagesimal.LENGTH;
private V01BTemvig[] values = new V01BTemvig[T60Sexagesimal.LENGTH];
public static int BIT_COUNT = V01BTemvig.BIT_COUNT * T60Sexagesimal.LENGTH();
private V01BTemvig[] values = new V01BTemvig[T60Sexagesimal.LENGTH()];
public V654Triz() {
for (int i=0;i<T60Sexagesimal.LENGTH;i++) {
for (int i=0;i<this.values.length;i++) {
this.values[i] = new V01BTemvig();
}
}
public V654Triz(T08PartOctalBaseIterator values) {
for (int i=0;i<T60Sexagesimal.LENGTH;i++) {
for (int i=0;i<this.values.length;i++) {
this.values[i] = new V01BTemvig(values);
}
}

View file

@ -0,0 +1,47 @@
package love.distributedrebirth.numberxd.base2t;
/**
* Holds an 2520 bit value.
*
* @author willemtsade ©Δ 仙上主天
*/
public class V9D8Traz implements BaseNumber<V9D8Traz> {
public static int BIT_COUNT = V02ATraw.BIT_COUNT * T60Sexagesimal.LENGTH();
private V02ATraw[] values = new V02ATraw[T60Sexagesimal.LENGTH()];
public V9D8Traz() {
for (int i=0;i<values.length;i++) {
this.values[i] = new V02ATraw();
}
}
public V9D8Traz(T08PartOctalBaseIterator values) {
for (int i=0;i<this.values.length;i++) {
this.values[i] = new V02ATraw(values);
}
}
public V02ATraw getValue(T60Sexagesimal part) {
return values[part.ordinal()];
}
public void setValue(T60Sexagesimal part, V02ATraw value) {
values[part.ordinal()] = value;
}
@Override
public int getBitCount() {
return BIT_COUNT;
}
@Override
public V9D8Traz toClone() {
return new V9D8Traz(iteratorOctalsByClone());
}
@Override
public void fillOctalsByClone(T08PartOctalBaseAppender appender) {
T60Sexagesimal.forEach(v -> getValue(v).fillOctalsByClone(appender));
}
}

View file

@ -7,8 +7,8 @@ package love.distributedrebirth.numberxd.base2t;
*/
public class VCA8Tath implements BaseNumberTyte<VCA8Tath> {
public static int BIT_COUNT = V654Triz.BIT_COUNT * T02PartBinary.LENGTH;
private V654Triz[] values = new V654Triz[T02PartBinary.LENGTH];
public static int BIT_COUNT = V654Triz.BIT_COUNT * T02PartBinary.LENGTH();
private V654Triz[] values = new V654Triz[T02PartBinary.LENGTH()];
public VCA8Tath() {
this(new V654Triz(), new V654Triz());