jetweb is hosted by Hepforge, IPPP Durham

cedar.jetweb.model
Class Particle

java.lang.Object
  extended by cedar.jetweb.model.Particle

public class Particle
extends java.lang.Object

A particle, with a name and energy.

Version:
$Date: 2006-02-11 16:40:28 +0000 (Sat, 11 Feb 2006) $ $Revision: 1004 $
Author:
Susanna Butterworth

Field Summary
static java.lang.String ANTIPROTON
           
static java.lang.String ELECTRON
           
static java.lang.String POSITRON
           
static java.lang.String PROTON
           
 
Constructor Summary
Particle()
          Create an empty particle.
Particle(java.lang.String desc, double E)
          Create an particle with energy and description.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Override the Object equals method.
 double getEnergy()
           
 int getId()
           
 java.lang.String getName()
           
 int hashCode()
           
 void setEnergy(double e)
           
 void setId(int id)
           
 void setName(java.lang.String p)
          Set particle 1
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PROTON

public static java.lang.String PROTON

ANTIPROTON

public static java.lang.String ANTIPROTON

POSITRON

public static java.lang.String POSITRON

ELECTRON

public static java.lang.String ELECTRON
Constructor Detail

Particle

public Particle()
Create an empty particle.


Particle

public Particle(java.lang.String desc,
                double E)
Create an particle with energy and description.

Method Detail

setId

public void setId(int id)

getEnergy

public double getEnergy()

setEnergy

public void setEnergy(double e)

getName

public java.lang.String getName()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setName

public void setName(java.lang.String p)
Set particle 1


equals

public boolean equals(java.lang.Object obj)
Override the Object equals method. Use the processId.

Overrides:
equals in class java.lang.Object


hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getId

public int getId()