00001
00002
00003
00004
00005
00006 #ifndef _PLC_H
00007 #define _PLC_H
00008
00009 #include <stdarg.h>
00010 #include "gridlabd.h"
00011
00012 #include "machine.h"
00013
00014 class plc {
00015 public:
00016 char1024 source;
00017 object network;
00018 private:
00019 machine *controller;
00020 public:
00021 static CLASS *oclass;
00022 static plc* defaults;
00023 public:
00024 plc(MODULE *mod);
00025 ~plc(void);
00026 int create();
00027 int init(OBJECT *parent);
00028 TIMESTAMP sync(TIMESTAMP t0, TIMESTAMP t1);
00029
00030 inline machine *get_machine() {return controller;};
00031 };
00032
00033 #endif