gridlabd::GObject Class Reference

List of all members.


Detailed Description

A mirror of the OBJECT struct in GridLAB-D.

Primarily used for GridLAB-D native calls. The class itself is used as the root for Java GridLAB-D objects, whether through inheritence or composition.

Author:
Matthew Hauer <matthew.hauer@pnl.gov>

Definition at line 11 of file GObject.java.


Public Member Functions

long GetAddr ()
 pointer to the parent OBJECT.

Static Public Member Functions

static GObject BuildSingle (GClass oc)
 Constructs both an OBJECT* (in the core) and a GObject and adds the GObject to the GClass's object dictionary.
static GObject BuildSingle (GridlabD.Class oc)
 Attempts to build a new GObject within the core.

Member Function Documentation

static GObject gridlabd::GObject::BuildSingle ( GClass  oc  )  [inline, static]

Constructs both an OBJECT* (in the core) and a GObject and adds the GObject to the GClass's object dictionary.

Parameters:
oc The class to construct this object out of
Returns:
A new GObject if GridlabD.create_object succeeded, null if failed.

Definition at line 45 of file GObject.java.

References gridlabd::GClass::GetClassAddr(), gridlabd::GClass::GetSize(), and gridlabd::GClass::PutObj().

static GObject gridlabd::GObject::BuildSingle ( GridlabD.Class  oc  )  [inline, static]

Attempts to build a new GObject within the core.

Parameters:
oc Class to construct this object out of
Returns:
New GObject upon success. Null on failure.
Deprecated:
Use BuildSingle(GClass) instead.

Definition at line 29 of file GObject.java.

long gridlabd::GObject::GetAddr (  )  [inline]

pointer to the parent OBJECT.

not authoratative, use GetParent() the first time.

Definition at line 16 of file GObject.java.

Referenced by gridlabd::GClass::PutObj().


The documentation for this class was generated from the following file:

GridLAB-DTM Version 2.0
An open-source project initiated by the US Department of Energy