Changeset 181 for vtcross/trunk/src/include/vtcross/components.h
- Timestamp:
- 03/22/09 00:38:35 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/trunk/src/include/vtcross/components.h
r173 r181 65 65 * inherit (e.g. cognitive and policy engines). Inherits all functions from the 66 66 * ABC Component publically. 67 * 68 * TODO perhaps this shouldn't be an abstract base class? Some functions, like 69 * GetRemoteComponentType, are going to be the same for all child classes 70 * anyways... 67 71 */ 68 72 class Engine : public Component … … 130 134 131 135 136 /* Contains information regarding the SML in a VTCROSS system. Note that if 137 * there is no SML present, the engine should have no instantiation of this 138 * struct. 139 */ 140 struct SML_Info { 141 std::string hostname; 142 std::string port; 143 int32_t socketFD; 144 }; 145 146 132 147 /* Policy Engine class declaration. All public functions are inherited from 133 148 * parent classes. … … 138 153 PolicyEngine(); 139 154 ~PolicyEngine(); 155 156 157 /* Overloaded constructor that creates a policy engine object with SML 158 * information pre-defined. 159 */ 160 PolicyEngine(const char* serverName, const char* portNumber); 140 161 141 162 void GetRemoteComponentType(int32_t socketFD); … … 167 188 void ValidateParameters(struct Parameter pList[], \ 168 189 struct CE_Info *ce_info, int decision_array[]); 190 191 192 /* Contains information regarding the presence of a service management 193 * layer. If this pointer is NULL, then there is no SML present in the 194 * radio system. 195 */ 196 struct SML_Info *SML; 169 197 }; 170 198 … … 219 247 void ReceiveFeedback(Observable *observables, \ 220 248 Parameter *parameters, std::string service); 249 250 251 /* Contains information regarding the presence of a service management 252 * layer. If this pointer is NULL, then there is no SML present in the 253 * radio system. 254 */ 255 struct SML_Info *SML; 256 221 257 }; 222 258