X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=website%2Ffull_javadoc%2Fcompbio%2Fmetadata%2FLimit.html;h=a61f93735a4a6adbec16d5ec237bcfea2eff75d4;hb=5be600c3985aa7bcb8d8b51d77d773c76e6802bb;hp=f2f409591e84d03f6eae781b0113e15c87b2ce40;hpb=cb02e8a08893701386c270a8bf9d0f08b9cbc4db;p=jabaws.git diff --git a/website/full_javadoc/compbio/metadata/Limit.html b/website/full_javadoc/compbio/metadata/Limit.html index f2f4095..a61f937 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.Object compbio.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)