Home › Packages › idea

Package idea

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

IdeaCanvas #sleela 2.5 (lib/idea/IdeaCanvas.sleela)

IdeaCanvas 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.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
PRESENT_HZstatic final double PRESENT_HZ = 60.0---- Canvas Hz (the answer: 60 present / 120 simulate) ---------------
SIM_HZstatic final double SIM_HZ = 120.0No description in source.
Wstatic final int W = 720---- geometry --------------------------------------------------------
Hstatic final int H = 480No description in source.
CHAT_Hstatic final int CHAT_H = 150height of the bottom chat pane
PADstatic final double PAD = 16.0No description in source.
RADIUSstatic final double RADIUS = 18.0careful curvature on every card
simStepsint simSteps = 0---- shared State (the State IS the System) -------------------------- 120 Hz steps taken (forward Time)
secondsdouble seconds = 0.0simulated seconds of the Series elapsed
totalSecsint totalSecs = 8280023h, as the Author payload encodes
decisionsint decisions = 0No description in source.
maxDecint maxDec = 6No description in source.
presentedString presented = "LOADING"No description in source.
clockSLFrameClock clockframe clock: paces the 120 Hz fixed-step simulation across 60 Hz frames

Methods — the actions this unit can perform.

MethodSignatureWhat it does
buildThemevoid buildTheme()No description in source.
simStepvoid simStep()---- one 120 Hz simulation step (forward, linear; Time is ultimate) --
drawFramevoid drawFrame(SLDrawContext dc)---- the per-frame draw routine (presented at 60 Hz) ----------------- dc is bound by the VM to this Canvas View's double-buffered surface each frame (the proven draw-handler signature: a single SLDrawContext).
drawChatPanevoid drawChatPane(SLDrawContext dc, int x, int y, int w, int h)A rounded chat card: soft fill, a hairline accent border for curvature definition, a message area, and a rounded input affordance.
mainvoid main()---- entry point -----------------------------------------------------

IdeaSystem #sleela 2.5 (lib/idea/IdeaSystem.sleela)

IdeaSystem 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.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
sourceUrlString sourceUrl = "https://github.com/mearvk/Senior.Senate.Attorney.E44Hrs/wiki/US-Title-Brands"---- shared State (thread-safe globals) ---------------------------- The System is prevaricated upon its State; these fields ARE the System.
maxHoursint maxHours = 30design goal: <= 30 hours of content
maxDecisionsint maxDecisions = 9design goal: <= 9 seemly, important decisions
elapsedint elapsed = 0forward Time, in simulated hours
decisionsint decisions = 0seemly decisions reached so far
stateString state = "LOADING"No description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
presentvoid present()---- organization: present what is present/capable in the State ----
chooseResourceint chooseResource()---- 2. choose the part of the internet to receive the signal from -- The signal is an Author-controlled hex code from github.com. best-of* weighs data/decisions/costs/versions/architecture and picks the route.
declareModelvoid declareModel()---- 3. declare the AI-driven solution Series ---------------------- The native AI VM bridge (ai* built-ins) is a separate API layer and is NOT part of the verified core semantic set in this compiler build, so the runnable models the AI objectives with core-verified constructs: conducted-method catalog lookups and the Constitution limits. The native /idea C/C++ core carries the actual AI objective structures.
advancevoid advance()---- 4. let Time progress; present the State at each hour ----------- Time is ultimate and company to the Series. It may SEEM to loop/retry but it is consistent in Time -- a forward, linear Series.
mainvoid main()No description in source.

SLIdeaCanvas #sleela 2.5 (lib/idea/SLIdeaCanvas.sleela)

SLIdeaCanvas class

Defines SLIdeaCanvas — the SLeeLa binding of the Idea System(TM)

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
OKstatic final int OK = 0---- status ordinals (mirror idea_canvas_status) ----
INVALIDstatic final int INVALID = -1No description in source.
OOMstatic final int OOM = -2No description in source.
NO_RENDERERstatic final int NO_RENDERER = -3No description in source.
GL_ERRORstatic final int GL_ERROR = -4No description in source.
PRESENT_HZstatic final double PRESENT_HZ = 60.0---- Hz contract (mirror idea_canvas.h) ----
SIM_HZstatic final double SIM_HZ = 120.0No description in source.
canvasint canvasVM-local canvas handle (-1 = none)

Methods — the actions this unit can perform.

MethodSignatureWhat it does
createboolean create(int cols, int rows)Create a cols x rows grid of vertices (allocates the contiguous block on the native side). Does NOT open a window. Returns true on success.
handleint handle()No description in source.
validboolean valid()No description in source.
destroyvoid destroy()No description in source.
colsint cols()No description in source.
rowsint rows()No description in source.
countint count()No description in source.
setParamsvoid setParams(double decay, double flowGain, double hueBase, double coupling)Set the water-like flow parameters: multiplicative decay per second, flow gain for the colour-predictive hue, base hue (205 ~ water), and the per-step neighbour diffusion coefficient (small, e.g. 0.06).
exciteint excite(int col, int row, double amount)Inject energy at a grid cell (where a signal "importance" lands) so a ripple propagates on subsequent steps.
stepint step(double dt)Advance the simulation by ONE fixed timestep (dt seconds, normally 1/SIM_HZ). Parallelised across the native CPU; returns a status ordinal.
advanceint advance(double frameDtSeconds)Drain a fixed-step accumulator: pass the real per-frame delta and the number of due 120 Hz steps are run on the native CPU. Returns the step count. The accumulator is held on the native side for this canvas.
timestepdouble timestep()The fixed simulation timestep in seconds (1 / SIM_HZ).
intensityAtdouble intensityAt(int col, int row)Read one vertex's intensity (0..1) — e.g. to drive a SLeeLa-side readout without owning the native block.
hasRendererboolean hasRenderer()True if the module was built with the OpenGL render layer.
openWindowint openWindow(int width, int height, String title)Open a window + GL renderer sized width x height. Returns a status ordinal; NO_RENDERER if the module was built without GL (then run headless via step).
shouldCloseboolean shouldClose()True once the window has been asked to close.
presentint present()Present one frame (copy the block to the mapped buffer, draw, swap, poll). Call at the present rate (60 Hz). NO_RENDERER when the GL layer is absent.
runint run(int width, int height, String title)The full native loop: open a window, then advance at 120 Hz and present at ~60 Hz until the window closes. A program that just wants "run the canvas on the native CPU/GPU" calls this. NO_RENDERER if GL is absent.