From GridLAB-D Wiki
Jump to: navigation, search

object - Object reference property type

Synopsis

class name { object variable; }
object name { variable reference; }

Description

Object references allow a property to describe a reference to another object in the model. These are often used to access variables or functions in other objects.

Example

To declare an object reference use the syntax

class name {
  object variable;
}

where name is the name of the class, and variable is the name of the object reference.

To define an object reference use the syntax

object name {
  variable reference;
}

where name is the name of the class, variable is the name of the object reference, and reference is the name of the object being referred to. Object names can either be a defined name or a canonical name.

See also