|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.co.agena.minerva.util.model.DataSetGrouping
public class DataSetGrouping
The DataSetGrouping class encapsulates a set of DataSet objects. DataSetGroupings can be used to store multiple sets of marginal probabilities.
For example, a prediction might contain marginal probabilities for ExtendedStates 1 to 5 in three ExtendedNodes: A, B and C. The probability for each ExtendedState would be stored in a DataPoint. These DataPoints would be collected into a DataSet for each ExtendedNode. The entire prediction for all three nodes would then consist of a DataSetGrouping holding all three DataSets.
Constructor Summary | |
---|---|
DataSetGrouping()
Default constructor. |
|
DataSetGrouping(NameDescription name,
int connObjectId)
Constructs a DataSetGrouping with the specified name and connected object ID. |
Method Summary | |
---|---|
void |
addDataSet(DataSet dataSet)
Adds the supplied DataSet to the DataSetGrouping. |
void |
addDataSet(DataSet dataSet,
int orderPos)
Adds the supplied DataSet to the DataSetGrouping at the specified order position. |
void |
clearDataSets()
Clears all the DataSets in this DataSetGrouping. |
int |
getConnObjectId()
Returns the connected object ID of the DataSetGrouping. |
java.util.List |
getDataSets()
Returns all of the DataSets in this DataSetGrouping. |
java.util.List |
getDataSetsForConnObject(int connObjectId)
Returns the DataSets associated with the specified connected object ID from this DataSetGrouping. |
DataSet |
getDataSetWithId(int id)
Returns the DataSet with the specified ID from this DataSetGrouping. |
int |
getId()
Returns the unique ID of the DataSetGrouping. |
NameDescription |
getName()
Returns the name of the DataSetGrouping. |
int |
getNextDataSetId()
Finds the next available ID to assign to a DataSet based on the IDs of DataSets currently in the DataSetGrouping. |
java.util.List |
removeDataSetsForConnObject(int connObjId)
Removes the DataSets associated with the specified connected object ID from this DataSetGrouping. |
DataSet |
removeDataSetWithId(int id)
Removes the DataSets with the specified ID from this DataSetGrouping. |
void |
setConnObjectId(int connObjectId)
Sets the connected object ID of the DataSetGrouping to the ID specified. |
void |
setDataSets(java.util.List dataSets)
Assigns the supplied List of DataSets to this DataSetGrouping. |
void |
setId(int id)
Sets the unique ID of the DataSetGrouping to the ID specified. |
void |
setName(NameDescription name)
Sets the name of the DataSetGrouping to the name specified. |
java.lang.String |
toString()
Returns a String representation of this DataSetGrouping which consists of its name and String representations of the DataSets contained in it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DataSetGrouping()
public DataSetGrouping(NameDescription name, int connObjectId)
name
- the name of the DataSetGroupingconnObjectId
- the ID of the object with which the DataSetGrouping
is associatedMethod Detail |
---|
public int getConnObjectId()
public void setConnObjectId(int connObjectId)
connObjectId
- the new connected object ID for the DataSetGroupingpublic int getId()
getId
in interface Identifiable
public void setId(int id)
id
- the new ID for the DataSetGroupingpublic NameDescription getName()
public void setName(NameDescription name)
name
- the new name for the DataSetGroupingpublic java.util.List getDataSets()
public void setDataSets(java.util.List dataSets)
dataSets
- the new List of DataSetspublic void addDataSet(DataSet dataSet)
dataSet
- the DataSet to be addedpublic void addDataSet(DataSet dataSet, int orderPos)
dataSet
- the DataSet to be addedorderPos
- the position where the DataSet is to be addedpublic int getNextDataSetId()
public DataSet getDataSetWithId(int id) throws MinervaIDException
id
- the unique identifier of the DataSet
MinervaIDException
- if a DataSet with the specified ID
does not existpublic java.util.List getDataSetsForConnObject(int connObjectId) throws MinervaIDException
connObjectId
- the unique identifier of the object with which the
DataSets are associated
MinervaIDException
- if a DataSet with the specified connected
object ID does not existpublic DataSet removeDataSetWithId(int id) throws MinervaIDException
id
- the unique identifier of the DataSets
to be removed
MinervaIDException
- if a DataSet with the specified ID
does not existpublic java.util.List removeDataSetsForConnObject(int connObjId) throws MinervaIDException
connObjId
- the unique identifier of the object with which the
DataSets are associated
MinervaIDException
- if a DataSet with the specified connected
object ID does not existpublic void clearDataSets()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |