def getOffbids(self, g):
        """ Returns the offers/bids for the given generator.
        """
        if not g.is_load:
            offbids = [x for x in self.offers if x.generator == g]
        else:
            offbids = [x for x in self.bids if x.vLoad == g]

        return offbids