Public Member Functions | |
Property () | |
No-arg constructor. | |
Property (String name) | |
Useful constructor. | |
Property (String name, Unit unit, Double lowValue, Double highValue) | |
Really useful constructor. | |
Property | setValues (Unit unit, Double lowValue, Double highValue) |
Convenient way to set the unit and bounds at one go. | |
String | getName () |
Get the name of this property. | |
Property | setName (String name) |
Set the name of this property. | |
Double | getLowValue () |
Get the low bound on the property's value. | |
Property | setLowValue (Double lowValue) |
Set the low bound on the property's value. | |
Double | getHighValue () |
Get the high bound on the property's value. | |
Property | setHighValue (Double highValue) |
Set the high bound on the property's value. | |
Unit | getUnit () |
Get the unit in which this property is measured. | |
Property | setUnit (Unit unit) |
Set the unit in which this property is measured. | |
String | toString () |
String representation. | |
Package Functions | |
.hibernate.annotations. | Type (type="cedar.hepdata.db.UnitUserType") private Unit _unit |
Units of property. | |
Logger | log () |
Neat method to allow every class to get hold of a custom-named Logger. |
Definition at line 16 of file Property.java.
Property | ( | ) |
Property | ( | String | name | ) |
Useful constructor.
Definition at line 47 of file Property.java.
00047 { 00048 setName(name); 00049 }
Property | ( | String | name, | |
Unit | unit, | |||
Double | lowValue, | |||
Double | highValue | |||
) |
.hibernate.annotations. Type | ( | type | = "cedar.hepdata.db.UnitUserType" |
) | [package] |
Units of property.
Property setValues | ( | Unit | unit, | |
Double | lowValue, | |||
Double | highValue | |||
) |
Convenient way to set the unit and bounds at one go.
Definition at line 62 of file Property.java.
00062 { 00063 setUnit(unit); 00064 setLowValue(lowValue); 00065 setHighValue(highValue); 00066 return this; 00067 }
String getName | ( | ) |
Property setName | ( | String | name | ) |
Double getLowValue | ( | ) |
Property setLowValue | ( | Double | lowValue | ) |
Double getHighValue | ( | ) |
Property setHighValue | ( | Double | highValue | ) |
Unit getUnit | ( | ) |
Property setUnit | ( | Unit | unit | ) |
String toString | ( | ) |
String representation.
Reimplemented from Storeable.
Definition at line 125 of file Property.java.
00125 { 00126 StringBuffer s = new StringBuffer(); 00127 s.append("(" + getLowValue() + "-" + getHighValue() + ") " + getUnit().toString()); 00128 return s.toString(); 00129 }
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().