00001
00002
00003 #ifndef _LINE_H
00004 #define _LINE_H
00005
00006 #define hasphase(ph) (SET_HAS(phase,PHASE##ph) | (phase_orig & PHASE_##ph))
00007 #define set_hasphase(set,ph) (SET_HAS(set,ph))
00008
00009 typedef struct {
00010 double continuous;
00011 double emergency;
00012 } LINERATINGS;
00013
00014 extern bool show_matrix_values;
00015
00016 #include "powerflow.h"
00017 #include "link.h"
00018 #include "line_spacing.h"
00019 #include "overhead_line_conductor.h"
00020 #include "underground_line_conductor.h"
00021 #include "line_configuration.h"
00022 #include "triplex_line_configuration.h"
00023 #include "triplex_line_conductor.h"
00024
00025 class line : public link
00026 {
00027 public:
00028 static CLASS *oclass;
00029 static CLASS *pclass;
00030
00031 OBJECT *configuration;
00032 double length;
00033 line(MODULE *mod);
00034 int isa(char *classname);
00035 int create(void);
00036 };
00037
00038 #include "triplex_line.h"
00039 #include "overhead_line.h"
00040 #include "underground_line.h"
00041
00042 #endif // _LINE_H