Property Class Reference

A Property is an abstract base class for the properties stored by YAxiss and Datasets. More...

Inheritance diagram for Property:

Inheritance graph
[legend]

Collaboration diagram for Property:

Collaboration graph
[legend]

List of all members.


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.

Detailed Description

A Property is an abstract base class for the properties stored by YAxiss and Datasets.

Todo:
Current implementation assumes that properties have continuous numeric values... other possibilities?
Author:
Andy Buckley
Version:
Date
2007-09-25 14:01:22 +0100 (Tue, 25 Sep 2007)
Revision
1076

Definition at line 15 of file Property.java.


Constructor & Destructor Documentation

Property (  ) 

No-arg constructor.

Definition at line 43 of file Property.java.

00043 {}

Property ( String  name  ) 

Useful constructor.

Definition at line 46 of file Property.java.

00046                                  {
00047         setName(name);
00048     }

Property ( String  name,
Unit  unit,
Double  lowValue,
Double  highValue 
)

Really useful constructor.

Definition at line 51 of file Property.java.

00051                                                                                {
00052         setName(name);
00053         setValues(unit, lowValue, highValue);
00054     }


Member Function Documentation

.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 61 of file Property.java.

00061                                                                             {
00062         setUnit(unit);
00063         setLowValue(lowValue);
00064         setHighValue(highValue);
00065         return this;
00066     }

String getName (  ) 

Get the name of this property.

Definition at line 73 of file Property.java.

00073                             {
00074         return _name;
00075     }

Property setName ( String  name  ) 

Set the name of this property.

Definition at line 78 of file Property.java.

00078                                          {
00079         _name = name;
00080         return this;
00081     }

Double getLowValue (  ) 

Get the low bound on the property's value.

Definition at line 85 of file Property.java.

00085                                 {
00086         return _lowValue;
00087     }

Property setLowValue ( Double  lowValue  ) 

Set the low bound on the property's value.

Definition at line 90 of file Property.java.

00090                                                  {
00091         _lowValue = lowValue;
00092         return this;
00093     }

Double getHighValue (  ) 

Get the high bound on the property's value.

Definition at line 97 of file Property.java.

00097                                  {
00098         return _highValue;
00099     }

Property setHighValue ( Double  highValue  ) 

Set the high bound on the property's value.

Definition at line 102 of file Property.java.

00102                                                    {
00103         _highValue = highValue;
00104         return this;
00105     }

Unit getUnit (  ) 

Get the unit in which this property is measured.

Definition at line 109 of file Property.java.

00109                           {
00110         return _unit;
00111     }

Property setUnit ( Unit  unit  ) 

Set the unit in which this property is measured.

Definition at line 114 of file Property.java.

00114                                        {
00115         _unit = unit;
00116         return this;
00117     }

String toString (  ) 

String representation.

Reimplemented from Storeable.

Definition at line 124 of file Property.java.

00124                              {
00125         StringBuffer s = new StringBuffer();
00126         s.append("(" + getLowValue() + "-" + getHighValue() + ") " + getUnit().toString());
00127         return s.toString();
00128     }

Logger log (  )  [package, inherited]


The documentation for this class was generated from the following file:


Generated on Tue Apr 21 15:54:48 2009 for HepData object model by  doxygen 1.5.5