176 lines
5.6 KiB
C#
176 lines
5.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
class CropTypesHolder
|
|
{
|
|
private CropTypes[] cropTypes = new CropTypes[12];
|
|
|
|
public void init()
|
|
{
|
|
// None
|
|
cropTypes[0] = new CropTypes();
|
|
cropTypes[0].soilType[0] = "None";
|
|
cropTypes[0].soilType[1] = null;
|
|
cropTypes[0].soilType[2] = null;
|
|
cropTypes[0].Temparature = 0f;
|
|
cropTypes[0].Humidity = 0f;
|
|
cropTypes[0].Moisture = 0f;
|
|
cropTypes[0].Nitrogen = 0f;
|
|
cropTypes[0].Potassium = 0f;
|
|
cropTypes[0].Phosphorous = 0f;
|
|
|
|
// Barley
|
|
cropTypes[1] = new CropTypes();
|
|
cropTypes[1].soilType[0] = "Sandy";
|
|
cropTypes[1].soilType[1] = null;
|
|
cropTypes[1].soilType[2] = null;
|
|
cropTypes[1].Temparature = 30.1f;
|
|
cropTypes[1].Humidity = 59.0f;
|
|
cropTypes[1].Moisture = 41.7f;
|
|
cropTypes[1].Nitrogen = 12.6f;
|
|
cropTypes[1].Potassium = 5.3f;
|
|
cropTypes[1].Phosphorous = 26.0f;
|
|
|
|
|
|
// Cotton
|
|
cropTypes[2] = new CropTypes();
|
|
cropTypes[2].soilType[0] = "Red";
|
|
cropTypes[2].Times[0] = 5;
|
|
cropTypes[2].soilType[1] = "Black";
|
|
cropTypes[2].Times[1] = 4;
|
|
cropTypes[2].soilType[2] = "Loamy";
|
|
cropTypes[2].Times[2] = 3;
|
|
cropTypes[2].Temparature = 30.4f;
|
|
cropTypes[2].Humidity = 59.6f;
|
|
cropTypes[2].Moisture = 63.2f;
|
|
cropTypes[2].Nitrogen = 16.4f;
|
|
cropTypes[2].Potassium = 3.3f;
|
|
cropTypes[2].Phosphorous = 23.8f;
|
|
|
|
// Ground Nuts
|
|
cropTypes[3] = new CropTypes();
|
|
cropTypes[3].soilType[0] = "Red";
|
|
cropTypes[3].soilType[1] = null;
|
|
cropTypes[3].soilType[2] = null;
|
|
cropTypes[3].Temparature = 30.1f;
|
|
cropTypes[3].Humidity = 59.1f;
|
|
cropTypes[3].Moisture = 33.1f;
|
|
cropTypes[3].Nitrogen = 23.3f;
|
|
cropTypes[3].Potassium = 2.0f;
|
|
cropTypes[3].Phosphorous = 21.6f;
|
|
|
|
|
|
// Maize
|
|
cropTypes[4] = new CropTypes();
|
|
cropTypes[4].soilType[0] = "Sandy";
|
|
cropTypes[4].soilType[1] = null;
|
|
cropTypes[4].soilType[2] = null;
|
|
cropTypes[4].Temparature = 29.0f;
|
|
cropTypes[4].Humidity = 57.3f;
|
|
cropTypes[4].Moisture = 42.2f;
|
|
cropTypes[4].Nitrogen = 18.3f;
|
|
cropTypes[4].Potassium = 5.7f;
|
|
cropTypes[4].Phosphorous = 18.7f;
|
|
|
|
// Millets
|
|
cropTypes[5] = new CropTypes();
|
|
cropTypes[5].soilType[0] = "Sandy";
|
|
cropTypes[5].Times[0] = 7;
|
|
cropTypes[5].soilType[1] = "Black";
|
|
cropTypes[5].Times[0] = 4;
|
|
cropTypes[5].soilType[2] = null;
|
|
cropTypes[5].Temparature = 29.5f;
|
|
cropTypes[5].Humidity = 57.3f;
|
|
cropTypes[5].Moisture = 38.5f;
|
|
cropTypes[5].Nitrogen = 23.2f;
|
|
cropTypes[5].Potassium = 0.1f;
|
|
cropTypes[5].Phosphorous = 14.4f;
|
|
|
|
//Oil Seeds
|
|
cropTypes[6] = new CropTypes();
|
|
cropTypes[6].soilType[0] = "Black";
|
|
cropTypes[6].soilType[1] = null;
|
|
cropTypes[6].soilType[2] = null;
|
|
cropTypes[6].Temparature = 30.3f;
|
|
cropTypes[6].Humidity = 59.1f;
|
|
cropTypes[6].Moisture = 32.1f;
|
|
cropTypes[6].Nitrogen = 19.0f;
|
|
cropTypes[6].Potassium = 2.3f;
|
|
cropTypes[6].Phosphorous = 17.3f;
|
|
|
|
//Paddys
|
|
cropTypes[7] = new CropTypes();
|
|
cropTypes[7].soilType[0] = "Clayey";
|
|
cropTypes[7].soilType[1] = null;
|
|
cropTypes[7].soilType[2] = null;
|
|
cropTypes[7].Temparature = 31.2f;
|
|
cropTypes[7].Humidity = 60.4f;
|
|
cropTypes[7].Moisture = 41.5f;
|
|
cropTypes[7].Nitrogen = 20.8f;
|
|
cropTypes[7].Potassium = 3.7f;
|
|
cropTypes[7].Phosphorous = 16.3f;
|
|
|
|
//Pulses
|
|
cropTypes[8] = new CropTypes();
|
|
cropTypes[8].soilType[0] = "Clayey";
|
|
cropTypes[8].soilType[1] = null;
|
|
cropTypes[8].soilType[2] = null;
|
|
cropTypes[8].Temparature = 27.8f;
|
|
cropTypes[8].Humidity = 54.9f;
|
|
cropTypes[8].Moisture = 34.1f;
|
|
cropTypes[8].Nitrogen = 18.4f;
|
|
cropTypes[8].Potassium = 4.2f;
|
|
cropTypes[8].Phosphorous = 17.5f;
|
|
|
|
//Sugarcane
|
|
cropTypes[9] = new CropTypes();
|
|
cropTypes[9].soilType[0] = "Loamy";
|
|
cropTypes[9].Times[0] = 9;
|
|
cropTypes[9].soilType[1] = "Black";
|
|
cropTypes[9].Times[0] = 4;
|
|
cropTypes[9].soilType[2] = null;
|
|
cropTypes[9].Temparature = 30.0f;
|
|
cropTypes[9].Humidity = 58.6f;
|
|
cropTypes[9].Moisture = 51.2f;
|
|
cropTypes[9].Nitrogen = 14.6f;
|
|
cropTypes[9].Potassium = 4.2f;
|
|
cropTypes[9].Phosphorous = 17.6f;
|
|
|
|
|
|
//Tobacco
|
|
cropTypes[10] = new CropTypes();
|
|
cropTypes[10].soilType[0] = "Red";
|
|
cropTypes[10].soilType[1] = null;
|
|
cropTypes[10].soilType[2] = null;
|
|
cropTypes[10].Temparature = 31.9f;
|
|
cropTypes[10].Humidity = 62.4f;
|
|
cropTypes[10].Moisture = 31.6f;
|
|
cropTypes[10].Nitrogen = 19.1f;
|
|
cropTypes[10].Potassium = 4.9f;
|
|
cropTypes[10].Phosphorous = 19.3f;
|
|
|
|
|
|
//Wheat
|
|
cropTypes[11] = new CropTypes();
|
|
cropTypes[11].soilType[0] = "Loamy";
|
|
cropTypes[11].soilType[1] = null;
|
|
cropTypes[11].soilType[2] = null;
|
|
cropTypes[11].Temparature = 33.1f;
|
|
cropTypes[11].Humidity = 63.8f;
|
|
cropTypes[11].Moisture = 50.0f;
|
|
cropTypes[11].Nitrogen = 23.3f;
|
|
cropTypes[11].Potassium = 2.9f;
|
|
cropTypes[11].Phosphorous = 14.4f;
|
|
|
|
}
|
|
|
|
public CropTypes getPresetCropTypes(int Index)
|
|
{
|
|
return cropTypes[Index];
|
|
}
|
|
}
|