def _get_supply_array_construct(self):
        """ Returns a construct for an array of power supply data.
        """
        bus_no = integer.setResultsName("bus_no")
        s_rating = real.setResultsName("s_rating") # MVA
        p_direction = real.setResultsName("p_direction") # CPF
        p_bid_max = real.setResultsName("p_bid_max") # p.u.
        p_bid_min = real.setResultsName("p_bid_min") # p.u.
        p_bid_actual = real.setResultsName("p_bid_actual") # p.u.
        p_fixed = real.setResultsName("p_fixed") # $/hr
        p_proportional = real.setResultsName("p_proportional") # $/MWh
        p_quadratic = real.setResultsName("p_quadratic") # $/MW^2h
        q_fixed = real.setResultsName("q_fixed") # $/hr
        q_proportional = real.setResultsName("q_proportional") # $/MVArh
        q_quadratic = real.setResultsName("q_quadratic") # $/MVAr^2h
        commitment = boolean.setResultsName("commitment")
        cost_tie_break = real.setResultsName("cost_tie_break") # $/MWh
        lp_factor = real.setResultsName("lp_factor")# Loss participation factor
        q_max = real.setResultsName("q_max") # p.u.
        q_min = real.setResultsName("q_min") # p.u.
        cost_cong_up = real.setResultsName("cost_cong_up") # $/h
        cost_cong_down = real.setResultsName("cost_cong_down") # $/h
        status = Optional(boolean).setResultsName("status")

        supply_data = bus_no + s_rating + p_direction + p_bid_max + \
            p_bid_min + p_bid_actual + p_fixed + p_proportional + \
            p_quadratic + q_fixed + q_proportional + q_quadratic + \
            commitment + cost_tie_break + lp_factor + q_max + q_min + \
            cost_cong_up + cost_cong_down + status + scolon

        supply_data.setParseAction(self.push_supply)

        supply_array = Literal("Supply.con") + "=" + "[" + "..." + \
            ZeroOrMore(supply_data + Optional("]" + scolon))

        return supply_array
def _get_supply_array_construct ( self ) : bus_no = integer . setResultsName ( "bus_no" ) s_rating = real . setResultsName ( "s_rating" ) p_direction = real . setResultsName ( "p_direction" ) p_bid_max = real . setResultsName ( "p_bid_max" ) p_bid_min = real . setResultsName ( "p_bid_min" ) p_bid_actual = real . setResultsName ( "p_bid_actual" ) p_fixed = real . setResultsName ( "p_fixed" ) p_proportional = real . setResultsName ( "p_proportional" ) p_quadratic = real . setResultsName ( "p_quadratic" ) q_fixed = real . setResultsName ( "q_fixed" ) q_proportional = real . setResultsName ( "q_proportional" ) q_quadratic = real . setResultsName ( "q_quadratic" ) commitment = boolean . setResultsName ( "commitment" ) cost_tie_break = real . setResultsName ( "cost_tie_break" ) lp_factor = real . setResultsName ( "lp_factor" ) q_max = real . setResultsName ( "q_max" ) q_min = real . setResultsName ( "q_min" ) cost_cong_up = real . setResultsName ( "cost_cong_up" ) cost_cong_down = real . setResultsName ( "cost_cong_down" ) status = Optional ( boolean ) . setResultsName ( "status" ) supply_data = bus_no + s_rating + p_direction + p_bid_max + p_bid_min + p_bid_actual + p_fixed + p_proportional + p_quadratic + q_fixed + q_proportional + q_quadratic + commitment + cost_tie_break + lp_factor + q_max + q_min + cost_cong_up + cost_cong_down + status + scolon supply_data . setParseAction ( self . push_supply ) supply_array = Literal ( "Supply.con" ) + "=" + "[" + "..." + ZeroOrMore ( supply_data + Optional ( "]" + scolon ) ) return supply_array
Returns a construct for an array of power supply data.