Package philosophy
example-tree #sleela 2.9 (lib/philosophy/example-tree.sleela)
PhilosophyTreeExample class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
philosophy #sleela 2.9 (lib/philosophy/philosophy.sleela)
Philosophy class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
count | int count() | No description in source. |
nameOf | String nameOf(int id) | No description in source. |
summaryOf | String summaryOf(int id) | No description in source. |
report | void report(int id) | No description in source. |
main | void main() | No description in source. |
SLPackage #sleela 2.5 (lib/philosophy/SLPackage.sleela)
SLPackage class
Defines the SLeeLa standard-library package for philosophy.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
packageName | String packageName | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String name) | No description in source. |
name | String name() | No description in source. |
available | boolean available() | No description in source. |
SLPhilosophyAdmin #sleela 2.5 (lib/philosophy/SLPhilosophyAdmin.sleela)
SLPhilosophyAdmin class
Admin -- a party who may maintain a Tree, including pruning and rebalancing the base structure, but not transferring ownership.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
adminId | int adminId | No description in source. |
name | String name | No description in source. |
role | String role | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int id, String personName) | No description in source. |
getAdminId | int getAdminId() | No description in source. |
setAdminId | void setAdminId(int v) | No description in source. |
getName | String getName() | No description in source. |
setName | void setName(String v) | No description in source. |
getRole | String getRole() | No description in source. |
canAdd | boolean canAdd() | Rights on the Tree. |
canRead | boolean canRead() | No description in source. |
canPrune | boolean canPrune() | No description in source. |
canTransferOwnership | boolean canTransferOwnership() | No description in source. |
SLPhilosophyAuthor #sleela 2.5 (lib/philosophy/SLPhilosophyAuthor.sleela)
SLPhilosophyAuthor class
Author -- a party who may contribute Inputs/Items to a Tree, attributed by name, with authoring (not administrative) rights.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
authorId | int authorId | No description in source. |
name | String name | No description in source. |
role | String role | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int id, String personName) | No description in source. |
getAuthorId | int getAuthorId() | No description in source. |
setAuthorId | void setAuthorId(int v) | No description in source. |
getName | String getName() | No description in source. |
setName | void setName(String v) | No description in source. |
getRole | String getRole() | No description in source. |
canAdd | boolean canAdd() | Rights on the Tree. |
canRead | boolean canRead() | No description in source. |
canPrune | boolean canPrune() | No description in source. |
canTransferOwnership | boolean canTransferOwnership() | No description in source. |
SLPhilosophyConsistency #sleela 2.5 (lib/philosophy/SLPhilosophyConsistency.sleela)
SLPhilosophyConsistency class
handle to the tree-consistency signal-toss tool (philosophy/consistency_monitor.* and philosophy/signal_toss.*).
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
id | int id() | No description in source. |
name | String name() | No description in source. |
summary | String summary() | No description in source. |
sampleHz | int sampleHz() | Cadence contract (mirrors signal_toss.h). |
commitMinPerHour | int commitMinPerHour() | No description in source. |
commitMaxPerHour | int commitMaxPerHour() | No description in source. |
updatesPerBranch | int updatesPerBranch() | Update accounting (mirrors consistency_monitor.h). |
updatesPerMatureLength | int updatesPerMatureLength() | No description in source. |
traitMax | int traitMax() | Structural invariants. |
traitWarn | int traitWarn() | No description in source. |
weightMin | int weightMin() | No description in source. |
weightMax | int weightMax() | No description in source. |
economyStudyArity | int economyStudyArity() | No description in source. |
sideBranchpointMax | int sideBranchpointMax() | No description in source. |
SLPhilosophyEventTree #sleela 2.5 (lib/philosophy/SLPhilosophyEventTree.sleela)
SLPhilosophyEventTree class
the SLeeLa-facing handle to the philosophy event tree tool (philosophy/event_tree.*). An explicit-input, half-life-decayed event store; it does not monitor ambient audio, networks, or other people.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
id | int id() | Registry identity. |
name | String name() | No description in source. |
summary | String summary() | No description in source. |
insertsById | boolean insertsById() | Capability contract (mirrors event_tree.h). |
decaysByHalfLife | boolean decaysByHalfLife() | No description in source. |
prunesByRelevanceFloor | boolean prunesByRelevanceFloor() | No description in source. |
monitorsAmbient | boolean monitorsAmbient() | No description in source. |
revisitIsCorroboration | boolean revisitIsCorroboration() | A revisit links to an earlier event; it is not independent corroboration. |
SLPhilosophyExitor #sleela 2.5 (lib/philosophy/SLPhilosophyExitor.sleela)
SLPhilosophyExitor class
Exitor -- a party who may retire or end nodes (mark a departure from the Tree) without otherwise altering the base structure.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
exitorId | int exitorId | No description in source. |
name | String name | No description in source. |
role | String role | No description in source. |
lastExitedNodeId | int lastExitedNodeId | No description in source. |
lastExitAt | int lastExitAt | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int id, String personName) | No description in source. |
getExitorId | int getExitorId() | No description in source. |
setExitorId | void setExitorId(int v) | No description in source. |
getName | String getName() | No description in source. |
setName | void setName(String v) | No description in source. |
getRole | String getRole() | No description in source. |
getLastExitedNodeId | int getLastExitedNodeId() | No description in source. |
getLastExitAt | int getLastExitAt() | No description in source. |
exitNode | boolean exitNode(int nodeId, int at) | Record a departure of a node at a time; returns true when recorded. |
canAdd | boolean canAdd() | Rights on the Tree. |
canRead | boolean canRead() | No description in source. |
canRetire | boolean canRetire() | No description in source. |
canTransferOwnership | boolean canTransferOwnership() | No description in source. |
SLPhilosophyHelper #sleela 2.5 (lib/philosophy/SLPhilosophyHelper.sleela)
SLPhilosophyHelper class
handle to the help / reach-out desk tool (philosophy/module/helper/help_desk.*).
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
id | int id() | No description in source. |
name | String name() | No description in source. |
summary | String summary() | No description in source. |
defaultCapacity | int defaultCapacity() | Sizing contract (mirrors help_desk.h). |
defaultCompanySize | int defaultCompanySize() | No description in source. |
roleCount | int roleCount() | No description in source. |
shipsRealContacts | boolean shipsRealContacts() | The library stores no real PII and makes no network connection. |
performsNetworkIo | boolean performsNetworkIo() | No description in source. |
roleName | String roleName(int r) | Role names, by ordinal 0..4. |
SLPhilosophyInput #sleela 2.5 (lib/philosophy/SLPhilosophyInput.sleela)
SLPhilosophyInput class
one explicit Input -- a single submission bound for the Tree, pairing an Item id with the consent and timing needed to add it.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
inputId | int inputId | No description in source. |
itemId | int itemId | No description in source. |
occurredAt | int occurredAt | No description in source. |
consentToShare | boolean consentToShare | No description in source. |
accepted | boolean accepted | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int id, int carriedItemId, int at, boolean consent) | No description in source. |
getInputId | int getInputId() | No description in source. |
setInputId | void setInputId(int v) | No description in source. |
getItemId | int getItemId() | No description in source. |
setItemId | void setItemId(int v) | No description in source. |
getOccurredAt | int getOccurredAt() | No description in source. |
setOccurredAt | void setOccurredAt(int v) | No description in source. |
getConsentToShare | boolean getConsentToShare() | No description in source. |
setConsentToShare | void setConsentToShare(boolean v) | No description in source. |
getAccepted | boolean getAccepted() | No description in source. |
setAccepted | void setAccepted(boolean v) | No description in source. |
valid | boolean valid() | An Input is valid for the Tree only when it has an item, a time, and id. |
SLPhilosophyInputs #sleela 2.5 (lib/philosophy/SLPhilosophyInputs.sleela)
SLPhilosophyInputs class
an ordered collection of Input ids staged for a Tree -- the intake queue that feeds Nodes into the base structure.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
inputIds | int[] inputIds | No description in source. |
size | int size | No description in source. |
capacity | int capacity | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int cap) | No description in source. |
getSize | int getSize() | No description in source. |
getCapacity | int getCapacity() | No description in source. |
isEmpty | boolean isEmpty() | No description in source. |
isFull | boolean isFull() | No description in source. |
add | boolean add(int inputId) | Stage one Input id; returns true when accepted. |
at | int at(int index) | No description in source. |
clear | void clear() | No description in source. |
SLPhilosophyIntSet #sleela 2.5 (lib/philosophy/SLPhilosophyIntSet.sleela)
SLPhilosophyIntSet class
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.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
id | int id() | No description in source. |
name | String name() | No description in source. |
summary | String summary() | No description in source. |
traitCount | int traitCount() | Schema contract (mirrors int_set.*). |
rangeLow | int rangeLow() | No description in source. |
rangeHigh | int rangeHigh() | No description in source. |
psychometric | boolean psychometric() | The INT range is an ordinal lateral index, never a validated IQ score. |
startAge | int startAge() | Age rules. |
notMentionedBelow | int notMentionedBelow() | No description in source. |
basicAnatomyCheckinAbove | int basicAnatomyCheckinAbove() | No description in source. |
emitsJson | boolean emitsJson() | No description in source. |
emitsXml | boolean emitsXml() | No description in source. |
SLPhilosophyItem #sleela 2.5 (lib/philosophy/SLPhilosophyItem.sleela)
SLPhilosophyItem class
one catalogued Item -- a keyed, typed value with provenance -- that a Node may carry inside a philosophy Tree.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
itemId | int itemId | No description in source. |
key | String key | No description in source. |
value | int value | No description in source. |
unit | String unit | No description in source. |
sourceReference | String sourceReference | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int id, String k, int v, String u, String src) | No description in source. |
getItemId | int getItemId() | No description in source. |
setItemId | void setItemId(int v) | No description in source. |
getKey | String getKey() | No description in source. |
setKey | void setKey(String v) | No description in source. |
getValue | int getValue() | No description in source. |
setValue | void setValue(int v) | No description in source. |
getUnit | String getUnit() | No description in source. |
setUnit | void setUnit(String v) | No description in source. |
getSourceReference | String getSourceReference() | No description in source. |
setSourceReference | void setSourceReference(String v) | No description in source. |
hasKey | boolean hasKey() | No description in source. |
SLPhilosophyNode #sleela 2.5 (lib/philosophy/SLPhilosophyNode.sleela)
SLPhilosophyNode class
one Node of a philosophy Tree -- a branch with an ordering key, left/right child ids, a weight, and the Item it carries.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
nodeId | int nodeId | No description in source. |
leftId | int leftId | No description in source. |
rightId | int rightId | No description in source. |
height | int height | No description in source. |
weight | int weight | No description in source. |
itemId | int itemId | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int id, int w, int carriedItemId) | No description in source. |
getNodeId | int getNodeId() | No description in source. |
setNodeId | void setNodeId(int v) | No description in source. |
getLeftId | int getLeftId() | No description in source. |
setLeftId | void setLeftId(int v) | No description in source. |
getRightId | int getRightId() | No description in source. |
setRightId | void setRightId(int v) | No description in source. |
getHeight | int getHeight() | No description in source. |
setHeight | void setHeight(int v) | No description in source. |
getWeight | int getWeight() | No description in source. |
setWeight | void setWeight(int v) | No description in source. |
getItemId | int getItemId() | No description in source. |
setItemId | void setItemId(int v) | No description in source. |
isLeaf | boolean isLeaf() | No description in source. |
SLPhilosophyOwner #sleela 2.5 (lib/philosophy/SLPhilosophyOwner.sleela)
SLPhilosophyOwner class
Owner -- the party who holds a Tree, with full rights including ownership transfer. The Owner anchors the base structure.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
ownerId | int ownerId | No description in source. |
name | String name | No description in source. |
role | String role | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int id, String personName) | No description in source. |
getOwnerId | int getOwnerId() | No description in source. |
setOwnerId | void setOwnerId(int v) | No description in source. |
getName | String getName() | No description in source. |
setName | void setName(String v) | No description in source. |
getRole | String getRole() | No description in source. |
transferTo | int transferTo(int newOwnerId) | Transfer ownership to a new owner id; returns the new owner id. |
canAdd | boolean canAdd() | Rights on the Tree. |
canRead | boolean canRead() | No description in source. |
canPrune | boolean canPrune() | No description in source. |
canTransferOwnership | boolean canTransferOwnership() | No description in source. |
SLPhilosophyPartitionApi #sleela 2.5 (lib/philosophy/SLPhilosophyPartitionApi.sleela)
SLPhilosophyPartitionApi class
handle to the uniform three-level partition API tool (philosophy/partition_api.*).
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
id | int id() | No description in source. |
name | String name() | No description in source. |
summary | String summary() | No description in source. |
levelCount | int levelCount() | Levels and the eight operations. |
operationCount | int operationCount() | No description in source. |
activityCount | int activityCount() | No description in source. |
basisNodesMin | int basisNodesMin() | Whole-tree basis and maturation caps (mirrors partition_api.h). |
basisNodesMax | int basisNodesMax() | No description in source. |
maturationUsual | int maturationUsual() | No description in source. |
maturationMax | int maturationMax() | No description in source. |
operationName | String operationName(int op) | Operation names, by ordinal 0..7. |
activityName | String activityName(int a) | Activity names, by ordinal 0..10. |
SLPhilosophyRelevant #sleela 2.5 (lib/philosophy/SLPhilosophyRelevant.sleela)
SLPhilosophyRelevant class
Relevant -- a sorted, right-ordered index over Tree nodes by relevance, so the most relevant node sits at the right end.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
nodeIds | int[] nodeIds | No description in source. |
scores | int[] scores | No description in source. |
size | int size | No description in source. |
capacity | int capacity | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int cap) | No description in source. |
getSize | int getSize() | No description in source. |
getCapacity | int getCapacity() | No description in source. |
insert | boolean insert(int nodeId, int score) | Insert a (nodeId, score) keeping ascending order; right end = most relevant. |
nodeAt | int nodeAt(int index) | The node id at a given rank from the left (0) to the right (size-1). |
scoreAt | int scoreAt(int index) | No description in source. |
mostRelevant | int mostRelevant() | The most relevant node id (right end), or 0 when empty. |
leastRelevant | int leastRelevant() | The least relevant node id (left end), or 0 when empty. |
clear | void clear() | No description in source. |
SLPhilosophySpeculation #sleela 2.5 (lib/philosophy/SLPhilosophySpeculation.sleela)
SLPhilosophySpeculation class
handle to the speculation-invite tool (philosophy/module/psychiatry-friend/speculation_invite.*).
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
id | int id() | No description in source. |
name | String name() | No description in source. |
summary | String summary() | No description in source. |
requiresFalsifiability | boolean requiresFalsifiability() | Careful-science contract (mirrors speculation_invite.h). |
requiresSelfAttestation | boolean requiresSelfAttestation() | No description in source. |
verifiesCredentials | boolean verifiesCredentials() | No description in source. |
makesDiagnosis | boolean makesDiagnosis() | No description in source. |
givesTreatmentAdvice | boolean givesTreatmentAdvice() | No description in source. |
aboutSoftwareNotPerson | boolean aboutSoftwareNotPerson() | No description in source. |
aspectCount | int aspectCount() | No description in source. |
confidenceLevelCount | int confidenceLevelCount() | No description in source. |
aspectName | String aspectName(int a) | Aspect names, by ordinal 0..4. |
confidenceName | String confidenceName(int c) | Confidence band names, by ordinal 0..2 (there is no "certain" level). |
SLPhilosophyTree #sleela 2.9 (lib/philosophy/SLPhilosophyTree.sleela)
SLPhilosophyTree class
the BASE Tree structure for the philosophy series -- the aggregate that composes Nodes (each carrying an Item), is held by an Owner, is read back through a Relevant index, and is gated by role rights.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
rootId | int rootId | No description in source. |
nodeCount | int nodeCount | No description in source. |
capacity | int capacity | No description in source. |
ownerId | int ownerId | No description in source. |
nodeIds | int[] nodeIds | No description in source. |
itemIds | int[] itemIds | No description in source. |
weights | int[] weights | No description in source. |
nationalStarts | String[] nationalStarts | A backing array mirrors the @mix group for runtime read access (a bare read of the group name resolves to the last-declared member under 2.9). |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int owner, int cap) | No description in source. |
getRootId | int getRootId() | No description in source. |
setRootId | void setRootId(int v) | No description in source. |
getNodeCount | int getNodeCount() | No description in source. |
getCapacity | int getCapacity() | No description in source. |
getOwnerId | int getOwnerId() | No description in source. |
setOwnerId | void setOwnerId(int v) | No description in source. |
isEmpty | boolean isEmpty() | No description in source. |
isFull | boolean isFull() | No description in source. |
assign | boolean assign(int nodeId, int itemId, int weight) | Compose one Node (with its carried Item and a weight) into the Tree. The first assigned node becomes the root. Returns true when stored. Weight is clamped to the consistency band [1,9]. |
assignIfAllowed | boolean assignIfAllowed(boolean canAdd, int nodeId, int itemId, int weight) | Role-gated assignment: a role that lacks the add right may not compose a node. Pass the role right (from an Owner/Admin/Author.canAdd()). |
nodeIdAt | int nodeIdAt(int index) | No description in source. |
itemIdAt | int itemIdAt(int index) | No description in source. |
weightAt | int weightAt(int index) | No description in source. |
toRelevant | SLPhilosophyRelevant toRelevant(int[] scores) | Read the Tree most-relevant-first by handing its nodes and per-node scores to a Relevant index; returns the filled index. The caller supplies the scores array (one per node, in assignment order). |
initDirectives | void initDirectives() | No description in source. |
nationalStartsCount | int nationalStartsCount() | No description in source. |
nationalStartAt | String nationalStartAt(int index) | No description in source. |