public abstract class InhConstraint extends Constraint implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
offset
This array is used to find the start indices of the conditional
distributions.
|
counts, freq, usedPositions| Modifier | Constructor and Description |
|---|---|
protected |
InhConstraint(int[] pos,
int[] alphabetLength)
Creates a new
InhConstraint instance. |
protected |
InhConstraint(StringBuffer xml)
The standard constructor for the interface
Storable. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendAdditionalInfo(StringBuffer xml)
This method appends additional information that is not stored in the base
class to the
StringBuffer. |
InhConstraint |
clone() |
protected void |
extractAdditionalInfo(StringBuffer xml)
This method parses additional information from the
StringBuffer
that is not parsed in the base class. |
String |
getDescription(AlphabetContainer con,
int i)
Returns the decoded symbol for the encoded symbol
i. |
int |
satisfiesSpecificConstraint(Sequence s,
int start)
This method returns the index of the specific constraint that is
fulfilled by the
Sequence seq beginning at position
start. |
add, add, estimate, estimateUnConditional, getCount, getFreq, getFreq, getFreqInfo, getMarginalOrder, getNumberOfSpecificConstraints, getPosition, getPositions, getXMLTag, reset, resetCounts, toString, toXMLprotected int[] offset
protected InhConstraint(int[] pos,
int[] alphabetLength)
InhConstraint instance.pos - the positionsalphabetLength - the length of each alphabet (not only the used positions)Constraint.Constraint(int[], int)protected InhConstraint(StringBuffer xml) throws NonParsableException
Storable.
Creates a new InhConstraint instance out of its XML
representation.xml - the XML representation as StringBufferNonParsableException - if the InhConstraint instance could not be
reconstructed out of the XML representation (the
StringBuffer could not be parsed)Storable,
Constraint.Constraint(StringBuffer)protected void extractAdditionalInfo(StringBuffer xml) throws NonParsableException
ConstraintStringBuffer
that is not parsed in the base class.extractAdditionalInfo in class Constraintxml - the StringBuffer to be parsedNonParsableException - if something with the parsing went wrongpublic InhConstraint clone() throws CloneNotSupportedException
clone in class ConstraintCloneNotSupportedExceptionpublic int satisfiesSpecificConstraint(Sequence s, int start)
ConstraintSequence seq beginning at position
start.satisfiesSpecificConstraint in class Constraints - the sequencestart - the start positionprotected void appendAdditionalInfo(StringBuffer xml)
ConstraintStringBuffer.appendAdditionalInfo in class Constraintxml - the StringBuffer that is used for appending additional
informationpublic String getDescription(AlphabetContainer con, int i)
Constrainti.getDescription in class Constraintcon - the AlphabetContaineri - the encoded symboli