Module simpa.core

Class BeamLossObserver

java.lang.Object
simpa.core.api.track.BeamLossObserver
All Implemented Interfaces:
TrackingObserver

public class BeamLossObserver extends Object implements TrackingObserver
  • Constructor Details

    • BeamLossObserver

      public BeamLossObserver()
  • Method Details

    • observe

      public void observe(Particle p)
      Description copied from interface: TrackingObserver
      Observe the particle using this observer.
      Specified by:
      observe in interface TrackingObserver
      Parameters:
      p - - Particle to observe
    • finish

      public void finish(Particle p)
      Description copied from interface: TrackingObserver
      Finishes the tracking of the given particle.
      Specified by:
      finish in interface TrackingObserver
      Parameters:
      p - the particle to stop tracking
    • getLossCount

      public int getLossCount()
    • setLossCount

      public void setLossCount(int lossCount)
    • getLostParticles

      public List<Particle> getLostParticles()
    • writeToFile

      public void writeToFile(String fileName)
      Writes the lost particles to a file.
      Parameters:
      fileName - The name of the file.