public class SimpleGapPenalty extends java.lang.Object implements GapPenalty
GapPenalty.Type| Constructor and Description |
|---|
SimpleGapPenalty()
Creates a new set of gap penalties using the defaults.
|
SimpleGapPenalty(short gop,
short gep)
Creates a new set of gap penalties.
|
| Modifier and Type | Method and Description |
|---|---|
short |
getExtensionPenalty()
Returns penalty given when an already open gap elongates by a single element
|
short |
getOpenPenalty()
Returns penalty given when a deletion or insertion gap first opens
|
GapPenalty.Type |
getType()
Returns
GapPenalty.Type stored. |
static void |
setDefaultExtensionPenalty(short gep)
Sets the default gap extension penalty.
|
static void |
setDefaultOpenPenalty(short gop)
Sets the default gap open penalty.
|
void |
setExtensionPenalty(short gep)
Sets penalty given when an already open gap elongates by a single element
|
void |
setOpenPenalty(short gop)
Sets penalty given when a deletion or insertion gap first opens
|
public SimpleGapPenalty()
public SimpleGapPenalty(short gop,
short gep)
gop - the gap open penaltygep - the gap extension penaltypublic static void setDefaultExtensionPenalty(short gep)
gep - the default gap extension penaltypublic static void setDefaultOpenPenalty(short gop)
gop - the default gap open penaltypublic short getExtensionPenalty()
GapPenaltygetExtensionPenalty in interface GapPenaltypublic short getOpenPenalty()
GapPenaltygetOpenPenalty in interface GapPenaltypublic GapPenalty.Type getType()
GapPenaltyGapPenalty.Type stored.getType in interface GapPenaltypublic void setExtensionPenalty(short gep)
GapPenaltysetExtensionPenalty in interface GapPenaltygep - gap extension penaltypublic void setOpenPenalty(short gop)
GapPenaltysetOpenPenalty in interface GapPenaltygop - gap open penalty