Untitled

 avatar
unknown
plain_text
3 years ago
594 B
2
Indexable
void
CourseChange (Ptr<OutputStreamWrapper> stream,Ptr<const MobilityModel> model)
{
  Vector position = model->GetPosition ();
  NS_LOG_UNCOND (" x = " << position.x << ", y = " << position.y);
  *stream->GetStream () << Simulator::Now ().GetSeconds () << " x = " << position.x << ", y = " << position.y<< std::endl;
  std::cout<<"here"<<std::endl;
}


  AsciiTraceHelper asciiTraceHelper;
  Ptr<OutputStreamWrapper> stream = asciiTraceHelper.CreateFileStream ("testtr.tr");
  wifiStaNodes.Get (nWifi - 1)->TraceConnectWithoutContext("CourseChange", MakeBoundCallback (&CourseChange,stream));