getP function

Get and set methods for brob objects