|
|
| 151 |
Ns2MobilityHelper::Ns2MobilityHelper (std::string filename) |
151 |
Ns2MobilityHelper::Ns2MobilityHelper (std::string filename) |
| 152 |
: m_filename (filename) |
152 |
: m_filename (filename) |
| 153 |
{ |
153 |
{ |
|
|
154 |
std::ifstream file (m_filename.c_str (), std::ios::in); |
| 155 |
if (!(file.is_open ())) NS_FATAL_ERROR("Could not open trace file " << m_filename.c_str() << " for reading, aborting here \n"); |
| 156 |
|
| 154 |
} |
157 |
} |
| 155 |
|
158 |
|
| 156 |
Ptr<ConstantVelocityMobilityModel> |
159 |
Ptr<ConstantVelocityMobilityModel> |