|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--AFLPcore.Operation | +--AFLPcore.SizeFunction | +--AFLPcore.NoSize
This class will not provide any sizing. However, it can be useful if one wants to show how different lanes ran. It works on the assumption, which is obviously false, that size = scan#. Therefore, this sizing function provides a way to get the scan numbers easily and without using different calls at other points in a program. Since it simply assumes that they are equal, it does not need to be initialized, nor does it have any options.
SizeFunction
,
LocalSouthern
Fields inherited from class AFLPcore.Operation |
descript, helpFile, name, options |
Constructor Summary | |
NoSize()
Create a new NoSize object, which will just use scan numbers as the size. |
Method Summary | |
java.lang.String |
getDescription()
Gives a brief description of this sizing function. |
java.lang.String |
getHelpFile()
Gives the help file that describes the function in more detail |
java.lang.String |
getName()
Gives the name describing this sizing function. |
Option[] |
getOptions()
There are no options for this sizing function. |
int |
getScan(double size)
Gives the input value back as the scan number since the size is the scan number in this case. |
double |
getSize(int scan)
Gives the scan number back as the size. |
void |
init(DataList standardPeaks)
Since this class does not really perform any sizing and instead just assumes that size=scan#, there is no need to initialize it with known points. |
void |
read(java.io.DataInputStream in)
Reads in the properties of this class from the specified input stream. |
void |
setMaxScan(int max)
This class simply interprests the size number as the scan number, so the maximum scan number is not really needed. |
void |
setOptions(Option[] opts)
Since there are no options, this method doesn't do much. |
void |
write(java.io.DataOutputStream out)
Writes all of the information this class needs to store in order to be recreated. |
Methods inherited from class AFLPcore.SizeFunction |
clone |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NoSize()
Method Detail |
public java.lang.String getName()
getName
in class Operation
public java.lang.String getDescription()
getDescription
in class Operation
public java.lang.String getHelpFile()
getHelpFile
in class Operation
public Option[] getOptions()
getOptions
in class Operation
null
public void setOptions(Option[] opts)
Operation
, which this class is a child of.setOptions
in class Operation
AFLPcore.Operation
opts
- the values for the options that this operation
understands.public void init(DataList standardPeaks)
init
in class SizeFunction
standardPeaks
- a list of peakspublic final double getSize(int scan)
getSize
in class SizeFunction
scan
- the scan number to determine the size for.scan
public final int getScan(double size)
getScan
in class SizeFunction
size
- the size in bp, which is also the scan number.size
public void setMaxScan(int max)
setMaxScan
in class SizeFunction
max
- the maximum scan number, ignoredpublic void read(java.io.DataInputStream in) throws java.io.IOException
write
. This
will retrieve this classes state from the input stream. All of the
current data in this class will be replaced.read
in class SizeFunction
in
- the input stream with the data for the class.java.io.IOException
- occurs when a problem is encountered when
reading from the stream.public void write(java.io.DataOutputStream out) throws java.io.IOException
read
can recreate the essential properties of this
class.write
in class SizeFunction
out
- the destination to write the data to.java.io.IOException
- occurs when a problem is encountered when
writing to the stream.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |