Skip to content

Latest commit

 

History

History
106 lines (68 loc) · 2.26 KB

link.md

File metadata and controls

106 lines (68 loc) · 2.26 KB

Utilities
Parameters
Experiment ━━ Genus ━━ Species ━━ Organism ━━ Genotype ━━ Chromosome ━━ Node
                                                                ┗━━━━ Phenotype              ┗━━━━━ Link

Link

A Link relays weighted signals between a source and a target Node.
 

Properties

unsigned long int key

A unique number which specifies the Link's position relative to its neighboring Nodes.
 

unsigned int tag

A unique number which specifies the Link's identity within a Genus.
 

element_state state

Specifies whether the Link is ENABLED or DISABLED.
 

link_role role

Labels the Link's role as FORWARD, BIASING, RECURRENT or LOOPED.
 

Node* source

Points to the Node from which the Link's input signal originates.
 

Node* target

Points to the Node which receives the Link's output signal.
 

double weight

The weight applied to the Link's output signal.
 

Constructors

Link(unsigned long int key_, unsigned int tag_, element_state state_, link_role role_, Node* source_, Node* target_, double weight_)

Constructs a Link instance with properties given by the input arguments.
 

Link(Link* link_)

Constructs a shallow copy of the Link referenced by the input argument.
 

Methods

void engage()

Prompts the Link to relay a signal to and engage its target Node.
 

Edge graph()

Generates an Edge encapsulating the Link's properties.