Changeset 299

Show
Ignore:
Timestamp:
06/29/09 23:52:29 (15 years ago)
Author:
trnewman
Message:

Added python swig interface

Location:
vtcross/trunk/src
Files:
4 added
3 modified

Legend:

Unmodified
Added
Removed
  • vtcross/trunk/src/include/vtcross/containers.h

    r296 r299  
    5555 * 
    5656 */ 
    57 struct Parameter { 
     57struct Parameter{ 
    5858    std::string name; 
    5959    std::string units; 
  • vtcross/trunk/src/libvtcross/Makefile.am

    r281 r299  
    1313libvtcross_demo_sml_SOURCES = libvtcross_demo_sml.cpp 
    1414libvtcross_demo_sml_LDADD = libvtcross.la 
     15 
  • vtcross/trunk/src/libvtcross/libvtcross.cpp

    r285 r299  
    182182    } 
    183183} 
     184 
     185bool ActivateComponent(uint32_t id) { 
     186    return 1; 
     187} 
     188bool DeactivateComponent(uint32_t id) { 
     189    return 1; 
     190}  
     191bool DisconnectComponent(uint32_t id) { 
     192    return 1; 
     193} 
     194 
     195Component* GetComponentInformation(uint32_t id) { 
     196 
     197} 
     198 
     199/* View components currently connected to the radio by id.  
     200 * 
     201 * TODO Should there be another way to list components? If you have 10 cognitive 
     202 * engines, how are you going to know which is which just by id? 
     203 */ 
     204uint32_t* GetConnectedCognitiveEngines() { 
     205} 
     206uint32_t* GetConnectedPolicyEngines(){ 
     207} 
     208uint32_t* GetConnectedManagementServiceLayers(){ 
     209} 
     210uint32_t* GetConnectedComponents(){ 
     211} 
     212 
     213 
     214/* View data from the current status of the radio.  
     215 * 
     216 * This function allows client code to capture radio properties at any certain 
     217 * instant.  Note, however, that these properties could be changing at very 
     218 * rapid rates. There is no guarantee that the return results from these 
     219 * functions will still be valid by the time the client code receives them. 
     220 */ 
     221Observable* GetRadioObservables() { 
     222} 
     223Parameter* GetRadioParameters(){ 
     224} 
     225Utility* GetRadioUtilities(){ 
     226} 
     227 
     228 
     229/* Parses VTCROSS XML configuration file and uses it to configure the radio.  
     230 * 
     231 * This function *must* be called when the radio first starts up, and may be 
     232 * called at any point after that to reconfigure the radio. 
     233 */ 
     234bool ParseRadioConfiguration(){ 
     235} 
     236 
     237 
     238/* Lists current radio configuration options loaded from the configuration XML 
     239 * file.  
     240 * 
     241 * TODO How are we listing these?  Are we simply returning them to stdout? 
     242 * Logging them? Returning strings?  Need to figure this out... 
     243 */ 
     244void ListCurrentRadioConfiguration(){ 
     245} 
     246 
     247/* Shut down the radio. 
     248 * 
     249 * This function will deactivate and disconnect all radio components before 
     250 * finally shutting down the shell and stopping radio operations. 
     251 */ 
     252bool Shutdown(){ 
     253} 
     254