00001
00006 #ifndef _LINK_H
00007 #define _LINK_H
00008
00009 #include "node.h"
00010
00011 class link {
00012 public:
00013 complex Y;
00014 complex I;
00015 double B;
00016 OBJECT* from;
00017 OBJECT* to;
00018 double turns_ratio;
00019
00020 complex Yeff;
00021 complex Yc;
00022 double c;
00023
00024 public:
00025 static CLASS *oclass;
00026 static link *defaults;
00027 static CLASS *pclass;
00028 public:
00029 link(MODULE *mod);
00030 int create();
00031 TIMESTAMP sync(TIMESTAMP t0);
00032 int init(node *parent);
00033 void apply_dV(OBJECT *source, complex dV);
00034 };
00035
00036 GLOBAL CLASS *link_class INIT(NULL);
00037 GLOBAL OBJECT *last_link INIT(NULL);
00038
00039 #endif