code: def getOffbids(self, g):
          
          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
docs: Returns the offers/bids for the given generator.