Research Article
Spontaneous Ad Hoc Mobile Cloud Computing Network
Algorithm 2
Program code of the class trustednet node.
class trustednet_Node | { | private: | double* coordinates; | trustednet_Neighbor** neighbors; | public: | int nNeighbors; | trustednet_Ident identity; | trustednet_Node(); | trustednet_Neighbor* getNeighborById(int_id); | trustednet_Neighbor* getNeighbor(int_id); | void addNeighbor(trustesnet_Node* node); | void setProperty(Trustednet_Node* node); | void writeNode(std::ostream & os) const; | double getXCor(); | double getYCor(); | }; |
|