wnet.Node Class
R2026bNamespace: wnet
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.
Note
You can invoke the wnet.Node constructor from the constructor of
its subclass to set the Position and Name properties using name-value arguments. For example, when you pass
Position=[100 100 0; 5000 100 0] and
Name=["wnode1","wnode2"], the constructor creates two subclass
objects, one with the name "wnode1" positioned at [100 100
0], and the other with the name "wnode2" positioned at
[5000 100 0]. The number of rows in the Position
argument determines the number of subclass objects created. If you create
N nodes but supply M names, where
M is greater than N, the constructor uses only the
first N names. If M is less than
N, the constructor uses default names for the remaining
(N–M) nodes.