UniVista.support
Class Run

java.lang.Object
  |
  +--UniVista.support.Run
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class Run
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

holds information about a run of the code. Note that the Study is an object reference inside of this object. When it is serialized the Study will be lost. When loaded in from a serialized object the codeName and studyName strings need to be used to relocate the appropriate Study and set the object reference.

See Also:
Serialized Form

Field Summary
static java.lang.String UNTITLED
           
 
Constructor Summary
Run(Study s)
          create a new run.
Run(Study iStudy, boolean initialize)
           
 
Method Summary
 java.lang.Object clone()
          clone a run.
 void duplicate(Run toDup)
          duplicate a run.
 java.lang.String getCodeName()
          Get the name of the Run's Code
 java.lang.String getDescription()
          Access the Run's description
 java.lang.String getName()
          Access the Run's name
 Study getStudy()
          return the Study the run is associated with
 java.lang.String getStudyName()
          Get the name of the Run's Study
 VariableHash getVariables()
          get the variables of the Run
 void initializeVariables()
          reset all of the variables of a run
 void revertVariable(Variable toRevert)
          revert one variable
 void setDescription(java.lang.String description)
          Change the description of the Run
 void setName(java.lang.String name)
          Change the name of the Run
 void setStudy(Study newStudy)
          set the study the run is associated with.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNTITLED

public static final java.lang.String UNTITLED
Constructor Detail

Run

public Run(Study s)
create a new run. Sets internal information and makes a initial set of variables

Run

public Run(Study iStudy,
           boolean initialize)
Method Detail

clone

public java.lang.Object clone()
clone a run. Note that the Study is copied as an object reference
Overrides:
clone in class java.lang.Object

duplicate

public void duplicate(Run toDup)
duplicate a run. Note that the Study is duplicated as an object reference

getCodeName

public java.lang.String getCodeName()
Get the name of the Run's Code

getDescription

public java.lang.String getDescription()
Access the Run's description

getName

public java.lang.String getName()
Access the Run's name

getStudy

public Study getStudy()
return the Study the run is associated with

getStudyName

public java.lang.String getStudyName()
Get the name of the Run's Study

getVariables

public VariableHash getVariables()
get the variables of the Run

initializeVariables

public void initializeVariables()
reset all of the variables of a run

revertVariable

public void revertVariable(Variable toRevert)
revert one variable

setDescription

public void setDescription(java.lang.String description)
Change the description of the Run

setName

public void setName(java.lang.String name)
Change the name of the Run

setStudy

public void setStudy(Study newStudy)
set the study the run is associated with. Don't call unless you really mean it.