diff --git a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/BasePartFactory.java b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/BasePartFactory.java index 21a660a4..928c7215 100644 --- a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/BasePartFactory.java +++ b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/BasePartFactory.java @@ -10,6 +10,7 @@ import love.distributedrebirth.numberxd.base2t.part.T05PartPental; import love.distributedrebirth.numberxd.base2t.part.T06PartSeximal; import love.distributedrebirth.numberxd.base2t.part.T07PartPlanIt; import love.distributedrebirth.numberxd.base2t.part.T08PartOctal; +import love.distributedrebirth.numberxd.base2t.part.T09PartNonary; import love.distributedrebirth.numberxd.base2t.part.T10PartDecimal; import love.distributedrebirth.numberxd.base2t.part.T11PartUndecimal; import love.distributedrebirth.numberxd.base2t.part.T12PartUncial; @@ -24,7 +25,7 @@ public enum BasePartFactory implements BãßBȍőnEnumInstanceʸᴰ { PART_1("˧", "低", "low"), diff --git a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T03PartTrit.java b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T03PartTrit.java index 7012669f..18739b6e 100644 --- a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T03PartTrit.java +++ b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T03PartTrit.java @@ -6,7 +6,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") -@BãßBȍőnClassInfoʸᴰ(name = "T03PartTrit", purpose = "The distribution by 3.") +@BãßBȍőnClassInfoʸᴰ(name = "T03PartTrit", purpose = "The distribution by 3 (number123).") public enum T03PartTrit implements BãßBȍőnPartʸᴰ { PART_1("˦","一","1"), diff --git a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T04PartQuad.java b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T04PartQuad.java index 4c283918..479bd593 100644 --- a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T04PartQuad.java +++ b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T04PartQuad.java @@ -6,7 +6,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") -@BãßBȍőnClassInfoʸᴰ(name = "T04PartQuad", purpose = "The distribution by 4.") +@BãßBȍőnClassInfoʸᴰ(name = "T04PartQuad", purpose = "The distribution by 4 (directions).") @BãßBȍőnPartAlt1Infoʸᴰ(name = "Cardinal direction", website = "https://simple.wikipedia.org/wiki/Cardinal_direction") public enum T04PartQuad implements BãßBȍőnPartAlt1ʸᴰ { diff --git a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T05PartPental.java b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T05PartPental.java index 39ee8f17..d9d5a130 100644 --- a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T05PartPental.java +++ b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T05PartPental.java @@ -6,7 +6,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") -@BãßBȍőnClassInfoʸᴰ(name = "T05PartPental", purpose = "The distribution by 5 called Wuxing.") +@BãßBȍőnClassInfoʸᴰ(name = "T05PartPental", purpose = "The distribution by 5 (wuxing).") @BãßBȍőnPartAlt1Infoʸᴰ(name = "Pentagram", website = "https://en.wikipedia.org/wiki/Pentagram") @BãßBȍőnPartAlt2Infoʸᴰ(name = "Pythagorean Interpretations", website = "http://wisdomofhypatia.com/OM/BA/PP.html") public enum T05PartPental implements BãßBȍőnPartAlt2ʸᴰ { diff --git a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T06PartSeximal.java b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T06PartSeximal.java index 9fa1320a..d66cb588 100644 --- a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T06PartSeximal.java +++ b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T06PartSeximal.java @@ -6,7 +6,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") -@BãßBȍőnClassInfoʸᴰ(name = "T06PartSeximal", purpose = "The distribution by 6.") +@BãßBȍőnClassInfoʸᴰ(name = "T06PartSeximal", purpose = "The distribution by 6 (numbers4/9).") @BãßBȍőnPartAlt1Infoʸᴰ(name = "ADFGVX cipher", website = "https://en.wikipedia.org/wiki/ADFGVX_cipher") public enum T06PartSeximal implements BãßBȍőnPartAlt1ʸᴰ { diff --git a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T07PartPlanIt.java b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T07PartPlanIt.java index 35fa4622..7a8b8981 100644 --- a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T07PartPlanIt.java +++ b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T07PartPlanIt.java @@ -6,7 +6,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") -@BãßBȍőnClassInfoʸᴰ(name = "T07PartPlanIt", purpose = "The distribution by 7.") +@BãßBȍőnClassInfoʸᴰ(name = "T07PartPlanIt", purpose = "The distribution by 7 (planets).") @BãßBȍőnPartAlt1Infoʸᴰ(name = "Fallen sign", website = "https://en.wikipedia.org/wiki/Classical_planet#Western_astrology") public enum T07PartPlanIt implements BãßBȍőnPartAlt1ʸᴰ { diff --git a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T08PartOctal.java b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T08PartOctal.java index f89fc1d1..ad5e614c 100644 --- a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T08PartOctal.java +++ b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T08PartOctal.java @@ -6,7 +6,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") -@BãßBȍőnClassInfoʸᴰ(name = "T08PartOctal", purpose = "The distribution by 8.") +@BãßBȍőnClassInfoʸᴰ(name = "T08PartOctal", purpose = "The distribution by 8 (human part).") public enum T08PartOctal implements BãßBȍőnPartʸᴰ,BãßBȍőnPartShiftBitsʸᴰ { PART_1("˥","心","heart",0), diff --git a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T09PartNonary.java b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T09PartNonary.java new file mode 100644 index 00000000..47b888ce --- /dev/null +++ b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T09PartNonary.java @@ -0,0 +1,33 @@ +package love.distributedrebirth.numberxd.base2t.part; + +import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; + +@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") +@BãßBȍőnClassInfoʸᴰ(name = "T09PartNonary", purpose = "The distribution by 9 (colors).") +public enum T09PartNonary implements BãßBȍőnPartʸᴰ { + + PART_1 ("˦","藍","blue"), + PART_2 ("˨","皓","white"), + PART_3 ("꜓","紅","red"), + PART_4 ("꜕","橙","orange"), + PART_5 ("꜉","綠","green"), + PART_6 ("꜋","黃","yellow"), + PART_7 ("꜍","褐","brown"), + PART_8 ("꜏","黑","black"), + PART_9 ("꜑","紺","purple"), + ; + + private final BãßBȍőnCoffinOpenʸᴰ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); + public BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } + public static int LENGTH() { return values().length; }; + + private T09PartNonary(String dialTone, String chinaKey, String chinaValue) { + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); + BBC.INIT_BOON(this); + } +} diff --git a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T10PartDecimal.java b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T10PartDecimal.java index 318bd384..0dca632f 100644 --- a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T10PartDecimal.java +++ b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T10PartDecimal.java @@ -6,7 +6,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") -@BãßBȍőnClassInfoʸᴰ(name = "T10PartDecimal", purpose = "The distribution by 10.") +@BãßBȍőnClassInfoʸᴰ(name = "T10PartDecimal", purpose = "The distribution by 10 (finance numbers).") @BãßBȍőnPartAlt1Infoʸᴰ(name = "Tone Letter LR", website = "https://en.wikipedia.org/wiki/Tone_letter") @BãßBȍőnPartAlt2Infoʸᴰ(name = "Tone Letter RL", website = "https://en.wikipedia.org/wiki/Tone_letter") public enum T10PartDecimal implements BãßBȍőnPartAlt2ʸᴰ { diff --git a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T11PartUndecimal.java b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T11PartUndecimal.java index 55c69663..d8774ba5 100644 --- a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T11PartUndecimal.java +++ b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T11PartUndecimal.java @@ -6,7 +6,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") -@BãßBȍőnClassInfoʸᴰ(name = "T11PartUndecimal", purpose = "The distribution by 11.") +@BãßBȍőnClassInfoʸᴰ(name = "T11PartUndecimal", purpose = "The distribution by 11 (human activity).") @BãßBȍőnPartAlt1Infoʸᴰ(name = "Tamil numerals", website = "https://en.wikipedia.org/wiki/Tamil_numerals") public enum T11PartUndecimal implements BãßBȍőnPartAlt1ʸᴰ { diff --git a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T12PartUncial.java b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T12PartUncial.java index 90adfd60..86bb97e4 100644 --- a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T12PartUncial.java +++ b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T12PartUncial.java @@ -6,7 +6,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") -@BãßBȍőnClassInfoʸᴰ(name = "T12PartUncial", purpose = "The distribution by 12.") +@BãßBȍőnClassInfoʸᴰ(name = "T12PartUncial", purpose = "The distribution by 12 (emperor).") @BãßBȍőnPartAlt1Infoʸᴰ(name = "Transdecimal symbols", website = "https://en.wikipedia.org/wiki/Duodecimal#Transdecimal_symbols") public enum T12PartUncial implements BãßBȍőnPartAlt1ʸᴰ { diff --git a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T16PartHex.java b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T16PartHex.java index 63b1ff57..4519b0a7 100644 --- a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T16PartHex.java +++ b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T16PartHex.java @@ -6,7 +6,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") -@BãßBȍőnClassInfoʸᴰ(name = "T16PartHex", purpose = "The distribution by 16.") +@BãßBȍőnClassInfoʸᴰ(name = "T16PartHex", purpose = "The distribution by 16 (elements).") @BãßBȍőnPartAlt1Infoʸᴰ(name = "Hexadecimal", website = "https://en.wikipedia.org/wiki/Hexadecimal") public enum T16PartHex implements BãßBȍőnPartAlt1ʸᴰ { diff --git a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T20PartScore.java b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T20PartScore.java index ff8b0a0a..74f3c432 100644 --- a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T20PartScore.java +++ b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T20PartScore.java @@ -11,7 +11,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") -@BãßBȍőnClassInfoʸᴰ(name = "T20PartScore", purpose = "The distribution by 20.") +@BãßBȍőnClassInfoʸᴰ(name = "T20PartScore", purpose = "The distribution by 20 (SI prefixes).") @BãßBȍőnPartAlt1Infoʸᴰ(name = "SI-Unit Types", website = "https://en.wikipedia.org/wiki/Metric_prefix") @BãßBȍőnPartAlt2Infoʸᴰ(name = "Vigesimal", website = "https://en.wikipedia.org/wiki/Vigesimal#Places") @BãßBȍőnPartAlt3Infoʸᴰ(name = "Vigesimal Alternative", website = "https://en.wikipedia.org/wiki/Vigesimal#Places") diff --git a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T60PartSexagesimal.java b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T60PartSexagesimal.java index 33877f28..4847df52 100644 --- a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T60PartSexagesimal.java +++ b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/T60PartSexagesimal.java @@ -6,7 +6,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") -@BãßBȍőnClassInfoʸᴰ(name = "T60Sexagesimal", purpose = "The distribution by 60.") +@BãßBȍőnClassInfoʸᴰ(name = "T60Sexagesimal", purpose = "The distribution by 60 (human food).") public enum T60PartSexagesimal implements BãßBȍőnPartʸᴰ { PART_1 ("˥˥","牛","cow"), @@ -63,7 +63,7 @@ public enum T60PartSexagesimal implements BãßBȍőnPartʸᴰ global = new HashMap<>(); for (int base:BasePartFactory.INSTANCE.BãßBases()) { for (BãßBȍőnPartʸᴰ part:BasePartFactory.INSTANCE.BãßBuildPartsByBase(base)) { - Assertions.assertFalse(global.containsKey(part.BȍőnChinaKey())); + Assertions.assertFalse(global.containsKey(part.BȍőnChinaKey()), "key: "+part.BȍőnChinaKey()); global.put(part.BȍőnChinaKey(), part.BȍőnChinaValue()); } } diff --git a/demo4d-numberxd/src/test/love/distributedrebirth/numberxd/base2t/T09PartNonaryTest.java b/demo4d-numberxd/src/test/love/distributedrebirth/numberxd/base2t/T09PartNonaryTest.java new file mode 100644 index 00000000..a25cc0c3 --- /dev/null +++ b/demo4d-numberxd/src/test/love/distributedrebirth/numberxd/base2t/T09PartNonaryTest.java @@ -0,0 +1,36 @@ +package love.distributedrebirth.numberxd.base2t; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; +import love.distributedrebirth.numberxd.base2t.part.T09PartNonary; + +@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") +public class T09PartNonaryTest { + + @Test + public void testBasePart() { + for (T09PartNonary value:T09PartNonary.values()) { + Assertions.assertNotNull(value.BȍőnDialTone()); + Assertions.assertNotNull(value.BȍőnChinaKey()); + Assertions.assertNotNull(value.BȍőnChinaValue()); + } + } + + @Test + public void testToneMap() { + Assertions.assertEquals(T09PartNonary.PART_1, T09PartNonary.PART_1.BãßValueOfDialTone("˦")); + Assertions.assertEquals(T09PartNonary.PART_2, T09PartNonary.PART_1.BãßValueOfDialTone("˨")); + Assertions.assertEquals(T09PartNonary.PART_8, T09PartNonary.PART_1.BãßValueOfDialTone("꜏")); + Assertions.assertEquals(T09PartNonary.PART_9, T09PartNonary.PART_1.BãßValueOfDialTone("꜑")); + } + + @Test + public void testChinaMap() { + Assertions.assertEquals(T09PartNonary.PART_1, T09PartNonary.PART_1.BãßValueOfChinaKey("藍")); + Assertions.assertEquals(T09PartNonary.PART_2, T09PartNonary.PART_1.BãßValueOfChinaKey("皓")); + Assertions.assertEquals(T09PartNonary.PART_8, T09PartNonary.PART_1.BãßValueOfChinaKey("黑")); + Assertions.assertEquals(T09PartNonary.PART_9, T09PartNonary.PART_1.BãßValueOfChinaKey("紺")); + } +}