What factors affect energy supply and how energy resources are classified.