network/link.h

00001 // link.h
00002 
00003 #ifndef _LINK_H
00004 #define _LINK_H
00005 
00006 #include "node.h"
00007 
00008 class link {
00009 public:
00010     complex Y; /* impedance, per unit */
00011     complex I; /* current, per unit */
00012     double B; /* line charging, per unit */
00013     OBJECT* from;   /* from node */
00014     OBJECT* to;     /* to node */
00015     double turns_ratio; /* off-nominal turns ratio */
00016 
00017 public:
00018     static CLASS *oclass;
00019     static link *defaults;
00020     static CLASS *pclass;
00021 public:
00022     link(MODULE *mod);
00023     int create();
00024     TIMESTAMP sync(TIMESTAMP t0);
00025     int init(node *parent);
00026 };
00027 
00028 GLOBAL CLASS *link_class INIT(NULL);
00029 GLOBAL OBJECT *last_link INIT(NULL);
00030 
00031 #endif

GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy