Contenido principal

wnet.Node Class

Namespace: wnet

Implement custom wireless node

Since R2026a

Description

Use the wnet.Node base class to implement a custom wireless node in a subclass.

The wnet.Node class is a handle class.

Class Attributes

Abstract
true

For information on class attributes, see Class Attributes.

Properties

expand all

Current node position in 3-D Cartesian coordinates, specified as a three-element numeric row vector. The units are in meters.

Attributes:

GetAccess
public
SetAccess
public

Data Types: double

Node identifier, represented as a positive integer. The class assigns ID values incrementally, starting from 1.

Attributes:

GetAccess
public
SetAccess
private

Data Types: double

Name of the wireless node, represented as a string scalar or character vector. You can set the value of this property only within the subclasses of wnet.Node. The default value of this property is of the form NodeID, where ID refers to the value of the ID property. For example, if the value of ID is 3, the default value of Name is Node3.

Attributes:

GetAccess
public
SetAccess
protected

Data Types: string | char

Node mobility model, represented as an object of a subclass of wnet.Mobility class. You can set the value of this property only within the subclasses of wnet.Node.

Attributes:

GetAccess
public
SetAccess
protected

Node velocity in 3-D Cartesian coordinates, represented as a three-element numeric row vector. The units are in meters per second. You can set the value of this property only within the subclasses of wnet.Node.

Attributes:

GetAccess
public
SetAccess
protected

Data Types: double

Methods

expand all

More About

expand all

Version History

Introduced in R2026a