Includes native hooks for calls in the GridLAB-D core that pertain to the CLASS structures.
Definition at line 12 of file GClass.java.
Public Member Functions | |
| GProperty | AddProperty (String pname, String ptype) |
| Adds a property to a GClass, appends it to the property table, and increases the estimated size of the class objects. | |
| GProperty | findProperty (String pname) |
| Retrieves a property by name from the GClass's property table. | |
| boolean | hasObject (Long addr) |
| Checks to see if a particular OBJECT * has a corresponding GObject in this GClass's object table. | |
| void | PutObj (GObject obj) |
| Adds an object to this GClass's HashTable of instantiated objects. | |
Static Public Member Functions | |
| static GClass | BuildClass (String classname, GModule mod, int sync) |
| public static GClass BuildClass(String classname, GModule module, int sync) Registers a classname with a core module and adds the new class object to the GModule. | |
| GProperty gridlabd::GClass::AddProperty | ( | String | pname, | |
| String | ptype | |||
| ) | [inline] |
Adds a property to a GClass, appends it to the property table, and increases the estimated size of the class objects.
Will not add a property if the class is in use.
| pname | Name of the property to add. | |
| ptype | Name of the propety type to add (see GridlabD.proptype) |
Definition at line 97 of file GClass.java.
| static GClass gridlabd::GClass::BuildClass | ( | String | classname, | |
| GModule | mod, | |||
| int | sync | |||
| ) | [inline, static] |
public static GClass BuildClass(String classname, GModule module, int sync) Registers a classname with a core module and adds the new class object to the GModule.
| classname | The name of the class to publish | |
| mod | The GModule object that is registering the class | |
| sync | The pass configuration for this class |
Definition at line 40 of file GClass.java.
References gridlabd::GModule::AddClass(), and gridlabd::GModule::GetAddr().
| GProperty gridlabd::GClass::findProperty | ( | String | pname | ) | [inline] |
Retrieves a property by name from the GClass's property table.
| pname | The property name. |
Definition at line 74 of file GClass.java.
| boolean gridlabd::GClass::hasObject | ( | Long | addr | ) | [inline] |
Checks to see if a particular OBJECT * has a corresponding GObject in this GClass's object table.
| addr | The address of the OBJECT structure in the core. |
Definition at line 83 of file GClass.java.
| void gridlabd::GClass::PutObj | ( | GObject | obj | ) | [inline] |
Adds an object to this GClass's HashTable of instantiated objects.
| obj | The GObject to add to the object table. |
Definition at line 54 of file GClass.java.
References gridlabd::GObject::GetAddr().
Referenced by gridlabd::GObject::BuildSingle().