コード例 #1
0
 /**
  * Returns a human-readable representation of a process.
  * 
  * @param processId Process' id.
  * @return Process' representation for debugging purposes.
  */
 std::string
 toString ( uint processId ) const
 {
     assert ( exists ( processId ) );
     
     std::string output;
                     
     output += "    #" ;
     output += boost::lexical_cast<std::string> ( processId ) ;
     output += ": s";
     output += boost::lexical_cast<std::string>
                   ( getService ( processId ) ) ;
     output += ", pmc=";
     output += boost::lexical_cast<std::string>
                   ( getPMC ( processId ) ) ;
     output += "\n";
     output += "        needs           : " ;
     for ( uint r = 0 ; r < _resources.size(); ++r )
     {
         output += "r" ;
         output += boost::lexical_cast<std::string>
                   ( r ) ;
         output += ":" ;
         output += boost::lexical_cast<std::string>
                   ( getRequirement ( processId, r ) ) ;
         output += "   ";
     }
     output += "\n";
     
     return output ;                
 }
コード例 #2
0
ファイル: fanuc_adapter.cpp プロジェクト: princearora/adapter
void FanucAdapter::gatherDeviceData()
{
  if (!mConnected)
    connect();
  else
  {
    getPositions();
    getAxisLoad();
    getSpindleLoad();
    getStatus();
    getMessages();
    getMacros();
    getPMC();
    getCounts();
	getToolData();
  }
}