Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //OLD CODE 4/19/2014
- //package mars.client;
- //
- //import java.util.ArrayList;
- //
- //import mars.client.Module;
- //
- ///**
- // * @author Matt
- // * @version 1.0
- // */
- //
- //public class Configuration {
- //
- // private boolean minConfigAvailable = false;
- //
- // /**
- // * Module List is the list of modules that are currently logged.
- // */
- // private ArrayList<Module> moduleList = new ArrayList<Module>();
- //
- // private ArrayList<Configuration> configurations = new ArrayList<Configuration>();
- //
- // /**
- // *
- // * @param module
- // */
- // public Configuration(final Module module){
- // moduleList.add(module);
- // }
- //
- // /**
- // * Default Ctor
- // */
- // public Configuration(){
- //// moduleList.add(module);
- // }
- //
- // /**
- // *
- // * @return
- // */
- // public boolean checkForMinimumConfigurations(){
- // Module curModule = null;
- // int airlock = 0;
- // int control = 0;
- // int power = 0;
- // int foodWaterStorage = 0;
- // int dormitory = 0;
- // int canteen = 0;
- // int sanitation = 0;
- // int plain = 0;
- //
- //
- // if (minConfigAvailable == false && moduleList.size() > 0){
- //
- // for(int i = 0; i < moduleList.size(); i++){
- // curModule = moduleList.get(i);
- // if (curModule.getStringType().equals("Airlock")){
- // airlock++;
- // }
- // else if (curModule.getStringType().equals("Control")){
- // control++;
- // }
- // else if (curModule.getStringType().equals("Power")){
- // power++;
- // }
- // else if (curModule.getStringType().equals("Food & Water Storage")){
- // foodWaterStorage++;
- // }
- // else if (curModule.getStringType().equals("Dormitory")){
- // dormitory++;
- // }
- // else if(curModule.getStringType().equals("Canteen")){
- // canteen++;
- // }
- // else if(curModule.getStringType().equals("Sanitation")){
- // sanitation++;
- // }
- // else if(curModule.getStringType().equals("Plain")){
- // plain++;
- // }
- // else{
- //// System.err.println("Invalid Module");
- // }
- // }
- // }
- // else{
- //// System.err.println("NO MODULES or MinConfig is true.");
- // }
- //
- // if(airlock >= 1 && control >= 1 && power >= 1 && foodWaterStorage >= 1 && dormitory >= 1 && canteen >= 1 && sanitation >= 1 && plain >= 3){
- // minConfigAvailable = true;
- // return true;
- // }
- // else{
- // minConfigAvailable = false;
- // return false;
- // }
- // }
- //
- //
- // /**
- // * Getter for this Module List.
- // * @return returns this module list.
- // */
- // public ArrayList<Module> getModuleList(){
- // return this.moduleList;
- // }
- //
- // /**
- // * Getter for the boolean value of
- // * weather or not a Minimum configuration is ready or not.
- // * @return
- // */
- // public final boolean minConfigAvailable(){
- // return minConfigAvailable;
- // }
- // //TODO add mutator methods for the module list??
- //
- //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement