Package mgui.interfaces.projects
Class ProjectInstanceGroup
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.projects.ProjectInstanceGroup
- All Implemented Interfaces:
java.lang.Comparable<ProjectInstanceGroup>
,InterfaceObject
,NamedObject
,TreeObject
,CleanableObject
public class ProjectInstanceGroup extends AbstractInterfaceObject implements java.lang.Comparable<ProjectInstanceGroup>
Represents a group partition in a project, which refers to a set of subdirectories within the
instances directory, each representing a different level of the group. As an example, if a clinical
trial is examining differences between patients and controls, this can be organized by specifying an
instance group named "Experimental Group", having two levels: "Patient" and "Control", mapping to two
directories in the instances directory called "patient" and "control".
An arbitrary number of groups can be specified, sorted by their depth in the directory tree. For instance, to subdivide each experimental group by gender, a second group called "Gender" can be created, with the levels "Male" and "Female". This will create two subdirectories "male" and "female" within each "Experimental Group" directory. Thus:
-> instance_dir
----> patient
---------> male
---------> female
----> control
---------> male
---------> female
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ArrayList<java.lang.String>
levels
Fields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes
-
Constructor Summary
Constructors Constructor Description ProjectInstanceGroup(java.lang.String name, java.util.ArrayList<java.lang.String> levels)
Constructs a new instance group, and a list of levels. -
Method Summary
Modifier and Type Method Description int
compareTo(ProjectInstanceGroup group)
java.util.ArrayList<java.lang.String>
getLevels()
void
setLevels(java.util.ArrayList<java.lang.String> levels)
Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getName, getTreeLabel, isDestroyed, issueTreeNode, setName, setTreeNode, updateTreeNodes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
levels
protected java.util.ArrayList<java.lang.String> levels
-
-
Constructor Details
-
ProjectInstanceGroup
public ProjectInstanceGroup(java.lang.String name, java.util.ArrayList<java.lang.String> levels)Constructs a new instance group, and a list of levels.- Parameters:
name
-levels
-
-
-
Method Details
-
getLevels
public java.util.ArrayList<java.lang.String> getLevels() -
setLevels
public void setLevels(java.util.ArrayList<java.lang.String> levels) -
compareTo
- Specified by:
compareTo
in interfacejava.lang.Comparable<ProjectInstanceGroup>
-