コード例 #1
0
 /**
  * Gets a specified row as a fault trace
  *
  * @param row
  */
 public LocationList getRowAsTrace(int row) {
   List<Location> locs = Lists.newArrayList();
   for (int col = 0; col < getNumCols(); col++) {
     locs.add(get(row, col));
   }
   return LocationList.create(locs);
 }
コード例 #2
0
 @Override
 public LocationList getEvenlyDiscritizedListOfLocsOnSurface() {
   return LocationList.create(this);
   // LocationList locList = new LocationList();
   // Iterator<Location> it = listIterator();
   // while(it.hasNext()) locList.add((Location)it.next());
   // return locList;
 }