AttachedMobility

Package: inet.mobility.single

AttachedMobility

simple module

This module provides a mobility that is attached to another mobility at a given offset. The position, velocity and acceleration are all affectred by the respective quantites and the orientation of the mobility where this one is attached.

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Extends

Name Type Description
MobilityBase simple module

Abstract base module for mobility models.

Parameters

Name Type Default value Description
subjectModule string "^"

module path which determines the subject module, the motion of which this mobility model describes, the default value is the parent module

coordinateSystemModule string ""

module path of the geographic coordinate system module

displayStringTextFormat string "p: %p\nv: %v"

format string for the mobility module's display string text

updateDisplayString bool true

enables continuous update of the subject module's position via modifying its display string

constraintAreaMinX double -inf m

min x position of the constraint area, unconstrained by default (negative infinity)

constraintAreaMinY double -inf m

min y position of the constraint area, unconstrained by default (negative infinity)

constraintAreaMinZ double -inf m

min z position of the constraint area, unconstrained by default (negative infinity)

constraintAreaMaxX double inf m

max x position of the constraint area, unconstrained by default (positive infinity)

constraintAreaMaxY double inf m

max y position of the constraint area, unconstrained by default (positive infinity)

constraintAreaMaxZ double inf m

max z position of the constraint area, unconstrained by default (positive infinity)

mobilityModule string
offsetX double 0m
offsetY double 0m
offsetZ double 0m
offsetHeading double 0deg
offsetElevation double 0deg
offsetBank double 0deg

Properties

Name Value Description
display i=block/cogwheel
class AttachedMobility

Signals

Name Type Unit
mobilityStateChanged inet::MobilityBase

Direct method calls (observed)

call tofunctioninfo
SuperpositioningMobilityinet::SuperpositioningMobility::receiveSignalmobilityStateChanged

Called methods (observed)

functioninfocall from
inet::AttachedMobility::receiveSignalmobilityStateChangedCircleMobility, LinearMobility, SuperpositioningMobility, TurtleMobility

Source code

//
// This module provides a mobility that is attached to another mobility at a
// given offset. The position, velocity and acceleration are all affectred by
// the respective quantites and the orientation of the mobility where this one
// is attached.
//
simple AttachedMobility extends MobilityBase
{
    parameters:
        string mobilityModule;
        double offsetX @unit(m) = default(0m);
        double offsetY @unit(m) = default(0m);
        double offsetZ @unit(m) = default(0m);
        double offsetHeading @unit(deg) = default(0deg);
        double offsetElevation @unit(deg) = default(0deg);
        double offsetBank @unit(deg) = default(0deg);
        @class(AttachedMobility);
}

File: src/inet/mobility/single/AttachedMobility.ned