NED File src/inet/mobility/single/FacingMobility.ned¶
Name |
Type |
Description |
|---|---|---|
simple 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;
//
// 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);
}