bowen-xu / PyNARS

MIT License
26 stars 8 forks source link

[Technical Report] Channel #62

Open ccrock4t opened 9 months ago

ccrock4t commented 9 months ago

Technical Report

Channel is an abstract class that is the super-class of all the channels.

• The class contains a unique term as a channel ID, and Buffers for input and output tasks, plus related information, such as a table of all channel- specific output operations. • The input buffer of the channel pre-processes the input tasks by convert- ing channel-specific format into Narsese, and carrying out the standard buffer functions. The user-specified attributes (truth-value and budget- value) may be adjusted by the system according to channel-specific pa- rameters. • The output buffer of the channel decomposes compound operations, con- verts them in channel-specific way, then sends them to the receiver at the other end of the connection. All the executable external operations on each Channel will be registered in an operation list, and the channel ID will be the first argument of the operation, as the role played by SELF in mental operations. • Every channel has a GUI that displays the input/output flows, with com- mands (at least pause, resume, save, load ), which can be turned on/off at the run time.

More Info

Currently, Channel implements Buffer. Instead, it should be an Abstract class, and it should contain 2 buffers (1 for input tasks, 1 for output tasks)

ccrock4t commented 5 months ago

Related to #10 and #98