Class TrackResultImpl

  • All Implemented Interfaces:
    Result, TrackResult

    public class TrackResultImpl
    extends java.lang.Object
    implements TrackResult
    Standard implementation of TrackResult
    • Constructor Summary

      Constructors 
      Constructor Description
      TrackResultImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(MadxTrackVariable variable, java.lang.Integer particleNumber, java.lang.Double value)
      Store the value associated to a variable for a particle
      void clear()
      clear the result
      java.util.List<java.lang.Double> get​(MadxTrackVariable variable, java.lang.Integer particleIndex)  
      java.lang.Integer getParticleCount()  
      ResultType getResultType()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TrackResultImpl

        public TrackResultImpl()
    • Method Detail

      • getParticleCount

        public java.lang.Integer getParticleCount()
        Specified by:
        getParticleCount in interface TrackResult
        Returns:
        number of particle tracked
      • add

        public void add​(MadxTrackVariable variable,
                        java.lang.Integer particleNumber,
                        java.lang.Double value)
        Description copied from interface: TrackResult
        Store the value associated to a variable for a particle
        Specified by:
        add in interface TrackResult
        particleNumber - integer associated to the tracked particle
      • get

        public java.util.List<java.lang.Double> get​(MadxTrackVariable variable,
                                                    java.lang.Integer particleIndex)
        Specified by:
        get in interface TrackResult
        particleIndex - integer associated to the tracked particle from 0 to getParticleCount()
        Returns:
        values associated to a variable for a particle
      • clear

        public void clear()
        Description copied from interface: TrackResult
        clear the result
        Specified by:
        clear in interface TrackResult