INET Framework for OMNeT++/OMNEST
CA Namespace Reference

Classes

class  NeighborRecord
class  RouterRecord
class  Path

Functions

std::ostream & operator<< (std::ostream &ostr, RouterRecord &rec)
std::ostream & operator<< (std::ostream &ostr, Path &path)

Function Documentation

std::ostream& CA::operator<< ( std::ostream &  ostr,
RouterRecord &  rec 
) [inline]

Definition at line 71 of file CriticalnessAnalyzer.h.

{
    ostr << rec.getName() << " ... " ;
    ostr << " Criticalness: " << rec.getCriticalness() << "%";
    
    if(rec.getCriticalness() == 100)
      ostr << "  this node is Critical Point";
    if(rec.getCriticalness() == 0)
      ostr << "  this node is Universal Point";
    
    return ostr;
}
std::ostream& CA::operator<< ( std::ostream &  ostr,
Path &  path 
) [inline]

Definition at line 107 of file CriticalnessAnalyzer.h.

{
    ostr << "Cost: " << path.getCost() << "     Path: ";
    std::vector<std::string> tp = path.getPath();
    
    for (std::vector<std::string>::iterator it = tp.begin(); it!=tp.end(); ++it)
    {
      if(it == tp.begin())
        ostr << *it;
      else
        ostr << " -> "<< *it;
    }  
    return ostr;
}