Package softlisten
SLSoftOffer #sleela 3.0 (lib/softlisten/SLSoftOffer.sleela)
SLSoftOffer class
Defines SLSoftOffer — a contribution someone has OFFERED to the standing system but that the consuming model has not agreed to yet. An offer is plain data: who offered it, at what trust, what it would do (a document edit, a module, a vertical-integration tier), the tokens it carries, the ties it claims to other things, and the findings the soft listeners have attached. It changes nothing until it is agreed.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
id | int id | No description in source. |
offerer | String offerer | No description in source. |
trust | int trust | No description in source. |
kind | int kind | No description in source. |
state | int state | No description in source. |
line | int line | document offers |
text | String text | No description in source. |
expectOld | String expectOld | what the offerer saw on that line (replace and delete), for conflict checks |
typeId | String typeId | module and tier offers |
instName | String instName | No description in source. |
digest | String digest | No description in source. |
kindOrd | int kindOrd | No description in source. |
port | SLObserverPort port | No description in source. |
tokens | String[] tokens | tokens (the host splits the text) and claimed ties |
tokenCount | int tokenCount | No description in source. |
tokensClipped | int tokensClipped | No description in source. |
ties | String[] ties | No description in source. |
tieCount | int tieCount | No description in source. |
tiesClipped | int tiesClipped | No description in source. |
fListener | String[] fListener | findings attached by soft listeners |
fSeverity | int[] fSeverity | No description in source. |
fCode | String[] fCode | No description in source. |
fDetail | String[] fDetail | No description in source. |
fCount | int fCount | No description in source. |
fLost | int fLost | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int offerId, String who, int trustLevel, int what) | No description in source. |
getId | int getId() | No description in source. |
getOfferer | String getOfferer() | No description in source. |
getTrust | int getTrust() | No description in source. |
getKind | int getKind() | No description in source. |
getState | int getState() | No description in source. |
setState | void setState(int s) | No description in source. |
isOpen | boolean isOpen() | No description in source. |
isDocumentOffer | boolean isDocumentOffer() | No description in source. |
aimAtLine | void aimAtLine(int atLine, String newText, String seenOld) | No description in source. |
aimAtModule | void aimAtModule(String type, String name, String digestPresented, SLObserverPort p) | No description in source. |
aimAtTier | void aimAtTier(String name, String label, int kindOrdinal) | No description in source. |
getLine | int getLine() | No description in source. |
getText | String getText() | No description in source. |
getExpectOld | String getExpectOld() | No description in source. |
getTypeId | String getTypeId() | No description in source. |
getInstName | String getInstName() | No description in source. |
getDigest | String getDigest() | No description in source. |
getKindOrd | int getKindOrd() | No description in source. |
getPort | SLObserverPort getPort() | No description in source. |
addToken | void addToken(String t) | Up to 8 tokens and 8 ties are kept; more are counted as clipped. |
addTie | void addTie(String t) | No description in source. |
tokenTotal | int tokenTotal() | No description in source. |
tokenAt | String tokenAt(int i) | No description in source. |
clippedTokens | int clippedTokens() | No description in source. |
tieTotal | int tieTotal() | No description in source. |
tieAt | String tieAt(int i) | No description in source. |
clippedTies | int clippedTies() | No description in source. |
clearFindings | void clearFindings() | No description in source. |
addFinding | void addFinding(String listener, int severity, String code, String detail) | No description in source. |
findingTotal | int findingTotal() | No description in source. |
findingsLost | int findingsLost() | No description in source. |
findingListener | String findingListener(int i) | No description in source. |
findingSeverity | int findingSeverity(int i) | No description in source. |
findingCode | String findingCode(int i) | No description in source. |
findingDetail | String findingDetail(int i) | No description in source. |
worst | int worst() | The worst severity found, or -1 with no findings. A lost finding counts as a block: if the record overflowed, the offer is not trusted. |
hasCode | boolean hasCode(String code) | No description in source. |
countAt | int countAt(int severity) | No description in source. |
SLSoftOfferDesk #sleela 3.0 (lib/softlisten/SLSoftOfferDesk.sleela)
SLSoftOfferDesk class
Defines SLSoftOfferDesk — where soft offers wait. People offer
Malice class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
name | String name | No description in source. |
state | int state | No description in source. |
level | int level | No description in source. |
issued | int issued | No description in source. |
denyTokens | String[] denyTokens | No description in source. |
tokenTotal | int tokenTotal | No description in source. |
denyLines | String[] denyLines | No description in source. |
lineTotal | int lineTotal | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
attach | void attach() | No description in source. |
addToken | boolean addToken(String t) | No description in source. |
addLine | boolean addLine(String t) | No description in source. |
denyTotal | int denyTotal() | No description in source. |
sev | int sev(int base) | No description in source. |
assess | int assess(SLSoftOffer o, SLSoftOffer[] all, int count) | No description in source. |
Ties class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
name | String name | No description in source. |
state | int state | No description in source. |
level | int level | No description in source. |
issued | int issued | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
attach | void attach() | No description in source. |
sev | int sev(int base) | No description in source. |
anchored | boolean anchored(String t, String[] anchors, int anchorCount) | No description in source. |
assess | int assess(SLSoftOffer o, SLHotLinker linker, String[] anchors, int anchorCount) | No description in source. |
Loader class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
name | String name | No description in source. |
state | int state | No description in source. |
level | int level | No description in source. |
issued | int issued | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
attach | void attach() | No description in source. |
sev | int sev(int base) | No description in source. |
assess | int assess(SLSoftOffer o, SLHotLinker linker, SLHotLinkIntegration vi) | No description in source. |
softlisten-demo #sleela 3.0 (lib/softlisten/softlisten-demo.sleela)
SoftListenDemo class
Runnable, self-checking demonstrator for soft offers and soft listeners. Offers wait at a desk, unagreed, while the Malice, Ties and Loader listeners ascertain them: deny-listed lines and tokens, false and dead and undeclared ties, loader issues from a dry run of the hot-link linker, and conflicts with the live document. Shows HOLD findings that clear when the world changes, BLOCK findings that never do, the consuming model agreeing through the observer and the linker, and the soft listeners themselves being paused, altered and retired (failing closed). Prints PASS or FAIL per check and a tally.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
passed | int passed | No description in source. |
failed | int failed | No description in source. |
doc | SLObserverDocument doc | No description in source. |
obs | SLDocumentObserver obs | No description in source. |
linker | SLHotLinker linker | No description in source. |
vi | SLHotLinkIntegration vi | No description in source. |
desk | SLSoftOfferDesk desk | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
check | void check(String label, boolean ok) | No description in source. |
banner | void banner(String t) | No description in source. |
settle | void settle() | Host cycle: deliver, let the desk listen, route. |
worstOf | int worstOf(int id) | No description in source. |
has | boolean has(int id, String code) | No description in source. |
stateOf | int stateOf(int id) | No description in source. |
lineOffer | int lineOffer(String who, int trust, int kind, int line, String text, String seenOld, String token) | A one-token document offer. kind: 0 insert, 1 replace, 2 delete. |
main | void main() | No description in source. |