public BeliefSetField getFieldByName ( String name ) { BeliefSetField field = null ; for ( int i = 0 ; i < fields . length ; i ++ ) { if ( name . equals ( fields [ i ] . getName ( ) ) ) { field = fields [ i ] ; break ; } } return field ; }
Gets the field of this belief set that has the given name .