private void setType ( ) { type = ( gop == 0 ) ? GapPenalty . Type . LINEAR : ( ( gep == 0 ) ? GapPenalty . Type . CONSTANT : GapPenalty . Type . AFFINE ) ; }
helper method to set the type given the open and extension penalties