JSci.physics
Class RelativisticParticle

java.lang.Object
  extended by JSci.physics.Particle
      extended by JSci.physics.RelativisticParticle
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
QuantumParticle

public abstract class RelativisticParticle
extends Particle

The RelativisticParticle class provides an object for encapsulating relativistic particles.

See Also:
Serialized Form

Field Summary
 Rank1Tensor momentum
          Momentum 4-vector.
 Rank1Tensor position
          Position 4-vector.
 
Constructor Summary
RelativisticParticle()
          Constructs a relativistic particle.
 
Method Summary
 boolean equals(java.lang.Object p)
          Compares two particles for equality.
 int hashCode()
           
abstract  double restMass()
          Rest mass.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

position

public Rank1Tensor position
Position 4-vector.


momentum

public Rank1Tensor momentum
Momentum 4-vector.

Constructor Detail

RelativisticParticle

public RelativisticParticle()
Constructs a relativistic particle.

Method Detail

restMass

public abstract double restMass()
Rest mass.


equals

public boolean equals(java.lang.Object p)
Compares two particles for equality.

Overrides:
equals in class java.lang.Object
Parameters:
p - a relativistic particle

hashCode

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