Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. //OLD CODE 4/19/2014
  2. //package mars.client;
  3. //
  4. //import java.util.ArrayList;
  5. //
  6. //import mars.client.Module;
  7. //
  8. ///**
  9. // * @author Matt
  10. // * @version 1.0
  11. // */
  12. //
  13. //public class Configuration {
  14. //
  15. // private boolean minConfigAvailable = false;
  16. //
  17. // /**
  18. // * Module List is the list of modules that are currently logged.
  19. // */
  20. // private ArrayList<Module> moduleList = new ArrayList<Module>();
  21. //
  22. // private ArrayList<Configuration> configurations = new ArrayList<Configuration>();
  23. //
  24. // /**
  25. // *
  26. // * @param module
  27. // */
  28. // public Configuration(final Module module){
  29. // moduleList.add(module);
  30. // }
  31. //
  32. // /**
  33. // * Default Ctor
  34. // */
  35. // public Configuration(){
  36. //// moduleList.add(module);
  37. // }
  38. //
  39. // /**
  40. // *
  41. // * @return
  42. // */
  43. // public boolean checkForMinimumConfigurations(){
  44. // Module curModule = null;
  45. // int airlock = 0;
  46. // int control = 0;
  47. // int power = 0;
  48. // int foodWaterStorage = 0;
  49. // int dormitory = 0;
  50. // int canteen = 0;
  51. // int sanitation = 0;
  52. // int plain = 0;
  53. //
  54. //
  55. // if (minConfigAvailable == false && moduleList.size() > 0){
  56. //
  57. // for(int i = 0; i < moduleList.size(); i++){
  58. // curModule = moduleList.get(i);
  59. // if (curModule.getStringType().equals("Airlock")){
  60. // airlock++;
  61. // }
  62. // else if (curModule.getStringType().equals("Control")){
  63. // control++;
  64. // }
  65. // else if (curModule.getStringType().equals("Power")){
  66. // power++;
  67. // }
  68. // else if (curModule.getStringType().equals("Food & Water Storage")){
  69. // foodWaterStorage++;
  70. // }
  71. // else if (curModule.getStringType().equals("Dormitory")){
  72. // dormitory++;
  73. // }
  74. // else if(curModule.getStringType().equals("Canteen")){
  75. // canteen++;
  76. // }
  77. // else if(curModule.getStringType().equals("Sanitation")){
  78. // sanitation++;
  79. // }
  80. // else if(curModule.getStringType().equals("Plain")){
  81. // plain++;
  82. // }
  83. // else{
  84. //// System.err.println("Invalid Module");
  85. // }
  86. // }
  87. // }
  88. // else{
  89. //// System.err.println("NO MODULES or MinConfig is true.");
  90. // }
  91. //
  92. // if(airlock >= 1 && control >= 1 && power >= 1 && foodWaterStorage >= 1 && dormitory >= 1 && canteen >= 1 && sanitation >= 1 && plain >= 3){
  93. // minConfigAvailable = true;
  94. // return true;
  95. // }
  96. // else{
  97. // minConfigAvailable = false;
  98. // return false;
  99. // }
  100. // }
  101. //
  102. //
  103. // /**
  104. // * Getter for this Module List.
  105. // * @return returns this module list.
  106. // */
  107. // public ArrayList<Module> getModuleList(){
  108. // return this.moduleList;
  109. // }
  110. //
  111. // /**
  112. // * Getter for the boolean value of
  113. // * weather or not a Minimum configuration is ready or not.
  114. // * @return
  115. // */
  116. // public final boolean minConfigAvailable(){
  117. // return minConfigAvailable;
  118. // }
  119. // //TODO add mutator methods for the module list??
  120. //
  121. //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement