|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiggests.tree.Dataset
public class Dataset
Title: Dataset
Description: Defines a dataset information object, which holds all the relevant information about a specific dataset loaded.
Copyright: Copyright (C) 2007 Joana Gonçalves This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Field Summary | |
---|---|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
Dataset(int id)
Constructs a new Dataset object with the given id. |
Method Summary | |
---|---|
int |
generateNewNodeObjectTypeId(int nodeObjectType,
boolean update)
Generates a new id value (within this dataset) for a new node information object with the specified data type. |
int |
getId()
Returns the dataset id. |
int |
getLastBiclusterGroupId()
Returns the last id given to a bicluster group node information object within the current dataset. |
int |
getLastDiscretizedId()
Returns the last id given to a discretized node information object within the current dataset. |
int |
getLastPostprocessedGroupId()
Returns the last id given to a post-processed group node information object within the current dataset. |
int |
getLastPreprocessedId()
Returns the last id given to a preprocessed node information object within the current dataset. |
java.lang.String |
getName()
Returns the name of this dataset. |
java.lang.String |
toString()
Overrides toString() method from class Object . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public Dataset(int id)
Dataset
object with the given id.
id
- int the given idMethod Detail |
---|
public int generateNewNodeObjectTypeId(int nodeObjectType, boolean update) throws InvalidNodeObjectTypeException
nodeObjectType
- int the type of the node object:NodeInfo.PREPROCESSED
NodeInfo.DISCRETIZED
NodeInfo.BICLUSTER_GROUP
NodeInfo.POSTPROCESSED_GROUP
update
- boolean
true
to update the
number of nodes created in the tree for this
nodeObjectType
so far; false
if one only wants to know which id is next, without
inserting a new node in the tree
InvalidNodeObjectTypeException
- when the node object type is not validpublic java.lang.String getName()
String
holding the name of the datasetpublic int getId()
int
the dataset idpublic int getLastPreprocessedId()
int
the last id given to a preprocessed node
information object within the current datasetpublic int getLastDiscretizedId()
int
the last id given to a discretized node
information object within the current datasetpublic int getLastBiclusterGroupId()
int
the last id given to a bicluster group node information object
within the current datasetpublic int getLastPostprocessedGroupId()
int
the last id given to a post-processed group
node information object within the current datasetpublic java.lang.String toString()
toString()
method from class Object
.
Returns a formatted string with the contents that will appear in
the tree as node name.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |