hepdata is hosted by Hepforge, IPPP Durham

cedar.hepdata.model
Class Particle

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

public class Particle
extends java.lang.Object
implements HDPersistable

A particle which may be collided,decayed or produced in a Reaction for which data has been reported.

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

Field Summary
static int MAXLENGTH
           
 
Constructor Summary
Particle(int id)
          builds a particle from an id
Particle(java.lang.String particleName)
          Build a particle from the DB.
 
Method Summary
 void addOne()
          increases the multiplicity of the particle by one
 java.lang.String getDescription()
           
 int getId()
          Return the unique ID of this particle
 int getMultiplicity()
          One by default.
 void setDescription(java.lang.String s)
           
 void setId(int id)
          Set the internal ID code
 
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
 

Field Detail

MAXLENGTH

public static final int MAXLENGTH
See Also:
Constant Field Values
Constructor Detail

Particle

public Particle(int id)
         throws HDException
builds a particle from an id

Throws:
HDException


Particle

public Particle(java.lang.String particleName)
         throws HDException
Build a particle from the DB.

Parameters:
particleName -
Throws:
HDException

Method Detail

getId

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

Specified by:
getId in interface HDPersistable
Returns:
particleId


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


setDescription

public void setDescription(java.lang.String s)

getMultiplicity

public int getMultiplicity()
One by default. May be more when used to describe a Final State of a Reaction


addOne

public void addOne()
increases the multiplicity of the particle by one


Generated 20060512 1623

HEPData