Public Member Functions | |
Observable () | |
Default constructor. | |
Observable (String name) | |
Named constructor. | |
Observable (String name, Unit unit) | |
Named constructor with a Unit. | |
String | getName () |
Observable | setName (String name) |
String | getDescription () |
Observable | setDescription (String description) |
Unit | getCanonicalUnit () |
Get the typical unit used for representing this Observable. | |
Observable | setCanonicalUnit (Unit canonicalUnit) |
Set the typical unit used for representing this Observable. | |
Set< ObservableGroup > | getObservableGroups () |
Observable | setObservableGroups (Set< ObservableGroup > observableGroups) |
Observable | addObservableGroup (ObservableGroup observableGroup) |
Observable | removeObservableGroup (ObservableGroup observableGroup) |
Set< YAxis > | getYAxes () |
Observable | setYAxes (Set< YAxis > yAxes) |
Observable | addYAxis (YAxis yAxis) |
Observable | removeYAxis (YAxis yAxis) |
String | toString () |
Default String representation: declares that method is not properly defined by default. | |
Package Functions | |
.hibernate.annotations. | Cascade (value={org.hibernate.annotations.CascadeType.ALL}) private Set< YAxis > _yAxes |
Y-axes which contain this observable. | |
.hibernate.annotations. | Type (type="cedar.hepdata.db.UnitUserType") private Unit _canonicalUnit |
Canonical unit for this observable. | |
Logger | log () |
Neat method to allow every class to get hold of a custom-named Logger. |
It is also a member of (in general several) ObservableGroups.
Definition at line 19 of file Observable.java.
Observable | ( | ) |
Observable | ( | String | name | ) |
Observable | ( | String | name, | |
Unit | unit | |||
) |
Named constructor with a Unit.
Definition at line 61 of file Observable.java.
00061 { 00062 this(name); 00063 log().debug("Calling 2 arg constructor"); 00064 setCanonicalUnit(unit); 00065 }
.hibernate.annotations. Cascade | ( | ) | [package] |
Y-axes which contain this observable.
.hibernate.annotations. Type | ( | type | = "cedar.hepdata.db.UnitUserType" |
) | [package] |
Canonical unit for this observable.
String getName | ( | ) |
Observable setName | ( | String | name | ) |
String getDescription | ( | ) |
Observable setDescription | ( | String | description | ) |
Unit getCanonicalUnit | ( | ) |
Get the typical unit used for representing this Observable.
It doesn't have to be canonical in the Unit.canonicalUnit() sense!
Definition at line 94 of file Observable.java.
Observable setCanonicalUnit | ( | Unit | canonicalUnit | ) |
Set the typical unit used for representing this Observable.
It doesn't have to be canonical in the Unit.canonicalUnit() sense!
Definition at line 100 of file Observable.java.
Set<ObservableGroup> getObservableGroups | ( | ) |
Definition at line 107 of file Observable.java.
Referenced by ObservableGroup.addObservable(), and ObservableGroup.removeObservable().
Observable setObservableGroups | ( | Set< ObservableGroup > | observableGroups | ) |
Observable addObservableGroup | ( | ObservableGroup | observableGroup | ) |
Definition at line 115 of file Observable.java.
References ObservableGroup.getObservables().
00115 { 00116 if (observableGroup != null) { 00117 observableGroup.getObservables().add(this); 00118 _observableGroups.add(observableGroup); 00119 } else { 00120 log().warn("Tried to add a null ObservableGroup to an Observable"); 00121 } 00122 return this; 00123 }
Observable removeObservableGroup | ( | ObservableGroup | observableGroup | ) |
Definition at line 124 of file Observable.java.
References ObservableGroup.getObservables().
00124 { 00125 if (observableGroup != null) { 00126 observableGroup.getObservables().remove(this); 00127 _observableGroups.remove(observableGroup); 00128 } else { 00129 log().warn("Tried to remove a null ObservableGroup from an Observable"); 00130 } 00131 return this; 00132 }
Set<YAxis> getYAxes | ( | ) |
Observable setYAxes | ( | Set< YAxis > | yAxes | ) |
Observable addYAxis | ( | YAxis | yAxis | ) |
Definition at line 144 of file Observable.java.
References YAxis.setObservable().
00144 { 00145 if (yAxis != null) { 00146 _yAxes.add(yAxis); 00147 yAxis.setObservable(this); 00148 } else { 00149 log().warn("Tried to add a null YAxis to an Observable"); 00150 } 00151 return this; 00152 }
Observable removeYAxis | ( | YAxis | yAxis | ) |
Definition at line 153 of file Observable.java.
References YAxis.setObservable().
00153 { 00154 if (yAxis != null) { 00155 _yAxes.remove(yAxis); 00156 yAxis.setObservable(null); 00157 } else { 00158 log().warn("Tried to remove a null YAxis from an Observable"); 00159 } 00160 return this; 00161 }
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(), DatasetError.setNormType(), and Uncertainty.toString().
String toString | ( | ) | [inherited] |
Default String representation: declares that method is not properly defined by default.
Reimplemented in Axis, Bin, Data, Dataset, Experiment, Modification, Paper, Particle, Point, Property, Reaction, Reference, Uncertainty, XAxis, and YAxis.
Definition at line 19 of file Storeable.java.
00019 { 00020 StringBuffer s = new StringBuffer(); 00021 s.append(this.getClass().getName() + ".toString() is not overloaded."); 00022 return s.toString(); 00023 }