public int max_value(int p_i,int p_layer){
  int i=Math.max(p_i,0);
  i=Math.min(i,class_count - 1);
  int layer=Math.max(p_layer,0);
  layer=Math.min(layer,layer_structure.size() - 1);
  return clearance_rows[i].max_value[layer];
}

public int max_value ( int p_i , int p_layer ) { int i = Math . max ( p_i , 0 ) ; i = Math . min ( i , class_count - 1 ) ; int layer = Math . max ( p_layer , 0 ) ; layer = Math . min ( layer , layer_structure . size ( ) - 1 ) ; return clearance_rows [ i ] . max_value [ layer ] ; }
returns the maximal required spacing of clearance class with index p_i to all other clearance classes on layer p_layer .
