SLWindowsOSModel.sleela
lib/operating-system/SLWindowsOSModel.sleela · 78 line(s) · sleela
<< lib/operating-system/SLWindowsOSModel.sleela
SLeeLa Standard Library Definition.
Definition: Defines SLWindowsOSModel — a preset that extends SLOSModel and
extrapolates it into a Windows-shaped operating system: an NT-style kernel,
UEFI+BOOTMGR boot (no initramfs), an NTFS root under the Windows directory
world (C:\Windows, Program Files, Users, ProgramData), a Service Control
Manager service set, a Win32 base package seed, and the Explorer/DWM
desktop. It is the OOD realisation of "assume the shape of Windows".
After build(), refine any layer through the inherited accessors. Windows
shapes conventionally ship a desktop; asServer() still yields a valid
headless server edition.
Family: operating-system. Extends SLOSModel. >>
#sleela 2.5
material;
class SLWindowsOSModel extends SLOSModel {
< ---- 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 = 10949;
String metaAuthor = "Kiro Agent";
String metaDate = "2026-10-16";
String metaCopyright = "SLeeLa project";
String metaTrademark = "none";
String metaCorporation = "none";
< metaOrigin: National | <nation> | 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; }
< Build a Windows-shaped model with the given product name/version on amd64. >
void build(String name, String ver) {
configure(name, ver);
shapeAs("Windows", "amd64");
< Layer the user-facing Windows subsystems and shell components. >
packageSet().add("win32k", "10.0");
packageSet().add("dwm", "10.0");
packageSet().add("powershell", "7.4");
packageSet().add("edge-webview", "10.0");
< Windows ships NTFS + a recovery service by convention. >
serviceSet().enableAtBoot("WindowsUpdate");
}
< Build a multi-arch Windows model (adds arm64 to the primary amd64 target). >
void buildMultiArch(String name, String ver) {
build(name, ver);
architectures().addTarget("arm64");
}
}