Public Member Functions | |
Experiment () | |
Default constructor. | |
Experiment (String name) | |
Named constructor. | |
Experiment (String name, String informalName) | |
Constructor which specifies both the formal and informal expt names. | |
String | getName () |
Get the experiment name. | |
Experiment | setName (String name) |
Set the experiment name. | |
String | getInformalName () |
Get the informal name for this experiment. | |
Experiment | setInformalName (String informalName) |
Set the informal name for this experiment. | |
String | getCollider () |
Get the associated collider. | |
Experiment | setCollider (String collider) |
Set the associated collider. | |
String | getLaboratory () |
Get associated laboratory. | |
Experiment | setLaboratory (String laboratory) |
Set associated laboratory. | |
String | getComment () |
Experiment | setComment (String comment) |
int | compareTo (Experiment other) |
boolean | equals (Object other) |
int | hashCode () |
String | toString () |
String representation. | |
Package Functions | |
Logger | log () |
Neat method to allow every class to get hold of a custom-named Logger. |
This object is specifically the particular run of an experiment, associated with a period of institutional funding, so for example CDF Run 1 and CDF Run 2 are different experiments in this scheme, as are NA48, NA482a, etc.
Definition at line 18 of file Experiment.java.
Experiment | ( | ) |
Experiment | ( | String | name | ) |
Named constructor.
Definition at line 50 of file Experiment.java.
References Experiment.setName().
00050 { 00051 this(); 00052 setName(name); 00053 }
Experiment | ( | String | name, | |
String | informalName | |||
) |
Constructor which specifies both the formal and informal expt names.
Definition at line 57 of file Experiment.java.
References Experiment.setInformalName().
00057 { 00058 this(name); 00059 setInformalName(informalName); 00060 }
String getName | ( | ) |
Get the experiment name.
Definition at line 67 of file Experiment.java.
Referenced by Experiment.compareTo(), Experiment.hashCode(), and Experiment.toString().
Experiment setName | ( | String | name | ) |
Set the experiment name.
Definition at line 71 of file Experiment.java.
Referenced by Experiment.Experiment().
String getInformalName | ( | ) |
Get the informal name for this experiment.
Definition at line 78 of file Experiment.java.
Referenced by Experiment.hashCode().
Experiment setInformalName | ( | String | informalName | ) |
Set the informal name for this experiment.
Definition at line 82 of file Experiment.java.
Referenced by Experiment.Experiment().
String getCollider | ( | ) |
Get the associated collider.
Definition at line 89 of file Experiment.java.
Referenced by Experiment.hashCode().
Experiment setCollider | ( | String | collider | ) |
String getLaboratory | ( | ) |
Get associated laboratory.
Definition at line 100 of file Experiment.java.
Referenced by Experiment.hashCode().
Experiment setLaboratory | ( | String | laboratory | ) |
String getComment | ( | ) |
Definition at line 111 of file Experiment.java.
Referenced by Experiment.hashCode(), and Experiment.toString().
Experiment setComment | ( | String | comment | ) |
int compareTo | ( | Experiment | other | ) |
Definition at line 123 of file Experiment.java.
References Experiment.getName(), and Storeable.log().
00123 { 00124 log().debug("Comparing experiments..."); 00125 return getName().compareTo(other.getName()); 00126 }
boolean equals | ( | Object | other | ) |
Definition at line 129 of file Experiment.java.
References Experiment.hashCode().
00129 { 00130 if (this == other) return true; 00131 if (! (other instanceof Experiment)) return false; 00132 return hashCode() == other.hashCode(); 00133 }
int hashCode | ( | ) |
Definition at line 136 of file Experiment.java.
References Experiment.getCollider(), Experiment.getComment(), Experiment.getInformalName(), Experiment.getLaboratory(), and Experiment.getName().
Referenced by Experiment.equals().
00136 { 00137 int code = 61; 00138 if (getName() != null) code ^= getName().hashCode(); 00139 if (getInformalName() != null) code ^= getInformalName().hashCode(); 00140 if (getCollider() != null) code ^= getCollider().hashCode(); 00141 if (getLaboratory() != null) code ^= getLaboratory().hashCode(); 00142 if (getComment() != null) code ^= getComment().hashCode(); 00143 return code; 00144 }
String toString | ( | ) |
String representation.
Reimplemented from Storeable.
Definition at line 151 of file Experiment.java.
References Experiment.getComment(), and Experiment.getName().
00151 { 00152 StringBuffer s = new StringBuffer(); 00153 s.append("Experiment: " + getName() + "\n"); 00154 s.append(" Comment: " + getComment() + "\n"); 00155 return s.toString(); 00156 }
Logger log | ( | ) | [package, inherited] |
Neat method to allow every class to get hold of a custom-named Logger.
Definition at line 14 of file Storeable.java.
Referenced by Uncertainty.compareTo(), Reference.compareTo(), PointError.compareTo(), Modification.compareTo(), Experiment.compareTo(), DatasetError.compareTo(), AxisError.compareTo(), Data.makeExample(), Data.makeExampleDataset(), Data.makeExampleExperiment(), Data.makeExamplePaper(), Data.makeExampleXAxes(), Data.makeExampleYAxes(), AxisError.setAxis(), DatasetError.setDataset(), DatasetError.setNormType(), PointError.setPoint(), and Uncertainty.toString().