23 #ifndef FREEDM_PHYSICAL_TOPOLOGY_HPP 24 #define FREEDM_PHYSICAL_TOPOLOGY_HPP 26 #include <boost/noncopyable.hpp> 46 typedef std::pair< std::string, std::string >
VertexPair;
80 #endif // FREEDM_PHYSICAL_TOPOLOGY_HPP std::string RealNameFromVirtual(std::string vname)
Gets the realname from the virtual name.
Definition: CPhysicalTopology.cpp:336
void LoadTopology()
Load the topology from a file.
Definition: CPhysicalTopology.cpp:182
std::map< std::string, std::string > m_strans
If a physical topology has been loaded.
Definition: CPhysicalTopology.hpp:74
CPhysicalTopology()
Private constructor for the singleton instance.
Definition: CPhysicalTopology.cpp:61
std::map< std::string, VertexSet > AdjacencyListMap
Definition: CPhysicalTopology.hpp:48
AdjacencyListMap m_adjlist
Definition: CPhysicalTopology.hpp:71
std::multimap< VertexPair, std::string > FIDControlMap
Definition: CPhysicalTopology.hpp:49
VertexSet ReachablePeers(std::string source, FIDState fidstate)
Find the reachable peers.
Definition: CPhysicalTopology.cpp:92
bool IsAvailable()
Returns if the physical topology is available.
Definition: CPhysicalTopology.cpp:75
FIDControlMap m_fidcontrol
Structure of physical layer.
Definition: CPhysicalTopology.hpp:72
std::map< std::string, bool > FIDState
Definition: CPhysicalTopology.hpp:50
bool m_available
Which edges FIDs control.
Definition: CPhysicalTopology.hpp:73
General FREEDM Namespace.
Definition: CBroker.cpp:53
Provides the Physical Topology Architecture.
Definition: CPhysicalTopology.hpp:43
static CPhysicalTopology & Instance()
Get the singleton instance of this class.
Definition: CPhysicalTopology.cpp:49
std::pair< std::string, std::string > VertexPair
Definition: CPhysicalTopology.hpp:46
std::set< std::string > VertexSet
Definition: CPhysicalTopology.hpp:47