get the current chain . returns null if we are at the end of the iteration . concode_field_sep int current_model_pos concode_elem_sep int current_chain_pos concode_elem_sep int current_group_pos concode_elem_sep Structure structure concode_field_sep Group next concode_elem_sep void setModelPos concode_elem_sep int getGroupPos concode_elem_sep int getCurrentModel concode_elem_sep boolean hasNext concode_elem_sep void remove concode_elem_sep Group getNextGroup concode_elem_sep boolean hasSubGroup concode_elem_sep int getModelPos concode_elem_sep Structure getStructure concode_elem_sep void setGroupPos concode_elem_sep Object clone concode_elem_sep void setChainPos concode_elem_sep int getChainPos
Chain function ( ) { if ( current_model_pos >= structure . nrModels ( ) ) { return null ; } List < Chain > loc0 = structure . getModel ( current_model_pos ) ; if ( current_chain_pos >= loc0 . size ( ) ) { return null ; } return loc0 . get ( current_chain_pos ) ; }