equal
deleted
inserted
replaced
124 g_mode.IsDirty () || |
124 g_mode.IsDirty () || |
125 g_modeDistance.IsDirty () || |
125 g_modeDistance.IsDirty () || |
126 g_modeTime.IsDirty () || |
126 g_modeTime.IsDirty () || |
127 g_rectangle.IsDirty ()) |
127 g_rectangle.IsDirty ()) |
128 { |
128 { |
129 parameters = Create<RandomWalk2dMobilityModelParameters> (); |
129 parameters = CreateObject<RandomWalk2dMobilityModelParameters> (); |
130 } |
130 } |
131 return parameters; |
131 return parameters; |
132 } |
132 } |
133 |
133 |
134 RandomWalk2dMobilityModel::RandomWalk2dMobilityModel () |
134 RandomWalk2dMobilityModel::RandomWalk2dMobilityModel () |
135 : m_parameters (RandomWalk2dMobilityModelParameters::GetCurrent ()) |
135 : m_parameters (RandomWalk2dMobilityModelParameters::GetCurrent ()) |
136 { |
136 { |
137 SetInterfaceId (RandomWalk2dMobilityModel::iid); |
|
138 m_event = Simulator::ScheduleNow (&RandomWalk2dMobilityModel::Start, this); |
137 m_event = Simulator::ScheduleNow (&RandomWalk2dMobilityModel::Start, this); |
139 } |
138 } |
140 |
139 |
141 void |
140 void |
142 RandomWalk2dMobilityModel::Start (void) |
141 RandomWalk2dMobilityModel::Start (void) |