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

Package rrs

This package contains 4 source unit(s) defining 4 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.

RrsDemo #sleela 3.0 (lib/rrs/examples/RrsDemo.sleela)

RrsDemo class

A runnable demo of the rrs package: runs three stages of premises through the ternary 1/0/2 feed-forward, then observes the same run with the signal monitor and reports the potestas culmination. Sibling .sleela files in this package are auto-linked by the runner. Signal/stage ordinals are passed as integer literals (1 = AFFIRM, 0 = ELIMINATE, 2 = POWER_ADD; stage 0/1/2 = conjunctive/responsibility/solidity) because a class static is not reachable through an instance in the checker.

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
mainvoid main()No description in source.

SLPackage #sleela 3.0 (lib/rrs/SLPackage.sleela)

SLPackage class

Defines the SLeeLa standard-library package for rrs (Reasonable Responsibility Solidity), the 3-stage congruent feed-forward model over a ternary 1/0/2 signal.

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.

SLRrs #sleela 3.0 (lib/rrs/SLRrs.sleela)

SLRrs class

SLeeLa mirror of RRS -- Reasonable Responsibility Solidity (sllmrrs_ in artificial-intelligence/rrs/rrs.h). Three congruent models are chained feed-forward over a ternary signal: 1 = AFFIRM, 0 = ELIMINATE, 2 = POWER_ADD. Stage 1 is conjunctive (strict AND), stage 2 is the reasonable-responsibility prelude, stage 3 is the solidity culmination. RRS subtracts faith: any faith or trial premise is forced to ELIMINATE. It ships no weights; the ternary net is a tiny conjunctive accumulator.

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
SIGNAL_ELIMINATEstatic final int SIGNAL_ELIMINATE = 0No description in source.
SIGNAL_AFFIRMstatic final int SIGNAL_AFFIRM = 1No description in source.
SIGNAL_POWER_ADDstatic final int SIGNAL_POWER_ADD = 2No description in source.
STAGE_CONJUNCTIVEstatic final int STAGE_CONJUNCTIVE = 0sllmrrs_stage.
STAGE_RESPONSIBILITYstatic final int STAGE_RESPONSIBILITY = 1No description in source.
STAGE_SOLIDITYstatic final int STAGE_SOLIDITY = 2No description in source.
STAGE_COUNTstatic final int STAGE_COUNT = 3No description in source.
POTESTAS_NONEstatic final int POTESTAS_NONE = 0sllmrrs_potestas: graded warranted capacity-to-continue.
POTESTAS_PROVISIONALstatic final int POTESTAS_PROVISIONAL = 1No description in source.
POTESTAS_WARRANTEDstatic final int POTESTAS_WARRANTED = 2No description in source.
STATUS_OKstatic final int STATUS_OK = 0sllmrrs_status.
STATUS_INVALID_ARGUMENTstatic final int STATUS_INVALID_ARGUMENT = 1No description in source.
STATUS_FAITH_PREMISEstatic final int STATUS_FAITH_PREMISE = 2No description in source.
STATUS_NOT_SOLIDstatic final int STATUS_NOT_SOLID = 3No description in source.
STATUS_RESPONSIBILITY_UNMETstatic final int STATUS_RESPONSIBILITY_UNMET = 4No description in source.
STATUS_CAPACITYstatic final int STATUS_CAPACITY = 5No description in source.
accPowerint accPowerPer-stage accumulator (sllmrrs_accumulator).
accAffirmedint accAffirmedNo description in source.
accEliminatedint accEliminatedNo description in source.
accConjunctionboolean accConjunctionNo description in source.
totalPowerint totalPowerResult (sllmrrs_result) across the three stages.
potestasint potestasNo description in source.
solidboolean solidNo description in source.
faithEliminatedint faithEliminatedNo description in source.
stage0Powerint stage0PowerPer-stage power snapshot kept parallel to STAGE_COUNT.
stage1Affirmedint stage1AffirmedNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
effectiveSignalint effectiveSignal(int stage, int signal, boolean faithOrTrial,No description in source.
foldStagevoid foldStage(int stage, int[] signals, boolean[] faith,No description in source.
feedForwardint feedForward(int[] s1, boolean[] f1, boolean[] r1, int n1,No description in source.
getTotalPowerint getTotalPower()No description in source.
getPotestasint getPotestas()No description in source.
isSolidboolean isSolid()No description in source.
getFaithEliminatedint getFaithEliminated()No description in source.
signalNameString signalName(int signal)No description in source.
stageNameString stageName(int stage)No description in source.
potestasNameString potestasName(int p)No description in source.
statusStringString statusString(int status)No description in source.
availableboolean available()No description in source.

SLRrsSignalMonitor #sleela 3.0 (lib/rrs/SLRrsSignalMonitor.sleela)

SLRrsSignalMonitor class

SLeeLa mirror of the RRS signal monitor (sllmrm_ in artificial-intelligence/rrs/rrs-signal-monitor/rrs_signal_monitor.h). Read-only observability over the ternary 1/0/2 signal: it re-derives the effective per-premise signal exactly as the fold kernel does, records the elimination reason and running power, and reports per-signal and per-stage tallies with the potestas culmination. It never changes an RRS outcome.

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
REASON_NONEstatic final int REASON_NONE = 0sllmrm_reason: why the effective signal of a premise was an elimination.
REASON_SIGNALLED_NOstatic final int REASON_SIGNALLED_NO = 1No description in source.
REASON_FAITHstatic final int REASON_FAITH = 2No description in source.
REASON_RESPONSIBILITYstatic final int REASON_RESPONSIBILITY = 3No description in source.
STATUS_OKstatic final int STATUS_OK = 0sllmrm_status.
STATUS_INVALID_ARGUMENTstatic final int STATUS_INVALID_ARGUMENT = 1No description in source.
STATUS_CAPACITYstatic final int STATUS_CAPACITY = 2No description in source.
tallyAffirmint tallyAffirmTally (sllmrm_tally): counts per signal and running power.
tallyEliminateint tallyEliminateNo description in source.
tallyPowerAddint tallyPowerAddNo description in source.
byReasonSignalledNoint byReasonSignalledNoNo description in source.
byReasonFaithint byReasonFaithNo description in source.
byReasonResponsibilityint byReasonResponsibilityNo description in source.
totalPowerint totalPowerNo description in source.
potestasint potestasNo description in source.
solidboolean solidNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
resetTallyvoid resetTally()No description in source.
reasonForint reasonFor(int stage, int rawSignal, boolean faithOrTrial,No description in source.
observeStagevoid observeStage(int stage, int[] signals, boolean[] faith,No description in source.
recordOutcomevoid recordOutcome(SLRrs rrs)Record the final culmination read off the RRS result.
getTotalPowerint getTotalPower()No description in source.
getTallyAffirmint getTallyAffirm()No description in source.
getTallyEliminateint getTallyEliminate()No description in source.
getTallyPowerAddint getTallyPowerAdd()No description in source.
reasonNameString reasonName(int reason)No description in source.
statusStringString statusString(int status)No description in source.
availableboolean available()No description in source.