JSci.physics.particles
Class Photon

java.lang.Object
  extended byJSci.physics.Particle
      extended byJSci.physics.RelativisticParticle
          extended byJSci.physics.quantum.QuantumParticle
              extended byJSci.physics.particles.GaugeBoson
                  extended byJSci.physics.particles.Photon
All Implemented Interfaces:
java.io.Serializable

public final class Photon
extends GaugeBoson

A class representing photons.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class JSci.physics.quantum.QuantumParticle
spinZ
 
Fields inherited from class JSci.physics.RelativisticParticle
momentum, position
 
Constructor Summary
Photon()
          Constructs a photon.
 
Method Summary
 QuantumParticle anti()
          Returns the antiparticle of this particle.
 int charge()
          Returns the electric charge.
 boolean isAnti(QuantumParticle qp)
          Returns true if qp is the antiparticle.
 double restMass()
          Returns the rest mass (MeV).
 int spin()
          Returns the number of 1/2 units of spin.
 java.lang.String toString()
          Returns a string representing this class.
 
Methods inherited from class JSci.physics.particles.GaugeBoson
baryonQN, eLeptonQN, isospin, isospinZ, muLeptonQN, strangeQN, tauLeptonQN
 
Methods inherited from class JSci.physics.RelativisticParticle
equals
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Photon

public Photon()
Constructs a photon.

Method Detail

restMass

public double restMass()
Returns the rest mass (MeV).

Specified by:
restMass in class RelativisticParticle
Returns:
0.0

spin

public int spin()
Returns the number of 1/2 units of spin.

Specified by:
spin in class QuantumParticle
Returns:
2

charge

public int charge()
Returns the electric charge.

Specified by:
charge in class QuantumParticle
Returns:
0

anti

public QuantumParticle anti()
Returns the antiparticle of this particle.

Specified by:
anti in class QuantumParticle

isAnti

public boolean isAnti(QuantumParticle qp)
Returns true if qp is the antiparticle.

Specified by:
isAnti in class QuantumParticle

toString

public java.lang.String toString()
Returns a string representing this class.