nikhilgupta10 / GridLAB-D

Other
1 stars 0 forks source link

#988 Add support for automatic parenting and inheritance, #2713

Open nikhilgupta10 opened 7 years ago

nikhilgupta10 commented 7 years ago

The VADER team would like to have the following capabilities added.

Have the loader support automatic find of next childless object to connect a parent, e.g.,

object triplex_meter {
    parent childless:groupid=secondary;
    // ...
}

This requires adding code to object_properties() as well as resolve_object(), but it's pretty simple. It would also require adding a child_count property to the object header to facilitate finding childless objects, with a corresponding increment in object_set_parent().

As for the second feature, this would require adding support for an inherit special value to object_properties() so that the following would be allowed:

object triplex_meter {
  phases inherit;
}

In the cases of phases specifically, we can alternatively simply have phases be copied from the parent when it's not defined, as we do with nominal_voltage.,

nikhilgupta10 commented 7 years ago

nikhilgupta10 imported these comments from Sourceforge: The user dchassin does not exist anymore. Therefore assigning this to afisher1.