424 |
424 |
425 Ptr<Object> p = CreateObject<MyNewObject> ("n1", v1, "n2", v2, ...); |
425 Ptr<Object> p = CreateObject<MyNewObject> ("n1", v1, "n2", v2, ...); |
426 |
426 |
427 or from the higher-level helper APIs, such as::: |
427 or from the higher-level helper APIs, such as::: |
428 |
428 |
429 mobility.SetPositionAllocator ("GridPositionAllocator", |
429 mobility.SetPositionAllocator ("ns3::GridPositionAllocator", |
430 "MinX", DoubleValue (-100.0), |
430 "MinX", DoubleValue (-100.0), |
431 "MinY", DoubleValue (-100.0), |
431 "MinY", DoubleValue (-100.0), |
432 "DeltaX", DoubleValue (5.0), |
432 "DeltaX", DoubleValue (5.0), |
433 "DeltaY", DoubleValue (20.0), |
433 "DeltaY", DoubleValue (20.0), |
434 "GridWidth", UintegerValue (20), |
434 "GridWidth", UintegerValue (20), |