Class: ABM.Links

Defined in: src/links.coffee
Inherits: ABM.BreedSet

Overview

Links is a subclass of BreedSet which stores instances of Link.

Variables Summary

Variable inherited from ABM.BreedSet

_push

Instance Method Summary

Inherited Method Summary

Methods inherited from ABM.BreedSet

#create #push #remove #pop #reBreed .from #setDefault #exclude #draw #show #hide #inRadius #inCone #toFixed #any #empty #clear #clone #first #last #select #reject #sample #contains #removeItem #shuffle #min #max #sum #average #median #histogram #sort #uniq #flatten #concat #normalize #normalizeInt #ask #with #getProperty #setProperty #other

Constructor Details

# (void) constructor()

Constructor: super creates the empty Set instance and installs the agentClass (breed) variable shared by all the Links in this set.

Instance Method Details

# (void) create(from, toAgentOrAgents, initialize = function() {})

Factory: Add 1 or more links from the from agent to the to agent(s) which can be a single agent or an array of agents. The optional init proc is called on the new link after inserting in the agentSet.

Returns array of new links.

# (void) clear()

Remove all links from set via link.die()

# (void) nodesWithDups()

Return all the nodes in this agentset, with duplicates included. If 4 links have the same endpoint, it will appear 4 times.

# (void) nodes()

Returns all the nodes in this agentset with duplicates removed.

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: