Wiselib
wiselib.testing/algorithms/cluster/clustering_types.h
Go to the documentation of this file.
00001 /* 
00002  * File:   clustering_types.h
00003  * Author: amaxilatis
00004  *
00005  * Created on October 12, 2010, 5:34 PM
00006  */
00007 
00008 #ifndef _ALGORITHMS_CLUSTERING_TYPES_H
00009 #define  _ALGORITHMS_CLUSTERING_TYPES_H
00010 
00011 
00012 
00013 
00014 namespace wiselib {
00015 
00016     enum msg_ids {
00017         CLRADIO_MSG = 39,
00018         JOIN = 43, REJOIN = 43,
00019         RESUME = 44, CONVERGECAST = 44,
00020         ATTRIBUTE = 45, FLOOD = 45,
00021         REFORM = 46,
00022         INFORM = 47,
00023 
00024         JOIN_ACCEPT = 22,
00025         NEIGHBOR_DISCOVERY = 25,
00026         NEIGHBOR_REPLY = 26,
00027         JOIN_REQUEST = 27
00028     };
00029 
00030     enum node_type {
00031         UNCLUSTERED = 0,
00032         SIMPLE = 1,
00033         HEAD = 2,
00034         GATEWAY = 3
00035     };
00036 
00037     enum EventIds {
00038         CLUSTER_HEAD_CHANGED = 0,
00039         NODE_JOINED = 1,
00040         NODE_LEFT = 2,
00041         CLUSTER_FORMED = 3,
00042         GATEWAY_NODE = 4
00043     };
00044 
00045     enum ClusterIds {
00046         UNKNOWN_CLUSTER_HEAD = -1
00047     };
00048 }
00049 
00050 
00051 #include "algorithms/cluster/join_message.h"
00052 #include "algorithms/cluster/join_accept_message.h"
00053 #include "algorithms/cluster/resume_message.h"
00054 #include "algorithms/cluster/reform_message.h"
00055 #include "algorithms/cluster/attribute_message.h"
00056 #include "algorithms/cluster_radio/cluster_radio_message.h"
00057 
00058 #endif   /* _CLUSTERING_TYPES_H */
00059 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines