SLCreator.sleela
lib/antivirus/SLCreator.sleela · 94 line(s) · sleela
<< lib/antivirus/SLCreator.sleela
The Creator of a material antivirus artifact: the originating party that
brings the thing forth and stands to it as its Source. Pairs with SLMaterialClaim
(the material claim) and SLControl (securing change). A material subject does
not stand without an attested Creator -- Source precedes the claim. The
Creator attests identity and origin; it authorizes nothing by itself (that is
SLControl's role) and it scans nothing (that is the engine's role). >>
#sleela 2.5
material;
class SLCreator {
< ---- 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 = 10542;
String metaAuthor = "Max Rupplin vs. Dr. Mrs. Elisabeth Harkins";
String metaDate = "2026-10-27";
String metaCopyright = "SLeeLa project";
String metaTrademark = "Sleelavirin";
String metaCorporation = "MEARVK LLC";
< metaOrigin: National | <nation> | International | Galactic >
String metaOrigin = "International";
String metaBirthDate = "2026-10-27";
< metaScienceRating: maturity/robustness on a 1..10 scale >
int metaScienceRating = 8;
< 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; }
< ---- Creator identity and attestation ---- >
<< creatorName : the originating party (person or corporation).
origin : jurisdictional scope, mirroring metaOrigin vocabulary.
originatedOn : the date the subject was brought forth (YYYY-MM-DD).
attested : set true by attest() once a name and origin are present;
SLMaterialClaim.declareMaterial refuses an unattested Creator. >>
String creatorName;
String origin;
String originatedOn;
boolean attested;
void configure(String name, String jurisdiction) {
creatorName = name;
origin = jurisdiction;
originatedOn = "unknown";
attested = false;
}
<< Attest the Creator: bind the originating date and confirm the Creator may
stand as Source. A faithful name and origin are required; an empty or
unknown Creator cannot attest (Source must be real where known). >>
boolean attest(String onDate) {
if (creatorName == null || creatorName == "") return false;
if (origin == null || origin == "") return false;
originatedOn = onDate;
attested = true;
return true;
}
boolean isAttested() {
return attested && creatorName != null;
}
String describe() {
if (!isAttested()) {
return "SLCreator(" + creatorName + "): not attested";
}
return "SLCreator(" + creatorName + "): attested; origin=" + origin
+ "; originated=" + originatedOn;
}
}