Utilities
Parameters
Experiment ━━ Genus ━━ Species ━━ Organism ━━ Genotype ━━ Chromosome ━━ Node
┗━━━━ Phenotype
┗━━━━━ Link
A Link
relays weighted signals between a source and a target Node
.
unsigned long int key
A unique number which specifies the Link
's position relative to its neighboring Node
s.
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.
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.
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.