Class AbstractJMadExecutable
- java.lang.Object
-
- cern.accsoft.steering.jmad.kernel.AbstractJMadExecutable
-
- All Implemented Interfaces:
JMadExecutable
- Direct Known Subclasses:
AbstractCommand
,AbstractTask
,DefineElement
,FreeText
,SetEqual
,SetListEqual
public abstract class AbstractJMadExecutable extends java.lang.Object implements JMadExecutable
Contains common functions of commands/tasks that can be executed in MadX.
-
-
Constructor Summary
Constructors Constructor Description AbstractJMadExecutable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
getOutputFile()
the actual output-file.ResultType
getResultType()
TheResultType
which is produced by this command.void
setOutputFile(java.io.File outputFile)
set the output-file.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cern.accsoft.steering.jmad.kernel.JMadExecutable
compose
-
-
-
-
Method Detail
-
getResultType
public ResultType getResultType()
TheResultType
which is produced by this command. This value is then used by the kernel, in order to determine which parser to use to determine the type of parser to use for parsing the madx-output.Shall be overridden by subclass, if it provides a result.
- Specified by:
getResultType
in interfaceJMadExecutable
- Returns:
- the result type for this executable
-
setOutputFile
public final void setOutputFile(java.io.File outputFile)
set the output-file. This should be only done by theJMadKernel
since the kernel is the only one who knows where the output is needed to parse it afterwards.- Specified by:
setOutputFile
in interfaceJMadExecutable
- Parameters:
outputFile
- the new output file to set
-
getOutputFile
public final java.io.File getOutputFile()
the actual output-file.- Specified by:
getOutputFile
in interfaceJMadExecutable
- Returns:
- the file to which the output shall be written
-
-