<< lib/operating-system/memory-ddr/SLDDRCatalog.sleela SLeeLa Standard Library Definition. Definition: Defines SLDDRCatalog — a by-name factory for DDR memory modules from the major DRAM manufacturers. The DRAM industry is dominated by a small, finite set of makers (Samsung, SK Hynix, Micron, plus module assemblers such as Kingston, Corsair, G.Skill, Crucial, Mushkin), so a machine description can request a module by manufacturer name and get a representative, correctly-specified SLDDRModule back. The catalogue returns configured SLDDRModule instances; the caller may refine capacity, ECC, and speed afterward. Representative part numbers are used for identity; exact SKUs vary by capacity/speed bin. Family: operating-system. Produces SLDDRModule. >> #sleela 2.5 material; class SLDDRCatalog { < ---- Descriptive metadata (version 1.11 nested-friendly accessors) ---- > << Eleven catalogued attributes with getter/setter pairs, so a GUI, loader, or catalog can read and (where appropriate) override this record. Values are faithful to the subject's real origin where publicly known. >> String metaVersion = "1.0.0"; int metaId = 10883; String metaAuthor = "Kiro Agent"; String metaDate = "2026-10-16"; String metaCopyright = "SLeeLa project"; String metaTrademark = "none"; String metaCorporation = "none"; < metaOrigin: National | | International | Galactic > String metaOrigin = "International"; String metaBirthDate = "2026-10-10"; < metaScienceRating: maturity/robustness on a 1..10 scale > int metaScienceRating = 9; < metaNationalSchedule: a real, citable instrument or "none" > String metaNationalSchedule = "none"; String getMetaVersion() { return metaVersion; } void setMetaVersion(String v) { metaVersion = v; } int getMetaId() { return metaId; } void setMetaId(int v) { metaId = v; } String getAuthor() { return metaAuthor; } void setAuthor(String v) { metaAuthor = v; } String getDate() { return metaDate; } void setDate(String v) { metaDate = v; } String getCopyright() { return metaCopyright; } void setCopyright(String v) { metaCopyright = v; } String getTrademark() { return metaTrademark; } void setTrademark(String v) { metaTrademark = v; } String getCorporation() { return metaCorporation; } void setCorporation(String v) { metaCorporation = v; } String getOrigin() { return metaOrigin; } void setOrigin(String v) { metaOrigin = v; } String getBirthDate() { return metaBirthDate; } void setBirthDate(String v) { metaBirthDate = v; } int getScienceRating() { return metaScienceRating; } void setScienceRating(int v) { metaScienceRating = v; } String getNationalSchedule() { return metaNationalSchedule; } void setNationalSchedule(String v) { metaNationalSchedule = v; } void configure() {} < Return a DDR5 module from a named manufacturer at a given capacity (MB). > SLDDRModule ddr5(String manufacturer, int capacityMb) { SLDDRModule m = new SLDDRModule(); m.configure(manufacturer, ddr5Part(manufacturer), m.GEN_DDR5); m.sized(capacityMb, false); return m; } < Return a DDR4 module from a named manufacturer at a given capacity (MB). > SLDDRModule ddr4(String manufacturer, int capacityMb) { SLDDRModule m = new SLDDRModule(); m.configure(manufacturer, ddr4Part(manufacturer), m.GEN_DDR4); m.sized(capacityMb, false); return m; } < Build a module of any generation by name from any manufacturer. > SLDDRModule module(String manufacturer, String genName, int capacityMb, boolean ecc) { SLDDRModule m = new SLDDRModule(); m.configureByName(manufacturer, genPart(manufacturer, genName), genName); m.sized(capacityMb, ecc); return m; } < Is this one of the recognised DRAM manufacturers? > boolean known(String manufacturer) { return manufacturer == "Samsung" || manufacturer == "SK Hynix" || manufacturer == "Micron" || manufacturer == "Kingston" || manufacturer == "Corsair" || manufacturer == "G.Skill" || manufacturer == "Crucial" || manufacturer == "Mushkin"; } < ---- Representative part numbers per manufacturer ---------------------- > String ddr5Part(String mfr) { if (mfr == "Samsung") { return "M323R-DDR5"; } if (mfr == "SK Hynix") { return "HMCG-DDR5"; } if (mfr == "Micron") { return "MTC-DDR5"; } if (mfr == "Crucial") { return "CT-DDR5"; } if (mfr == "Kingston") { return "KF560-DDR5"; } if (mfr == "Corsair") { return "CMK-DDR5"; } if (mfr == "G.Skill") { return "F5-DDR5"; } return "GEN5-MODULE"; } String ddr4Part(String mfr) { if (mfr == "Samsung") { return "M378A-DDR4"; } if (mfr == "SK Hynix") { return "HMA-DDR4"; } if (mfr == "Micron") { return "MTA-DDR4"; } if (mfr == "Crucial") { return "CT-DDR4"; } if (mfr == "Kingston") { return "KF432-DDR4"; } if (mfr == "Corsair") { return "CMK-DDR4"; } if (mfr == "G.Skill") { return "F4-DDR4"; } return "GEN4-MODULE"; } String genPart(String mfr, String genName) { if (genName == "DDR5") { return ddr5Part(mfr); } if (genName == "DDR4") { return ddr4Part(mfr); } return mfr + "-" + genName; } }