hepdata is hosted by Hepforge, IPPP Durham

cedar.hepdata.model
Class Observable

java.lang.Object
  extended by cedar.hepdata.model.Observable
All Implemented Interfaces:
HDPersistable

public class Observable
extends java.lang.Object
implements HDPersistable

An Observable that may be relevant to a Dataset.

Version:
$Date: 2006-02-02 16:35:56 +0000 (Thu, 02 Feb 2006) $ $Revision: 500 $
Author:
S Butterworth

Constructor Summary
Observable(HDObjectReader reader)
          builds an observable from a file
Observable(int id)
          builds an observable from an id
Observable(int paperId, int dsId, int axId, java.lang.String desc)
          Build an observable from the description.
Observable(java.lang.String desc)
          Build an observable from the DB.
 
Method Summary
 int getAxisId()
           
 int getDatasetId()
           
 java.lang.String getDescription()
           
 int getId()
          Return the unique ID of this observable
 int getPaperId()
           
 boolean hasLegacyPaperId()
           
 void setAxisId(int id)
           
 void setDatasetId(int id)
           
 void setDescription(java.lang.String name)
           
 void setHasLegacyPaperId(boolean b)
           
 void setId(int id)
          Set the internal ID code
 void setPaperId(int id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cedar.hepdata.model.HDPersistable
toString
 

Constructor Detail

Observable

public Observable(HDObjectReader reader)
           throws HDException
builds an observable from a file

Throws:
HDException


Observable

public Observable(int id)
           throws HDException
builds an observable from an id

Throws:
HDException


Observable

public Observable(java.lang.String desc)
           throws HDException
Build an observable from the DB.

Parameters:
desc -
Throws:
HDException


Observable

public Observable(int paperId,
                  int dsId,
                  int axId,
                  java.lang.String desc)
           throws HDException
Build an observable from the description.

Parameters:
desc -
Throws:
HDException

Method Detail

getId

public int getId()
Return the unique ID of this observable

Specified by:
getId in interface HDPersistable
Returns:
Id


getPaperId

public int getPaperId()

getDatasetId

public int getDatasetId()

getAxisId

public int getAxisId()

getDescription

public java.lang.String getDescription()

setId

public void setId(int id)
Description copied from interface: HDPersistable
Set the internal ID code

Specified by:
setId in interface HDPersistable
Parameters:
id - internal ID used to define (part of) the


setPaperId

public void setPaperId(int id)

setDatasetId

public void setDatasetId(int id)

setAxisId

public void setAxisId(int id)

setDescription

public void setDescription(java.lang.String name)

hasLegacyPaperId

public boolean hasLegacyPaperId()

setHasLegacyPaperId

public void setHasLegacyPaperId(boolean b)

Generated 20060512 1623

HEPData