MCPcopy Create free account

hub / github.com/Paul-G2/copycat-js / functions

Functions381 in github.com/Paul-G2/copycat-js

↓ 30 callersMethod_addNode
* Adds a node to the Slipnet. * * @private
src/Slipnet.js:250
↓ 21 callersMethodspansString
* Indicates whether this Letter or Group constitutes the entire string. *
src/WorkspaceObject.js:151
↓ 18 callersMethodcoinFlip
* Returns true or false, with probabilities p and 1-p, respectively. * * @param {Number} p - The probability of a 'true' result. *
src/RandGen.js:48
↓ 16 callersMethod_addLink
* Adds a link to the Slipnet. * * @private
src/Slipnet.js:263
↓ 16 callersMethodcreate
* Creates a codelet given its name and constructor arguments. * * @param {string} name - The name of the codelet. * @param {Number}
src/Codelets/CodeletFactory.js:34
↓ 16 callersMethodpost
* Adds a new codelet to the coderack. If the coderack is full, * it will remove an old codelet to make room. *
src/Coderack.js:59
↓ 15 callersMethodweightedChoice
* Returns a random element from the given sequence, * with weighted probabilities. * * @param {Indexable} seq - The sequence to se
src/RandGen.js:75
↓ 13 callersMethodupdateStrength
* Updates the total strength value. *
src/Rule.js:131
↓ 12 callersMethod_addSymmetricLinks
* Links a pair of nodes bi-directionally. * * @private
src/Slipnet.js:275
↓ 12 callersMethodgetDescriptor
* Gets the descriptor of this object that matches a given * description type. * * @param {SlipNode} descriptionType - The descript
src/WorkspaceObject.js:230
↓ 12 callersMethodset
* Sets the temperature to the given value, unless we * are currently clamped, in which case the value is cached. * * @param {Number
src/Temperature.js:51
↓ 11 callersMethodgetAdjustedProb
* Ajusts the given probability value based on the current temperature. * If the temperature is 0, no adjustment is made. Otherwise, values
src/Temperature.js:104
↓ 11 callersMethodgetRelatedNode
* Returns the node that is linked to this one * via a link that is labeled by the given relation. * If no such node is found, returns nul
src/SlipNode.js:310
↓ 11 callersMethodgetUrgencyBin
* Returns a quantized measure of urgency. * * @param {Number} urgency - The input urgency.
src/Codelets/CodeletUtils.js:20
↓ 11 callersMethodrelevantDescriptions
* Gets the fully-active descriptions of the object. *
src/WorkspaceObject.js:196
↓ 10 callersMethodbreak
* Removes the Rule from the workspace. *
src/Rule.js:69
↓ 9 callersMethodchooseUnmodifiedObject
* Returns a random object from a given list, that is * not from the modified string. The probability of * choosing an object is weighted by
src/Codelets/CodeletUtils.js:39
↓ 8 callersMethod_setState
* Sets our state and notifys listeners. * @private *
src/Copycat.js:254
↓ 8 callersMethodbuild
* Adds the Rule to the workspace, replacing any pre-existing one. *
src/Rule.js:55
↓ 8 callersMethodgetAdjustedValue
* Adjusts the given value according to the current temperature. * (The value is raised to a power that decreases with temperature.) *
src/Temperature.js:90
↓ 8 callersMethodgetStringGraphic
* Gets the StringGraphic object for a specified string. * * @param {WorkspaceString} wstring - The string to search on.
src/UI/WorkspaceUi.js:76
↓ 8 callersMethodhasDescriptor
* Indicates whether this object is described by a given descriptor. * * @param {SlipNode} sought - The descriptor to test against.
src/WorkspaceObject.js:218
↓ 8 callersMethodisDistinguishing
* Indicates whether this object's descriptors uniquely identify its objects. *
src/ConceptMapping.js:122
↓ 8 callersMethodisFullyActive
* Indicates whether this node is fully active. *
src/SlipNode.js:144
↓ 8 callersMethodreset
* Resets copycat to its initial state *
src/Copycat.js:186
↓ 7 callersMethodvalue
* Returns the current temperature value. *
src/Temperature.js:40
↓ 6 callersMethodapplySlippages
* Iterates through a given set of ConceptMappings, applies the first one * that pertains to to this node, and returns the resulting slipped node
src/SlipNode.js:355
↓ 6 callersMethodflash
* Flashes a graphic a specified number of times. * * @param {Graphic} graphic - The graphic to flash. * @param {Number} flashCount
src/UI/Flasher.js:46
↓ 6 callersMethodflashGrope
* Flashes a potential-Bond graphic. * * @param {Correspondence} bond * @param {Number} count
src/UI/BondsGraphic.js:138
↓ 6 callersMethodgetBondCategory
* Returns the label of the downstream link between this node and * a given one, or null if there is no such link. * * @param {Slip
src/SlipNode.js:332
↓ 6 callersMethodgetChildGraphic
* Gets the LetterGraphic or GroupGraphic associated with * a given Letter or Group. * * @param {Letter|Group} wrappedObject - The s
src/UI/StringGraphic.js:63
↓ 6 callersMethodproposeGroup
* Posts a group-strength-tester codelet for a Group with * the given attributes. *
src/Coderack.js:364
↓ 6 callersMethodwarn
* Reports a warning message.
src/ConsoleReporter.js:33
↓ 5 callersMethod_sameReferents
* Utility method that indicates whether two Bonds * refer to the same source and destination objects. * @private
src/UI/BondsGraphic.js:36
↓ 5 callersMethod_sameReferents
* Utility method that indicates whether two Groups * refer to the same objects. * @private
src/UI/GroupsGraphic.js:35
↓ 5 callersMethod_sameReferents
* Utility method that indicates whether two Correspondences * refer to the same initial and target objects. * @private
src/UI/CorrsGraphic.js:35
↓ 5 callersMethodcanSlip
* Indicates whether this mapping can actually produce a slippage. *
src/ConceptMapping.js:112
↓ 5 callersMethodcheckInputStrings
* Makes sure that all input strings are valid. * @private *
src/UI/CopycatUi.js:100
↓ 5 callersMethodfightItOut
* Pits the given structure against the given list of incompatible * structures, deciding probabilistically on a winner. * * @param {Wo
src/Codelets/CodeletUtils.js:186
↓ 5 callersMethodflashProposed
* Flashes a proposed-Bond graphic. * * @param {Bond} bond * @param {Number} count
src/UI/BondsGraphic.js:123
↓ 5 callersMethodgetMappings
* Gets a list of ConceptMappings between two given objects, * consistent with the given descriptions * * @param {WorkspaceObject} i
src/ConceptMapping.js:271
↓ 5 callersMethodletterSpan
* Returns The number of letters in this object. *
src/WorkspaceObject.js:141
↓ 5 callersMethodupdate
* Decays, spreads, and updates all the node activations. * * @param {RandGen} randGen - A randomness generator. * @param {Boolean}
src/Slipnet.js:58
↓ 4 callersMethod_getCorrGraphic
* Gets or creates the graphic for a given correspondence. * @private
src/UI/CorrsGraphic.js:123
↓ 4 callersMethodchoice
* Returns a random element from a given sequence. * * @param {Indexable} seq - The sequence to select from. * @returns A random ele
src/RandGen.js:60
↓ 4 callersMethoddegreeOfAssociation
* Returns a measure of the shortness of this link, or * of its label if it has one. *
src/SlipLink.js:59
↓ 4 callersMethodflippedVersion
* Creates a Bond like this one, except that the source and * destination are swapped.
src/Bond.js:107
↓ 4 callersMethodgetScoutSource
* Randomly selects an object from the initial or target string that * matches the given criterion. * * @param {Copycat} ctx - The Copy
src/Codelets/CodeletUtils.js:70
↓ 4 callersMethodgetSlippableMappings
* Gets all the concept mappings in the workspace that permit slippage. *
src/Workspace.js:132
↓ 4 callersMethodisDistinguishingDescriptor
* Indicates whether the given descriptor uniquely identifies this Group * among all Groups in the parent string. * * @param {SlipNo
src/Group.js:212
↓ 4 callersMethodisWithin
* Indicates whether the object is contained within another object. * * @param {WorkspaceObject} other - The object to test against.
src/WorkspaceObject.js:162
↓ 4 callersMethodproposeBond
* Posts a bond-strength-tester codelet for a bond with * the given attributes. *
src/Coderack.js:296
↓ 4 callersMethodredraw
* Updates the UI. *
src/UI/SlipnetUi.js:70
↓ 3 callersMethod_addCategoryInstanceLinks
* Creates links between an (instance, category) pair. * * @private
src/Slipnet.js:287
↓ 3 callersMethod_codeletLoop
* Runs the next codelet and schedules a subsequent one. * @private
src/Copycat.js:206
↓ 3 callersMethod_getBondGraphic
* Gets or creates the graphic for a given bond. * @private
src/UI/BondsGraphic.js:100
↓ 3 callersMethod_getGroupGraphic
* Gets or creates the graphic for a given group. * @private
src/UI/GroupsGraphic.js:99
↓ 3 callersMethodactivate
* Sets the activation buffer of all the Rule's nodes to 100. *
src/Rule.js:83
↓ 3 callersMethodbondDegreeOfAssociation
* Returns the degree of association that bonds of this * node's category are considered to have. *
src/SlipNode.js:261
↓ 3 callersMethodchooseBondFacet
* Randomly selects a bond facet that is common to the * given source and destination objects. * * @param {Copycat} ctx - The Copycat
src/Codelets/CodeletUtils.js:124
↓ 3 callersMethodclearTable
* Clears the results table. *
src/UI/BatchmodeUi.js:275
↓ 3 callersMethodgetEquivalentGroup
* Seeks a Group in the string that matches a given group. * * @param {Group} sought - The Group to match.
src/WorkspaceString.js:112
↓ 3 callersMethodisRelevant
* Indicates whether this mapping's descriptions are fully active. *
src/ConceptMapping.js:195
↓ 3 callersMethodreset
* Resets all nodes to their initial states. *
src/Slipnet.js:41
↓ 3 callersMethodsameAs
* Indicates whether this Rule is the same (by value) as another one. * * @param {Rule} other - The Rule to compare with.
src/Rule.js:105
↓ 2 callersMethod_addTableRow
* Adds a new row to the results table. *
src/UI/BatchmodeUi.js:247
↓ 2 callersMethod_createChildGraphics
* Creates the child graphics objects. * @private *
src/UI/StringGraphic.js:45
↓ 2 callersMethod_degreeOfAssociation
* Returns a measure of the degree of association between the two * descriptors. * * @private
src/ConceptMapping.js:92
↓ 2 callersMethod_getEventCoordinates
* Gets the coordinates from a given event. * @private * * @param {Event} event - Event info. *
src/UI/Dialog.js:217
↓ 2 callersMethod_hasStringSpanningGroups
* Utility method that indicates whether a Correspondences * is between two string-spanning groups. * @private
src/UI/CorrsGraphic.js:45
↓ 2 callersMethod_howManyToPost
* Computes the number of codelet of a given type to post. * * @private
src/Coderack.js:242
↓ 2 callersMethod_localSupport
* Returns a measure of how much this group is supported * by other similar Groups in the parent string. * * @private
src/Group.js:261
↓ 2 callersMethod_numberOfLocalSupportingGroups
* Gets the number of groups in the parent string that are outside * this group but have the same category and direction as this group. *
src/Group.js:279
↓ 2 callersMethod_probabilityOfPosting
* Computes the probabilty of posting a given codelet type. * * @private
src/Coderack.js:212
↓ 2 callersMethod_sameNeighbors
* Checks whether two bonds have the same neighbors. * @private *
src/Codelets/BondBuilder.js:97
↓ 2 callersMethod_updateStringFromWorkspace
* Check whether the wrapped string has changed. * @private *
src/UI/StringGraphic.js:107
↓ 2 callersMethodbreak
* Removes the Correspondence from its assigned objects and from the * workspace.
src/Correspondence.js:104
↓ 2 callersMethodcalcTemperature
* Updates the string unhappiness values and then uses them to * calculate the current workspace temperature. *
src/Workspace.js:105
↓ 2 callersMethodcategory
* Returns the category that this node belongs to, if any. * For example, "leftmost" belongs to the string-position category. * (In the
src/SlipNode.js:238
↓ 2 callersMethodchooseAndRunCodelet
* Runs a randomly chosen codelet from the coderack. * The choice is weighted by urgency and temperature. * If the coderack is empty, it wi
src/Coderack.js:77
↓ 2 callersMethodchooseNeighbor
* Returns a random nearest-neighbor of a given object. * * @param {Copycat} ctx - The Copycat instance. * @param {WorkspaceObject} sou
src/Codelets/CodeletUtils.js:54
↓ 2 callersMethodclampHigh
* Sets the node's activation to 100, and clamps it there. *
src/SlipNode.js:154
↓ 2 callersMethoddisplayMessage
* Displays a message beneath the input widgets. *
src/UI/InputUi.js:153
↓ 2 callersMethodgetCodeletRunProbabilities
* Calculates the probability of running each codelet, based * on its urgency and the current temperature. *
src/Coderack.js:117
↓ 2 callersMethodgetInputStrings
* Returns the strings that are currently entered in the * input fields. *
src/UI/InputUi.js:136
↓ 2 callersMethodhide
* Hides the dialog. *
src/UI/Dialog.js:119
↓ 2 callersMethodisBeside
* Indicates whether this object is beside another object. *
src/WorkspaceObject.js:183
↓ 2 callersMethodisClampedHigh
* Indicates whether this node's activation is locked at 100. *
src/SlipNode.js:175
↓ 2 callersMethodisIdle
* Indicated whether the animation loop is idle. *
src/UI/Flasher.js:64
↓ 2 callersMethodisIncompatibleWith
* Indicates whether this mapping is incompatible with another one. * * @param {ConceptMapping} other - The mapping to check.
src/ConceptMapping.js:219
↓ 2 callersMethodisMiddleObject
* Indicates whether this object is the middle object in its string. *
src/WorkspaceObject.js:254
↓ 2 callersMethodisRelatedTo
* Indicates whether either of this mapping's descriptors is * linked to the corresponding descriptor in another mapping. * * @par
src/ConceptMapping.js:207
↓ 2 callersMethodletterDistance
* Returns the distance, in nmber of letters, between this object * and another. * * @param {WorkspaceObject} other - The object to
src/WorkspaceObject.js:288
↓ 2 callersMethodpause
* Pauses copycat. *
src/Copycat.js:137
↓ 2 callersMethodproposeCorrespondence
* Posts a correspondence-strength-tester codelet for a Correspondence with * the given attributes. *
src/Coderack.js:337
↓ 2 callersMethodproposeDescription
* Posts a description-strength-tester codelet for a Description with * the given attributes. *
src/Coderack.js:318
↓ 2 callersMethodproposeRule
* Posts a rule-strength-tester codelet for a Rule with * the given attributes. *
src/Coderack.js:392
↓ 2 callersMethodredraw
* Updates the UI. *
src/UI/WorkspaceUi.js:113
↓ 2 callersMethodredraw
* Updates the UI. *
src/UI/WorkspaceHeaderUi.js:241
↓ 2 callersMethodredraw
* Updates the UI. *
src/UI/CoderackUi.js:69
next →1–100 of 381, ranked by callers