X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=website%2Ffull_javadoc%2Fcompbio%2Fmetadata%2FLimit.html;h=8e90c39562e8a347a810b27bc8de1751da725cff;hb=f1bdd8da517901fe1d7957d388ea579ad1fbaa3b;hp=f2f409591e84d03f6eae781b0113e15c87b2ce40;hpb=b413eee53fa3cc22a6bd4e03c9ac64bf26b7c834;p=jabaws.git diff --git a/website/full_javadoc/compbio/metadata/Limit.html b/website/full_javadoc/compbio/metadata/Limit.html index f2f4095..8e90c39 100644 --- a/website/full_javadoc/compbio/metadata/Limit.html +++ b/website/full_javadoc/compbio/metadata/Limit.html @@ -2,12 +2,12 @@
- +-java.lang.Object +java.lang.Objectcompbio.metadata.Limit<T>
T
- the type of an executable for which this limit is defined.public class Limit<T>
public class Limit<T>
A value object containing a maximum number of sequences and a maximum average
- sequence length for a preset.
+ sequence length for a preset. Also contains static method for determining the
+ number of sequence and their average length in the List
+
LimitsManager
@@ -129,15 +130,15 @@ A value object containing a maximum number of sequences and a maximum average
+ Instantiate the limit
Limit(int seqNumber,
int seqLength,
- java.lang.String preset)
+ String preset)
-
Limit(int seqNumber,
int seqLength,
- java.lang.String preset,
+ String preset,
boolean isDefault)
@@ -156,7 +157,7 @@ A value object containing a maximum number of sequences and a maximum average
- boolean
equals(java.lang.Object obj)
+
@@ -172,14 +173,14 @@ A value object containing a maximum number of sequences and a maximum average
equals(Object obj)
-static int
getAvgSequenceLength(java.util.List<FastaSequence> data)
+getAvgSequenceLength(List<FastaSequence> data)
Calculates an average sequence length of the dataset
-
+ java.lang.String
String
getPreset()
@@ -212,15 +213,15 @@ A value object containing a maximum number of sequences and a maximum average
- boolean
isExceeded(java.util.List<FastaSequence> data)
+
+ exceeds this limit.
isExceeded(List<FastaSequence> data)
Checks if the number of sequences or their average length in the dataset
- exceeds limits the values defined by this Limit
-
+ java.lang.String
String
toString()
@@ -230,10 +231,10 @@ A value object containing a maximum number of sequences and a maximum average
@@ -254,8 +255,15 @@ Limit
-
Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-
+getClass, notify, notifyAll, wait, wait, wait
getClass, notify, notifyAll, wait, wait, wait
public Limit(int seqNumber,
int seqLength,
- java.lang.String preset)
+ String preset)
+
+
+
seqNumber
- the maximum number of sequences allowed for calculation.
+ RequiredseqLength
- the average length of the sequence, optionalpreset
- the name of preset if any, optional
+IllegalArgumentException
- if the seqNumber is not supplied or the seqLength is negative
@@ -264,7 +272,7 @@ Limit
public Limit(int seqNumber,
int seqLength,
- java.lang.String preset,
+ String preset,
boolean isDefault)
@@ -282,7 +290,7 @@ public Limit(int seqNumber,
getPreset
-public java.lang.String getPreset()
+public String getPreset()
@@ -296,7 +304,8 @@ getAvgSeqLength
public int getAvgSeqLength()
-
+
+
@@ -307,7 +316,8 @@ getSeqNumber
public int getSeqNumber()
-
+
+
@@ -318,7 +328,8 @@ isDefault
public boolean isDefault()
-
+
+
@@ -329,7 +340,7 @@ hashCode
public int hashCode()
@@ -340,10 +351,10 @@ public int hashCode()
equals
-public boolean equals(java.lang.Object obj)
+public boolean equals(Object obj)
@@ -354,10 +365,10 @@ public boolean equals(java.lang.Object obj)
toString
-public java.lang.String toString()
+public String toString()
@@ -368,15 +379,23 @@ public java.lang.String toString()
isExceeded
-public boolean isExceeded(java.util.List<FastaSequence> data)
+public boolean isExceeded(List<FastaSequence> data)
-
+ the limit), false otherwise. First check the number of sequences
+ in the dataset and if it exceeds the limit return true
+ irrespective of the average length. If the number of sequences in
+ the dataset is less than the limit and average length is defined,
+ then check whether the total number of letters (number of
+ sequence multiplied by the average sequence length) is greater
+ then the total number of letters in the dataset. Returns true if
+ the total number of letters in the dataset is greater than the
+ limit, false otherwise.data
-
+data
- the dataset to measure
@@ -384,7 +403,7 @@ public boolean isExceeded(java.util.List<
getAvgSequenceLength
-public static int getAvgSequenceLength(java.util.List<FastaSequence> data)
+public static int getAvgSequenceLength(List<FastaSequence> data)