public ClearanceMatrix(int p_class_count,BrdLayerStructure p_layer_structure,String[] p_name_arr){
  class_count=Math.max(p_class_count,1);
  layer_structure=p_layer_structure;
  clearance_rows=new ClearanceMatrixRow[class_count];
  for (int index=0; index < class_count; ++index) {
    clearance_rows[index]=new ClearanceMatrixRow(this,p_name_arr[index]);
  }
  max_value_on_layer=new int[layer_structure.size()];
}

public ClearanceMatrix ( int p_class_count , BrdLayerStructure p_layer_structure , String [ ] p_name_arr ) { class_count = Math . max ( p_class_count , 1 ) ; layer_structure = p_layer_structure ; clearance_rows = new ClearanceMatrixRow [ class_count ] ; for ( int index = 0 ; index < class_count ; ++ index ) { clearance_rows [ index ] = new ClearanceMatrixRow ( this , p_name_arr [ index ] ) ; } max_value_on_layer = new int [ layer_structure . size ( ) ] ; }
creates a new instance for p_class_count clearance classes on p_layer_count layers . p_names is an array of dimension p_class_count ;
