Behavioral Modes for a Firm Facing an Uncertain Supply or Demand Curve