00001
00002
00003
00004 #ifndef _OVERHEADLINECONDUCTOR_H
00005 #define _OVERHEADLINECONDUCTOR_H
00006
00007 #include "powerflow.h"
00008 #include "line.h"
00009
00010 class overhead_line_conductor : public powerflow_library
00011 {
00012 public:
00013 static CLASS *pclass;
00014 static CLASS *oclass;
00015
00016
00017 inline const char *get_name(void) const { static char tmp[64]; OBJECT *obj=OBJECTHDR(this); return obj->name?obj->name:(sprintf(tmp,"%s:%d",obj->oclass->name,obj->id)>0?tmp:"(unknown)");};
00018
00019 inline unsigned int get_id(void) const {return OBJECTHDR(this)->id;};
00020
00021 public:
00022 double geometric_mean_radius;
00023 double resistance;
00024 double cable_diameter;
00025 LINERATINGS winter, summer;
00026
00027 overhead_line_conductor(MODULE *mod);
00028 inline overhead_line_conductor(CLASS *cl=oclass):powerflow_library(cl){};
00029 int create(void);
00030 int init(OBJECT *parent);
00031 int isa(char *classname);
00032 };
00033
00034 #endif