SMPerson.sleela
stanford-math/SMPerson.sleela · 95 line(s) · sleela
<< stanford-math/SMPerson.sleela
SLeeLa Standard Library Definition.
Definition: One named mathematician of the Stanford Math brand -- an honest
identity record (name, dates where known, field, Stanford standing). >>
#sleela 2.1
< Worker-class carrier with full identity metadata. >
class SMPerson {
< ---- 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 = 9100;
String metaAuthor = "Stanford University Department of Mathematics";
String metaDate = "2026-10-25";
String metaCopyright = "biographical facts in the public record";
String metaTrademark = "none";
String metaCorporation = "The Leland Stanford Junior University";
< metaOrigin: National | <nation> | International | Galactic >
String metaOrigin = "International";
String metaBirthDate = "none";
< metaScienceRating: maturity/robustness on a 1..10 scale >
int metaScienceRating = 10;
< 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; }
< ---- Scientific record (purpose / method / gains / bedrock / integrity) ---- >
<< Spec-sanctioned extension (SLEELA.syntax §15: ordinary fields + accessors).
Written truthfully for THIS class. metaIntegrityGoal is the standing
promise: a person's greatness is recorded faithfully, never embellished. >>
String metaPurpose = "Hold one mathematician as an honest identity record: name, dates, field, standing, what they are noted for.";
String metaScientificMethod = "Biographical attribution from the public record; dates given where known, 'unknown' otherwise.";
String metaAuthorialGains = "None over the person's work; the record gains only a faithful entry.";
String metaBedrock = "Department rosters, bulletins, and the biographical public record.";
String metaIntegrityGoal = "Let a great career be recorded as it truly was -- real contributions, real dates -- without inflating the person or claiming their achievements.";
String getPurpose() { return metaPurpose; }
void setPurpose(String v) { metaPurpose = v; }
String getScientificMethod() { return metaScientificMethod; }
void setScientificMethod(String v) { metaScientificMethod = v; }
String getAuthorialGains() { return metaAuthorialGains; }
void setAuthorialGains(String v) { metaAuthorialGains = v; }
String getBedrock() { return metaBedrock; }
void setBedrock(String v) { metaBedrock = v; }
String getIntegrityGoal() { return metaIntegrityGoal; }
void setIntegrityGoal(String v) { metaIntegrityGoal = v; }
< ---- Person facts (public record) ---- >
String personName = "unknown";
String lifespan = "unknown";
String field = "unknown";
String standing = "unknown";
String noted = "unknown";
void describePerson(String n, String life, String f, String s, String note) {
personName = n;
lifespan = life;
field = f;
standing = s;
noted = note;
}
String getName() { return personName; }
String getLifespan() { return lifespan; }
String getField() { return field; }
String getStanding() { return standing; }
String getNoted() { return noted; }
String summary() {
return personName + " (" + lifespan + ") -- " + field + "; " + noted;
}
}