Parentinterface – Echelon OpenLNS User Manual

Page 469

Advertising
background image

OpenLNS Programmer's Reference

432

Syntax

parentObject = object.Parent

Element

Description

parentObject

The object that is the parent of the

specified object.

object

Any object for which the parent is

desired.

Data Type

Object.

Read/Write

Read only.

Added to API

Depends on the object used to access the property. Generally,

this property exists for an object as soon as the object is

added to the API.

Comments

The parent object is determined by the means in which a

child object is accessed, not by the OpenLNS Object

hierarchy.

ParentInterface

Summary

Returns the

Interface

object to which the

LonMarkObject

belongs

.

Each

AppDevice

on a network contains an

Interface

property

containing the device’s main interface, and an

Interfaces

collection containing the custom interfaces that have been

added to the device dynamically. The interfaces each contain

network variables and LonMarkObjects that reflect the

device’s functionality on the network.
The ParentInterface property returns the

Interface

object to

which the

LonMarkObject

belongs. In the case of static

LonMarkObjects and network variables, this property

returns the main device interface or device template the

object is associated with. In the case of a dynamic

LonMarkObject

and network variables, it returns the custom

interface to which the object belongs.
The ParentInterface property is read-only. However, you can

move a dynamic network variable or

LonMarkObject

from

one custom interface to another with the

MoveToInterface

method.

Availability

Local, full, and lightweight clients.

Syntax

interface = object.ParentInterface

Element

Description

interface

The

Interface

object returned by the

property.

object

The

LonMarkObject

to be acted upon.

Data Type

Interface

object.

Read/Write

Read only.

Advertising