/// <summary> /// Get housesystem by searching with a char /// </summary> /// <param name="c">The char that indicates the housesystem</param> /// <returns></returns> public RpHouseSystem houseSystem(char c) { RpHouseSystem result = null; for (int i = 0; i < theList.Length; i++) { if (theList[i].id == c) { result = theList[i]; } } return(result); }
/// <summary> /// Constructor, initializes the list /// </summary> public HouseSystemList() { theList = new RpHouseSystem[Constants.C_RP_TOTAL_HOUSESYSTEMS]; theList[0] = new RpHouseSystem(0, ResourceBundle.RB_HOUSESYSTEMS[0], 'A'); // Asc equal theList[1] = new RpHouseSystem(1, ResourceBundle.RB_HOUSESYSTEMS[1], 'B'); // Alcabitius theList[2] = new RpHouseSystem(2, ResourceBundle.RB_HOUSESYSTEMS[2], 'X'); // Axial rotation theList[3] = new RpHouseSystem(3, ResourceBundle.RB_HOUSESYSTEMS[3], 'C'); // Campanus theList[4] = new RpHouseSystem(4, ResourceBundle.RB_HOUSESYSTEMS[4], 'G'); // Gauquelin sectors theList[5] = new RpHouseSystem(5, ResourceBundle.RB_HOUSESYSTEMS[5], 'H'); // Horizontal (Azimuthal) theList[6] = new RpHouseSystem(6, ResourceBundle.RB_HOUSESYSTEMS[6], 'K'); // Koch theList[7] = new RpHouseSystem(7, ResourceBundle.RB_HOUSESYSTEMS[7], 'U'); // Krusinski theList[8] = new RpHouseSystem(8, ResourceBundle.RB_HOUSESYSTEMS[8], 'M'); // Morinus theList[9] = new RpHouseSystem(9, ResourceBundle.RB_HOUSESYSTEMS[9], 'P'); // Placidus theList[10] = new RpHouseSystem(10, ResourceBundle.RB_HOUSESYSTEMS[10], 'O'); // Porphyrius theList[11] = new RpHouseSystem(11, ResourceBundle.RB_HOUSESYSTEMS[11], 'R'); // Regiomontanus theList[12] = new RpHouseSystem(12, ResourceBundle.RB_HOUSESYSTEMS[12], 'T'); // Topocentric theList[13] = new RpHouseSystem(13, ResourceBundle.RB_HOUSESYSTEMS[13], 'V'); // Vehlow equal }