SleelaDoc API
HTML documentation for the SLeeLa standard library (/lib)
Home › Packages › philosophy

Package philosophy

This package contains 19 source unit(s) defining 19 class(es) / struct(s). Each unit below lists its fields (the values it stores) and methods (the actions it performs), with a plain explanation of each.

example-tree #sleela 2.9 (lib/philosophy/example-tree.sleela)

PhilosophyTreeExample class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

philosophy #sleela 2.9 (lib/philosophy/philosophy.sleela)

Philosophy class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
countint count()No description in source.
nameOfString nameOf(int id)No description in source.
summaryOfString summaryOf(int id)No description in source.
reportvoid report(int id)No description in source.
mainvoid main()No description in source.

SLPackage #sleela 2.5 (lib/philosophy/SLPackage.sleela)

SLPackage class

Defines the SLeeLa standard-library package for philosophy.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
packageNameString packageNameNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(String name)No description in source.
nameString name()No description in source.
availableboolean 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
adminIdint adminIdNo description in source.
nameString nameNo description in source.
roleString roleNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int id, String personName)No description in source.
getAdminIdint getAdminId()No description in source.
setAdminIdvoid setAdminId(int v)No description in source.
getNameString getName()No description in source.
setNamevoid setName(String v)No description in source.
getRoleString getRole()No description in source.
canAddboolean canAdd()Rights on the Tree.
canReadboolean canRead()No description in source.
canPruneboolean canPrune()No description in source.
canTransferOwnershipboolean 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
authorIdint authorIdNo description in source.
nameString nameNo description in source.
roleString roleNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int id, String personName)No description in source.
getAuthorIdint getAuthorId()No description in source.
setAuthorIdvoid setAuthorId(int v)No description in source.
getNameString getName()No description in source.
setNamevoid setName(String v)No description in source.
getRoleString getRole()No description in source.
canAddboolean canAdd()Rights on the Tree.
canReadboolean canRead()No description in source.
canPruneboolean canPrune()No description in source.
canTransferOwnershipboolean 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.*).

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()No description in source.
nameString name()No description in source.
summaryString summary()No description in source.
sampleHzint sampleHz()Cadence contract (mirrors signal_toss.h).
commitMinPerHourint commitMinPerHour()No description in source.
commitMaxPerHourint commitMaxPerHour()No description in source.
updatesPerBranchint updatesPerBranch()Update accounting (mirrors consistency_monitor.h).
updatesPerMatureLengthint updatesPerMatureLength()No description in source.
traitMaxint traitMax()Structural invariants.
traitWarnint traitWarn()No description in source.
weightMinint weightMin()No description in source.
weightMaxint weightMax()No description in source.
economyStudyArityint economyStudyArity()No description in source.
sideBranchpointMaxint 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()Registry identity.
nameString name()No description in source.
summaryString summary()No description in source.
insertsByIdboolean insertsById()Capability contract (mirrors event_tree.h).
decaysByHalfLifeboolean decaysByHalfLife()No description in source.
prunesByRelevanceFloorboolean prunesByRelevanceFloor()No description in source.
monitorsAmbientboolean monitorsAmbient()No description in source.
revisitIsCorroborationboolean 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
exitorIdint exitorIdNo description in source.
nameString nameNo description in source.
roleString roleNo description in source.
lastExitedNodeIdint lastExitedNodeIdNo description in source.
lastExitAtint lastExitAtNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int id, String personName)No description in source.
getExitorIdint getExitorId()No description in source.
setExitorIdvoid setExitorId(int v)No description in source.
getNameString getName()No description in source.
setNamevoid setName(String v)No description in source.
getRoleString getRole()No description in source.
getLastExitedNodeIdint getLastExitedNodeId()No description in source.
getLastExitAtint getLastExitAt()No description in source.
exitNodeboolean exitNode(int nodeId, int at)Record a departure of a node at a time; returns true when recorded.
canAddboolean canAdd()Rights on the Tree.
canReadboolean canRead()No description in source.
canRetireboolean canRetire()No description in source.
canTransferOwnershipboolean 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.*).

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()No description in source.
nameString name()No description in source.
summaryString summary()No description in source.
defaultCapacityint defaultCapacity()Sizing contract (mirrors help_desk.h).
defaultCompanySizeint defaultCompanySize()No description in source.
roleCountint roleCount()No description in source.
shipsRealContactsboolean shipsRealContacts()The library stores no real PII and makes no network connection.
performsNetworkIoboolean performsNetworkIo()No description in source.
roleNameString 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
inputIdint inputIdNo description in source.
itemIdint itemIdNo description in source.
occurredAtint occurredAtNo description in source.
consentToShareboolean consentToShareNo description in source.
acceptedboolean acceptedNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int id, int carriedItemId, int at, boolean consent)No description in source.
getInputIdint getInputId()No description in source.
setInputIdvoid setInputId(int v)No description in source.
getItemIdint getItemId()No description in source.
setItemIdvoid setItemId(int v)No description in source.
getOccurredAtint getOccurredAt()No description in source.
setOccurredAtvoid setOccurredAt(int v)No description in source.
getConsentToShareboolean getConsentToShare()No description in source.
setConsentToSharevoid setConsentToShare(boolean v)No description in source.
getAcceptedboolean getAccepted()No description in source.
setAcceptedvoid setAccepted(boolean v)No description in source.
validboolean 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
inputIdsint[] inputIdsNo description in source.
sizeint sizeNo description in source.
capacityint capacityNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int cap)No description in source.
getSizeint getSize()No description in source.
getCapacityint getCapacity()No description in source.
isEmptyboolean isEmpty()No description in source.
isFullboolean isFull()No description in source.
addboolean add(int inputId)Stage one Input id; returns true when accepted.
atint at(int index)No description in source.
clearvoid 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()No description in source.
nameString name()No description in source.
summaryString summary()No description in source.
traitCountint traitCount()Schema contract (mirrors int_set.*).
rangeLowint rangeLow()No description in source.
rangeHighint rangeHigh()No description in source.
psychometricboolean psychometric()The INT range is an ordinal lateral index, never a validated IQ score.
startAgeint startAge()Age rules.
notMentionedBelowint notMentionedBelow()No description in source.
basicAnatomyCheckinAboveint basicAnatomyCheckinAbove()No description in source.
emitsJsonboolean emitsJson()No description in source.
emitsXmlboolean 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
itemIdint itemIdNo description in source.
keyString keyNo description in source.
valueint valueNo description in source.
unitString unitNo description in source.
sourceReferenceString sourceReferenceNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int id, String k, int v, String u, String src)No description in source.
getItemIdint getItemId()No description in source.
setItemIdvoid setItemId(int v)No description in source.
getKeyString getKey()No description in source.
setKeyvoid setKey(String v)No description in source.
getValueint getValue()No description in source.
setValuevoid setValue(int v)No description in source.
getUnitString getUnit()No description in source.
setUnitvoid setUnit(String v)No description in source.
getSourceReferenceString getSourceReference()No description in source.
setSourceReferencevoid setSourceReference(String v)No description in source.
hasKeyboolean 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
nodeIdint nodeIdNo description in source.
leftIdint leftIdNo description in source.
rightIdint rightIdNo description in source.
heightint heightNo description in source.
weightint weightNo description in source.
itemIdint itemIdNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int id, int w, int carriedItemId)No description in source.
getNodeIdint getNodeId()No description in source.
setNodeIdvoid setNodeId(int v)No description in source.
getLeftIdint getLeftId()No description in source.
setLeftIdvoid setLeftId(int v)No description in source.
getRightIdint getRightId()No description in source.
setRightIdvoid setRightId(int v)No description in source.
getHeightint getHeight()No description in source.
setHeightvoid setHeight(int v)No description in source.
getWeightint getWeight()No description in source.
setWeightvoid setWeight(int v)No description in source.
getItemIdint getItemId()No description in source.
setItemIdvoid setItemId(int v)No description in source.
isLeafboolean 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
ownerIdint ownerIdNo description in source.
nameString nameNo description in source.
roleString roleNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int id, String personName)No description in source.
getOwnerIdint getOwnerId()No description in source.
setOwnerIdvoid setOwnerId(int v)No description in source.
getNameString getName()No description in source.
setNamevoid setName(String v)No description in source.
getRoleString getRole()No description in source.
transferToint transferTo(int newOwnerId)Transfer ownership to a new owner id; returns the new owner id.
canAddboolean canAdd()Rights on the Tree.
canReadboolean canRead()No description in source.
canPruneboolean canPrune()No description in source.
canTransferOwnershipboolean 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.*).

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()No description in source.
nameString name()No description in source.
summaryString summary()No description in source.
levelCountint levelCount()Levels and the eight operations.
operationCountint operationCount()No description in source.
activityCountint activityCount()No description in source.
basisNodesMinint basisNodesMin()Whole-tree basis and maturation caps (mirrors partition_api.h).
basisNodesMaxint basisNodesMax()No description in source.
maturationUsualint maturationUsual()No description in source.
maturationMaxint maturationMax()No description in source.
operationNameString operationName(int op)Operation names, by ordinal 0..7.
activityNameString 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
nodeIdsint[] nodeIdsNo description in source.
scoresint[] scoresNo description in source.
sizeint sizeNo description in source.
capacityint capacityNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int cap)No description in source.
getSizeint getSize()No description in source.
getCapacityint getCapacity()No description in source.
insertboolean insert(int nodeId, int score)Insert a (nodeId, score) keeping ascending order; right end = most relevant.
nodeAtint nodeAt(int index)The node id at a given rank from the left (0) to the right (size-1).
scoreAtint scoreAt(int index)No description in source.
mostRelevantint mostRelevant()The most relevant node id (right end), or 0 when empty.
leastRelevantint leastRelevant()The least relevant node id (left end), or 0 when empty.
clearvoid 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.*).

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()No description in source.
nameString name()No description in source.
summaryString summary()No description in source.
requiresFalsifiabilityboolean requiresFalsifiability()Careful-science contract (mirrors speculation_invite.h).
requiresSelfAttestationboolean requiresSelfAttestation()No description in source.
verifiesCredentialsboolean verifiesCredentials()No description in source.
makesDiagnosisboolean makesDiagnosis()No description in source.
givesTreatmentAdviceboolean givesTreatmentAdvice()No description in source.
aboutSoftwareNotPersonboolean aboutSoftwareNotPerson()No description in source.
aspectCountint aspectCount()No description in source.
confidenceLevelCountint confidenceLevelCount()No description in source.
aspectNameString aspectName(int a)Aspect names, by ordinal 0..4.
confidenceNameString 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
rootIdint rootIdNo description in source.
nodeCountint nodeCountNo description in source.
capacityint capacityNo description in source.
ownerIdint ownerIdNo description in source.
nodeIdsint[] nodeIdsNo description in source.
itemIdsint[] itemIdsNo description in source.
weightsint[] weightsNo description in source.
nationalStartsString[] nationalStartsA 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.

MethodSignatureWhat it does
configurevoid configure(int owner, int cap)No description in source.
getRootIdint getRootId()No description in source.
setRootIdvoid setRootId(int v)No description in source.
getNodeCountint getNodeCount()No description in source.
getCapacityint getCapacity()No description in source.
getOwnerIdint getOwnerId()No description in source.
setOwnerIdvoid setOwnerId(int v)No description in source.
isEmptyboolean isEmpty()No description in source.
isFullboolean isFull()No description in source.
assignboolean 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].
assignIfAllowedboolean 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()).
nodeIdAtint nodeIdAt(int index)No description in source.
itemIdAtint itemIdAt(int index)No description in source.
weightAtint weightAt(int index)No description in source.
toRelevantSLPhilosophyRelevant 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).
initDirectivesvoid initDirectives()No description in source.
nationalStartsCountint nationalStartsCount()No description in source.
nationalStartAtString nationalStartAt(int index)No description in source.