An Agent Based Power Flow Control For Hybrid Electric Vehicles