//------------------------------------------------------------------------ // $Id: Sim/LinkMgr.cpp 2012/11/14 16:21:15 philw $ // ------------------------------------------------------------------------ <<< EXCERPT -- SMART LINK DATA TEST STUB >>> <<< EXCERPT -- SMART LINK DATA TEST STUB >>> <<< EXCERPT -- SMART LINK DATA TEST STUB >>> // **************************** // *** Smart Link Support *** // **************************** #ifndef libEngrObjsClassIdsINCLUDED #include "libEngrObjsClassIds.hpp" #endif #ifndef GroundWaterStorINCLUDED #include "GroundWaterStor.hpp" // (Needed for TEST values only). #endif QList LinkMgr::smartLinkSetsForObjects ( const SimObj* obj1, const SimObj* obj2) const { static const char* mname ("LinkMgr::smartLinkSetsForObjects"); QList retList; SmartLinkSet tempSet; if (!rwAssert (obj1 != NULL)) return retList; if (!rwAssert (obj2 != NULL)) return retList; //----------------------------------------->> std::cout << mname << " TEST STUB" << " (" << qPrintable (obj1->getCompleteName()) << ", " << qPrintable (obj2->getCompleteName()) << ")" << std::endl; // ***************************************** // *** JURY-RIGGED TEST IMPLEMENTATION *** // ***************************************** // Two hard-coded SmartLinkSets are returned. These are for the // following method selections between two Ground Water Objects. // The two SmartLinkSets are part of the same SmartLinkSet Group // (i.e. having the same Group Display Format String). // // Object One: // Category: GW_LATERAL_LINK_DIR; Method: GW_RIGHT // // Object Two: // Category: GW_LATERAL_LINK_DIR; Method: GW_LEFT //---------------------------------- tempSet = SmartLinkSet ( GROUND_WATER_STORAGE_ID, GW_LATERAL_LINK_DIR, GW_RIGHT, GROUND_WATER_STORAGE_ID, GW_LATERAL_LINK_DIR, GW_LEFT, "%1 Right side to %2 Left side", "Elevations"); tempSet.append ("Previous Adjacent Elevation Right", "Previous Water Table Elevation"); tempSet.append ("Previous Water Table Elevation", "Previous Adjacent Elevation Left"); retList.append (tempSet); //---------------------------------- tempSet = SmartLinkSet ( GROUND_WATER_STORAGE_ID, GW_LATERAL_LINK_DIR, GW_RIGHT, GROUND_WATER_STORAGE_ID, GW_LATERAL_LINK_DIR, GW_LEFT, "%1 Right side to %2 Left side", "Salinity"); tempSet.append ("Salt Conc Lower Previous", "Salt Conc Lower Left Previous"); tempSet.append ("Salt Conc Lower Right Previous", "Salt Conc Lower Previous"); tempSet.append ("Salt Conc Upper Previous", "Salt Conc Upper Left Previous"); tempSet.append ("Salt Conc Upper Right Previous", "Salt Conc Upper Previous"); tempSet.append ("Storage Proportion Previous", "Storage Proportion Left Previous"); tempSet.append ("Storage Proportion Right Previous", "Storage Proportion Previous"); retList.append (tempSet); //---------------------------------- return retList; // Jury-Rigged Test Value } //--- (end LinkMgr.cpp) ---