<< lib/observer/SLObserverMessage.sleela SLeeLa Standard Library Definition. Definition: Defines SLObserverMessage — the one envelope the dynamic document observer and its modules speak. A message is a NOTE, QUESTION, ANSWER, PROPOSE, FAULT, or CHANGE; CHANGE is what the observer sends when the standing document moves, and the rest are how modules converse with the observer and with each other. The observer stamps the sender on routing so a module cannot impersonate another. >> #sleela 2.5 material; < Family: observer. Plain data; no behavior beyond accessors. > < Kinds: 0 NOTE, 1 QUESTION, 2 ANSWER, 3 PROPOSE, 4 FAULT, 5 CHANGE. > < Ops (CHANGE and PROPOSE): 0 INSERT, 1 REPLACE, 2 DELETE. > class SLObserverMessage { < ---- 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 = 39201; String metaAuthor = "Kiro Agent"; String metaDate = "2026-11-11"; String metaCopyright = "SLeeLa project"; String metaTrademark = "none"; String metaCorporation = "none"; < metaOrigin: National | | International | Galactic > String metaOrigin = "International"; String metaBirthDate = "2026-11-11"; < 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; } int kind; int op; String from; String to; String text; < CHANGE: the previous text of the line; otherwise free-form > String extra; < who caused a CHANGE (host, a module name) > String tag; int line; < CHANGE: the new revision. PROPOSE: the revision the proposal is based on > int revision; < conversation depth; the observer bounds it > int hops; void configure(int k, String f, String t, String body) { kind = k; op = 0; from = f; to = t; text = body; extra = ""; tag = ""; line = 0; revision = 0; hops = 0; } int getKind() { return kind; } int getOp() { return op; } void setOp(int v) { op = v; } String getFrom() { return from; } void setFrom(String v) { from = v; } String getTo() { return to; } String getText() { return text; } String getExtra() { return extra; } void setExtra(String v) { extra = v; } String getTag() { return tag; } void setTag(String v) { tag = v; } int getLine() { return line; } void setLine(int v) { line = v; } int getRevision() { return revision; } void setRevision(int v) { revision = v; } int getHops() { return hops; } void setHops(int v) { hops = v; } }