TarzaNN
TarzaNN neural network simulator
C:/Users/albertlr/projects/TarzaNN/TarzaNN/NodeProxy.h
Go to the documentation of this file.
00001 #ifndef NODEPROXY_H_INCLUDED
00002 #define NODEPROXY_H_INCLUDED
00003 
00004 #include <QObject>
00005 class Q3SocketDevice;
00006 class Q3ServerSocket;
00007 #include <QHostAddress>
00008 #include <QThread>
00009 #include "FeaturePlaneAbstract.h"
00010 #include "NodeAbstract.h"
00011 
00014 class NodeProxy : public QThread, public NodeAbstract{
00015 //    Q_OBJECT
00016 public:
00017     NodeProxy(int _node_id, const char* address, int port, vector<NodeProxy*>* _nodeList);
00018     void updateNN(Observer* sourceFP, bool functional);
00019         int getNodeId() {return node_id;};
00020    ~NodeProxy();
00021    void printType();
00022         bool isLocal();
00023         virtual void run();
00024    
00025 private:
00026     NodeProxy();
00027     const char* remoteAddress;
00028     QHostAddress remoteHost;
00029     int remotePort;
00030         int node_id;
00031     Q3SocketDevice* qsd;
00032     QDataStream* qd;
00033         QMutex localData;
00034 };
00035 #endif //NODEPROXY_H_INCLUDED
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines