Home /Modules/philosophy/SLPhilosophyIntSet.sleela

SLPhilosophyIntSet.sleela

lib/philosophy/SLPhilosophyIntSet.sleela · 75 line(s) · sleela

<< lib/philosophy/SLPhilosophyIntSet.sleela
   SLeeLa Standard Library Definition.
   Definition: handle to the INT-set data tool (philosophy/int_set/int_set.*).
   An authored character schema over a real human age structure, emitted as
   JSON and XML. >>
#sleela 2.5
material;
< Family: philosophy. A 16-item authored character set connected laterally >
< into an ordinal INT range, layered on a real age structure (UN DYB 2024 / >
< WPP 2024 / US Census). The INT range is NOT a psychometric IQ. A person >
< starts at a natural age and grows older; below 16 is not mentioned; above 85 >
< gets a basic-anatomy check-in routed out by Fellows or Worship. >
class SLPhilosophyIntSet {
  int id() { return 5; }
  String name() { return "int-set"; }
  String summary() { return "authored character schema over real age structure (JSON/XML)"; }

  < Schema contract (mirrors int_set.*). >
  int traitCount() { return 16; }
  int rangeLow() { return 70; }
  int rangeHigh() { return 160; }
  < The INT range is an ordinal lateral index, never a validated IQ score. >
  boolean psychometric() { return false; }

  < Age rules. >
  int startAge() { return 18; }
  int notMentionedBelow() { return 16; }
  int basicAnatomyCheckinAbove() { return 85; }

  boolean emitsJson() { return true; }
  boolean emitsXml() { return true; }

  < ---- 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.
     Age data is real (UN/US Census); the character schema is authored. >>
  String metaVersion = "1.0.0";
  int metaId = 10414;
  String metaAuthor = "Kiro Agent";
  String metaDate = "2026-10-30";
  String metaCopyright = "SLeeLa project";
  String metaTrademark = "none";
  String metaCorporation = "none";
  < metaOrigin: National | <nation> | International | Galactic >
  String metaOrigin = "International";
  String metaBirthDate = "2026-10-30";
  < metaScienceRating: maturity/robustness on a 1..10 scale >
  int metaScienceRating = 7;
  < metaNationalSchedule: a real, citable instrument or "none" >
  String metaNationalSchedule = "UN World Population Prospects 2024";

  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; }
}