Class MadxBinImpl

  • All Implemented Interfaces:
    MadxBin

    public class MadxBinImpl
    extends java.lang.Object
    implements MadxBin
    Determines the correct version of the madx-executable and provides methods to start its execution. Depending on the operating system the correct executable is extracted to a temporary directory and can be executed from there.
    • Constructor Summary

      Constructors 
      Constructor Description
      MadxBinImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Process execute()
      executes MadX
      void init()
      init-method called by spring
      void setFileUtil​(TempFileUtil fileUtil)  
      • Methods inherited from class java.lang.Object

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

      • MadxBinImpl

        public MadxBinImpl()
    • Method Detail

      • init

        public void init()
        init-method called by spring
      • execute

        public java.lang.Process execute()
                                  throws java.io.IOException
        Description copied from interface: MadxBin
        executes MadX
        Specified by:
        execute in interface MadxBin
        Returns:
        the process of the running MadX
        Throws:
        java.io.IOException - if the execution fails
      • setFileUtil

        public void setFileUtil​(TempFileUtil fileUtil)