Package test.model

Examples of test.model.StorageControllerInfo


  ls = new LaptopServices();
  scs = new StorageServices();
  ds = new DiskServices();

  si = new ServerInfo();
  sci = new StorageControllerInfo();

  sIList = new ArrayList<ServerInfo>();
  lIList = new ArrayList<LaptopInfo>();
  sCIList = new ArrayList<StorageControllerInfo>();
  dServerList = new ArrayList<DiskInfo>();
View Full Code Here


    new InputStreamReader(
      ServerServices.class.getClassLoader().getResourceAsStream(path)));
  int count = 0;
  storageCsv.readLine();
  String dataRow = storageCsv.readLine();
  StorageControllerInfo sCInfo;
  while (dataRow != null){
   sCInfo= new StorageControllerInfo();
   String[] dataArray = dataRow.split(",");
   for (String item:dataArray) {
    if (count == 0) sCInfo.setWareHouseID(Integer.parseInt(item));
    if (count == 1) sCInfo.setManufacturer(item);
    if (count == 2) sCInfo.setModel(item);
    if (count == 3) sCInfo.setBus(item);
    if (count == 4) sCInfo.setDiskPortType(item);
    if (count == 5) sCInfo.setDiskPorts(Integer.parseInt(item));
    ++count;
   }
   count = 0;
   sCInfoList.add(sCInfo);
   dataRow = storageCsv.readLine(); // Read next line of data.
View Full Code Here

TOP

Related Classes of test.model.StorageControllerInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.