Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

BiNode Class Reference

Bidirectionally linked graph node. More...

#include <neuron.h>

Inheritance diagram for BiNode:

Neuron List of all members.

Public Methods

void addIncoming (Connection *conn)
void addOutgoing (Connection *conn)
void connectFrom (const BiNode &source)
bool connectedFrom (const BiNode &source) const
void disconnectFrom (const Connection &incoming)
void disconnectTo (const Connection &outgoing)
void disconnectFrom (const BiNode &source)
void disconnectTo (const BiNode &target)
void disconnectAll ()
int incomings () const
int outgoings () const
virtual void copy (const BiNode &orig)
virtual void check (int netSize) const

Detailed Description

Bidirectionally linked graph node.

Definition at line 94 of file neuron.h.


Member Function Documentation

void addIncoming Connection   conn [inline]
 

Adds an incoming connection.

It is assumed that the source of the connection is a valid neuron.

Definition at line 104 of file neuron.h.

void addOutgoing Connection   conn [inline]
 

Adds an outgoing connection.

It is assumed that the target of the connection is a valid neuron.

Definition at line 109 of file neuron.h.

void check int    netSize const [virtual]
 

Implementation for Object.

Reimplemented in Neuron.

Definition at line 203 of file neuron.cc.

References Connection::check(), and incomings().

Referenced by Neuron::check().

bool connectedFrom const BiNode &    source const
 

Returns whether or net the neuron has an incoming connection from given neuron.

Definition at line 97 of file neuron.cc.

void connectFrom const BiNode &    source
 

Adds a connection to the neuron from neuron with id s.

Definition at line 90 of file neuron.cc.

void copy const BiNode &    orig [virtual]
 

Standard copy operator.

Definition at line 74 of file neuron.cc.

References mIncoming, and mOutgoing.

Referenced by Neuron::copy().

void disconnectAll  
 

Removes ALL incoming and outgoing connections to the neuron.

Definition at line 166 of file neuron.cc.

void disconnectFrom const BiNode &    source
 

Disconnects any incoming connection from the given neuron.

Definition at line 136 of file neuron.cc.

void disconnectFrom const Connection   incoming
 

Disconnects given incoming connection.

Definition at line 106 of file neuron.cc.

References Connection::source().

void disconnectTo const BiNode &    target
 

Disconnects any outgoing connection to the given neuron.

Definition at line 150 of file neuron.cc.

void disconnectTo const Connection   outgoing
 

Disconnects given outgoing connection.

Definition at line 120 of file neuron.cc.

int incomings   const [inline]
 

Returns the number of incoming connections to the neuron.

Definition at line 149 of file neuron.h.

Referenced by check(), ANNetwork::drawEPS(), Neuron::init(), and Neuron::transfer().

int outgoings   const [inline]
 

Returns the number of outgoing connections from the neuron.

Definition at line 152 of file neuron.h.


The documentation for this class was generated from the following files:
Generated on Thu Feb 10 20:06:45 2005 for Inanna by doxygen1.2.18