CpgRelay

CpgRelay — An immediate transfer object

Synopsis


#include <cpg-network/cpg-relay.h>

                    CpgRelayClass;
                    CpgRelay;
CpgRelay *          cpg_relay_new                       (const gchar *id);

Object Hierarchy

  GObject
   +----CpgObject
         +----CpgRelay

Description

When using a CpgState and a CpgLink to transfer information, each transfer will take exactly one time step. This can be inconvenient when data should be transfered immediately within one timestep, over more than one state. To address this problem, a CpgRelay can be used instead. All links connected to a CpgRelay will transfer information immediately in a separate phase, before the standard simulation update phase, at each timestep.

Details

CpgRelayClass

typedef struct {
} CpgRelayClass;


CpgRelay

typedef struct _CpgRelay CpgRelay;


cpg_relay_new ()

CpgRelay *          cpg_relay_new                       (const gchar *id);

Creates a new CpgRelay object

id :

the relay id

Returns :

a new CpgRelay object