|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpeakml.io.SetInfo
public class SetInfo
Central point for collecting all information about a set. A set combines multiple
measurements with a logical relationship (eg technical replicates). In order to do
this, measurement id's are stored in the class. The Header class provides
access methods for easily retrieval of the MeasurementInfo instances.
| Field Summary | |
|---|---|
static int |
BIOLOGICAL_REPLICATES
Type indicating that this set is used to combine biological replicates (either files or sets) |
static int |
SET
Type indicating that this set is used to combine other sets |
static int |
TECHNICAL_REPLICATES
Type indicating that this set is used to combine technical replicates (either files or sets) |
| Constructor Summary | |
|---|---|
SetInfo(SetInfo setinfo)
Copy constructor, which makes a deep copy of the given SetInfo instance. |
|
SetInfo(java.lang.String id,
int type,
int... measurementids)
Constructs a new set with the given id, type and measurement id's. |
|
| Method Summary | |
|---|---|
void |
addChild(SetInfo child)
Adds the given set as a child to this set. |
void |
addMeasurementID(int id)
Adds the given measurement id to the list of id's. |
boolean |
containsMeasurementID(int id)
Returns true when the given id is associated to this set (including all the child sets). |
java.util.Vector<java.lang.Integer> |
getAllMeasurementIDs()
Returns a list of all the measurement id's associated with this set (including all the child sets). |
SetInfo |
getChild(int index)
Returns the child at the given index. |
java.util.Vector<SetInfo> |
getChildren()
Returns the list with all the children. |
java.lang.String |
getID()
Returns the id of this set. |
int |
getMeasurementID(int index)
Returns the measurement id at the given index in this set information. |
java.util.Vector<java.lang.Integer> |
getMeasurementIDs()
Returns a list of all the measurement id's associated with this set (excluding all the child sets). |
int |
getNrChildren()
Returns the number of children in this set. |
int |
getNrMeasurementIDs()
Returns the number of measurement id's associated to this set. |
int |
getType()
Returns the type of this set. |
boolean |
getVisible()
For more information see setVisible(boolean). |
void |
setVisible(boolean b)
Convenience function for user interface applications to keep track off whether to show this set or not. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int SET
public static int TECHNICAL_REPLICATES
public static int BIOLOGICAL_REPLICATES
| Constructor Detail |
|---|
public SetInfo(java.lang.String id,
int type,
int... measurementids)
id - The id of the set.type - The type of the set.measurementids - The measurement id's to associate to the set.public SetInfo(SetInfo setinfo)
SetInfo instance.
setinfo - The instance to copy.| Method Detail |
|---|
public java.lang.String getID()
public int getType()
public void setVisible(boolean b)
b - Boolean indicating show or not.public boolean getVisible()
setVisible(boolean).
public void addChild(SetInfo child)
child - The set to be added as a child.public int getNrChildren()
public SetInfo getChild(int index)
throws java.lang.IndexOutOfBoundsException
index - The index where the child is located.
java.lang.IndexOutOfBoundsException - Thrown when the given index is out of bounds for the list of children.public java.util.Vector<SetInfo> getChildren()
public void addMeasurementID(int id)
id - The integer measurement id to be added to this set.public java.util.Vector<java.lang.Integer> getMeasurementIDs()
public int getMeasurementID(int index)
index - The index of the measurement info.
public int getNrMeasurementIDs()
public java.util.Vector<java.lang.Integer> getAllMeasurementIDs()
public boolean containsMeasurementID(int id)
id - The measurement id to check for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||