Murl Engine Lua Addon API  Version 1.0 beta
Murl.Resource.IGraphNode

The IGraphNode resource interface.

This interface represents a single node contained in a Resource::IGraph object.


Table members

Methods


GetName()

Get the class name of the node to create.

String GetName()

Returns
String The class name.

GetNumberOfChildren()

Get the node's number of children.

Integer GetNumberOfChildren()

Returns
Integer The number of children.

GetChild(index)

Get the node's child at a given index.

Murl.Resource.IGraphNode GetChild(Integer index)

Parameters
indexThe child index, in the range from 0 to GetNumberOfChildren()-1.
Returns
Murl.Resource.IGraphNode The child node, or null if index is out of range.

GetAttributes()

Get the optional node attributes.

Murl.IAttributes GetAttributes()

Returns
Murl.IAttributes A pointer to the attributes object, or null if not present.

GetOwner()

Get the graph resource owning this node.

Murl.Resource.IGraph GetOwner()

Returns
Murl.Resource.IGraph A pointer to the graph object, or null if not present.