NED File src/inet/mobility/single/FacingMobility.ned
Name | Type | Description |
---|---|---|
FacingMobility | simple module |
This module provides orientation towards the target mobility model as seen from the source mobility model. |
Source code
// // Copyright (C) 2020 OpenSim Ltd. // // SPDX-License-Identifier: LGPL-3.0-or-later // package inet.mobility.single; import inet.mobility.base.MobilityBase; // // This module provides orientation towards the target mobility model as seen // from the source mobility model. // simple FacingMobility extends MobilityBase { parameters: double initialX @unit(m) = default(uniform(this.constraintAreaMinX, this.constraintAreaMaxX)); double initialY @unit(m) = default(uniform(this.constraintAreaMinY, this.constraintAreaMaxY)); double initialZ @unit(m) = default(nanToZero(uniform(this.constraintAreaMinZ, this.constraintAreaMaxZ))); bool initFromDisplayString = default(true); // enables one time initialization from the subject module's display string string sourceMobility = default("."); // the default source mobility is this string targetMobility @mutable; @class(FacingMobility); }